:root {
  --bg: #000000;
  --bg-raised: #0c0c0c;
  --ink: #f3f1ea;
  --ink-soft: #a8a6a0;
  --line: #2a2a28;
  --accent: #d9d6c9;
  --header-h: 76px;
  --font-head: "Urbanist", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

main {
  flex: 1;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 34px;
  width: auto;
}

.site-nav { display: flex; gap: 2rem; }

.site-nav a {
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.65) 18%, rgba(0,0,0,0) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5rem 4.5rem;
  max-width: 1040px;
}
.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  opacity: 0.85;
  margin-top: 1.5rem;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 0.3em;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll svg {
  width: 18px;
  height: 18px;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Gallery / galleries-index hero (shorter than homepage hero) */
.gallery-hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 560px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background-size: cover;
  background-position: center;
}
.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.85) 14%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.35) 100%);
}
.gallery-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 5rem 3rem;
  max-width: 920px;
}
.gallery-hero-content .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
@media (max-width: 560px) {
  .hero-content,
  .gallery-hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.gallery-hero-content p {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 58ch;
  margin: 0;
}

/* Section wrapper */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  scroll-margin-top: var(--header-h);
}
.section-intro {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
}
.section-intro p {
  color: var(--ink-soft);
}

/* Gallery tile grid (home + galleries index) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tile-grid { grid-template-columns: 1fr; }
}
.tile {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  display: block;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 45%);
}
.tile-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 1;
  color: #fff;
}
.tile-label .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.tile-label .tagline {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Photo masonry grid (inside a gallery) */
.photo-grid {
  columns: 2;
  column-gap: 1.75rem;
}
@media (max-width: 560px) { .photo-grid { columns: 1; } }
.photo-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  cursor: zoom-in;
}
.photo-item img { width: 100%; height: auto; border-radius: 2px; }
.photo-caption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  opacity: 0.85;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
}
.about-layout img { border-radius: 2px; }
.about-copy h1 {
  text-transform: uppercase;
  font-size: 1.9rem;
}
.about-copy p { max-width: 60ch; color: var(--ink-soft); }
.cta-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-link:hover { background: var(--ink); color: #000; }

/* Contact page */
.contact-copy { max-width: 520px; }
.contact-copy h1 { text-transform: uppercase; font-size: 1.9rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  width: fit-content;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.55) 100%),
    url('/images/site/footer-bg.jpg') center / cover no-repeat;
  padding: 11rem 2rem 2.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-nav a { text-decoration: none; }
.copyright {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Mobile nav */
@media (max-width: 760px) {
  .brand img { height: 26px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 300px; }
  .site-nav a {
    color: var(--ink) !important;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
  }
}
