:root {
  --bg: #0f0d0a;
  --text: #f6f0e8;
  --muted: rgba(246, 240, 232, 0.74);
  --accent: #d7ab68;
  --line: rgba(255, 236, 205, 0.14);
  --shell: min(1180px, calc(100vw - 40px));
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(215, 171, 104, 0.15), transparent 24%),
    linear-gradient(180deg, #191510 0%, #0f0d0a 45%, #16120d 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

#scroll-navbar {
  position: fixed;
  inset: 18px 20px auto;
  z-index: 1000;
  transform: translateY(-24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#scroll-navbar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-content {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  min-height: 62px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 13, 10, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-brand-text {
  font-family: "Syne", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.nav-brand-logo {
  display: none;
  width: 64px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); width: 12px; }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }

.nav-content.menu-open .nav-toggle span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nav-content.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-content.menu-open .nav-toggle span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.gallery-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.gallery-hero-media,
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
}

.gallery-hero-media {
  overflow: hidden;
}

.gallery-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-rotator {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.gallery-hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.18) 0%, rgba(10, 8, 6, 0.64) 62%, rgba(10, 8, 6, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 8, 6, 0.82) 0%, rgba(10, 8, 6, 0.2) 54%, rgba(10, 8, 6, 0.56) 100%);
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  padding: 170px 0 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-hero-content h1,
.gallery-intro h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.gallery-hero-content p:last-child,
.gallery-intro p:last-child {
  margin: 22px 0 0;
  max-width: 620px;
  line-height: 1.8;
  color: var(--muted);
}

.gallery-section {
  padding: 96px 0 120px;
}

.gallery-intro {
  margin-bottom: 40px;
}

.gallery-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-item {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 248, 236, 0.06);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.65s ease, filter 0.65s ease;
}

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

.site-footer {
  padding-bottom: 28px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand h2,
.footer-brand p {
  margin: 0;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 5, 4, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 1200;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.08);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  #scroll-navbar {
    inset: 14px 14px auto;
  }

  .nav-content {
    width: calc(100vw - 28px);
    flex-wrap: wrap;
    align-items: center;
    border-radius: 24px;
    position: relative;
    min-height: 58px;
    padding: 10px 12px;
  }

  .nav-logo img {
    width: 82px;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-brand-logo {
    display: block;
    width: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(16, 13, 10, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-content.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 248, 236, 0.05);
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .gallery-hero-content {
    padding-top: 150px;
  }
}

.breadcrumbs {
  width: var(--shell);
  margin: 100px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: inherit;
}

.gallery-copy {
  margin-top: 24px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}
