/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-3:      #141414;
  --fg:        #e8e8e8;
  --fg-muted:  #888888;
  --gold:      #c9a86c;
  --gold-dim:  #9a7d4e;
  --border:    rgba(255,255,255,0.07);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --nav-h:     72px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
.label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--fg);
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.75;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  height: 32px;
  width: auto;
  opacity: 0.88;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.nav-active  { color: var(--fg); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  padding: 0.55rem 1.25rem;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}
.nav-cta::after { display: none !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.15) 0%,
    rgba(8,8,8,0.1)  40%,
    rgba(8,8,8,0.65) 75%,
    rgba(8,8,8,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s 0.3s var(--ease) forwards;
}

.hero-eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s 0.5s var(--ease) forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: rgba(232,232,232,0.7);
  max-width: 420px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.9s 0.75s var(--ease) forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.hero-scroll span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.5s 1.5s ease-in-out infinite;
}

/* ── Section Shell ────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ── Gallery Grids ────────────────────────────────────────── */
.gallery-masonry {
  columns: 3;
  column-gap: 10px;
}

.gallery-masonry .gal-item {
  break-inside: avoid;
  margin-bottom: 10px;
}

.gallery-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Portrait — asymmetric 2+1 layout */
.gallery-portrait {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 10px;
}

.gallery-portrait .gal-item:first-child {
  grid-row: span 2;
}

/* Single-image centered */
.gallery-single {
  display: flex;
  justify-content: center;
}
.gallery-single .gal-item {
  max-width: 680px;
  width: 100%;
}

/* ── Gallery Item ─────────────────────────────────────────── */
.gal-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-3);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.92) saturate(0.9);
}

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

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease);
}

.gal-item:hover .gal-overlay { background: rgba(8,8,8,0.28); }

.gal-zoom-icon {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s, transform 0.35s var(--ease);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.75rem;
  line-height: 0;
}

.gal-item:hover .gal-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── About Section ────────────────────────────────────────── */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  max-width: 1100px;
}

.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.85);
}

.about-text { display: flex; flex-direction: column; gap: 1.5rem; }

.about-text p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

.about-text p strong {
  color: var(--fg);
  font-weight: 500;
}

.about-stats {
  display: flex;
  gap: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.35rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.mt-sm          { margin-top: 0.75rem; }
.text-center    { text-align: center; }
.text-gold-italic { font-style: italic; color: var(--gold); }
.footer-copy--sm  { font-size: 0.6875rem; letter-spacing: 0.1em; }
.section--gallery { padding-top: clamp(3rem, 6vw, 5rem); }

/* ── Contact ──────────────────────────────────────────────── */
.contact {
  text-align: center;
  background: var(--bg);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  height: 22px;
  width: auto;
  opacity: 0.35;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,4,4,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 88vh;
}

.lightbox-img-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.open .lightbox-img-wrap img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: -2.5rem; right: 0;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s;
  line-height: 1;
}

.lightbox-close:hover { color: var(--fg); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.lightbox-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,108,0.07);
}

.lightbox-prev { right: calc(100% + 1.5rem); }
.lightbox-next { left: calc(100% + 1.5rem); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Works Grid (home page category cards) ────────────────── */
.home-works {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work-card {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 2/3;
  background: var(--bg-3);
}

.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.7) saturate(0.8);
}

.work-card:hover img {
  transform: scale(1);
  filter: brightness(0.5) saturate(0.7);
}

.work-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem;
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, transparent 60%);
}

.work-card-index {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.work-card-link {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s 0.05s, transform 0.4s 0.05s var(--ease);
}

.work-card-link svg {
  transition: transform 0.3s var(--ease);
}

.work-card:hover .work-card-index,
.work-card:hover .work-card-link   { opacity: 1; transform: translateY(0); }
.work-card:hover .work-card-link svg { transform: translateX(4px); }

/* ── Page Header (gallery sub-pages) ─────────────────────── */
.page-header {
  position: relative;
  height: clamp(320px, 45vh, 520px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: var(--nav-h);
}

.page-header-bg {
  position: absolute;
  inset: 0;
}

.page-header-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.45) saturate(0.7);
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(8,8,8,0.9) 100%);
}

.page-header-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }

.page-header-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-header-subtitle {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(232,232,232,0.6);
  max-width: 440px;
}

/* ── Gallery nav (bottom of gallery pages) ────────────────── */
.gallery-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.gfn-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s;
}

.gfn-link:hover { color: var(--gold); }

.gfn-center {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
  .gallery-3col    { grid-template-columns: 1fr 1fr; }
  .about-inner     { grid-template-columns: 1fr; }
  .about-image     { aspect-ratio: 4/3; max-height: 420px; }
  .lightbox-prev   { right: auto; left: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .lightbox-next   { left: auto; right: 0.5rem; top: auto; bottom: 1rem; transform: none; }
  .works-grid      { grid-template-columns: 1fr 1fr; }
  .works-grid .work-card:last-child { grid-column: span 2; aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .gallery-masonry { columns: 1; }
  .gallery-2col { grid-template-columns: 1fr; }
  .gallery-3col { grid-template-columns: 1fr; }
  .gallery-portrait { grid-template-columns: 1fr; }
  .gallery-portrait .gal-item:first-child { grid-row: span 1; }
  .about-stats { gap: 2rem; }
  .hero-scroll { display: none; }

  .works-grid  { grid-template-columns: 1fr; }
  .works-grid .work-card:last-child { grid-column: span 1; aspect-ratio: 2/3; }
  .gallery-footer-nav { flex-direction: column; text-align: center; }
  .gfn-center { display: none; }
}

/* ── Age Gate ─────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.age-gate.age-gate--hidden {
  display: none;
}

.age-gate.age-gate--hiding {
  opacity: 0;
  pointer-events: none;
}

.age-gate-inner {
  text-align: center;
  padding: 2rem;
  max-width: 480px;
}

.age-gate-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 2.5rem;
}

.age-gate-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.age-gate-subtitle {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.age-gate-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 2.25rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.age-gate-confirm:hover {
  background: var(--gold);
  color: var(--bg);
}

.age-gate-leave {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.age-gate-leave:hover {
  color: var(--fg);
}

/* Prevent body scroll while gate visible */
body.age-gated {
  overflow: hidden;
}
