*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --bg2: #111111;
  --text: #f0ede8;
  --text-muted: #888580;
  --accent: #c8a96e;
  --border: rgba(240,237,232,0.1);
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── NAV ── */
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 40px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none; transition: color 0.3s;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  height: 100svh; min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.32);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(8,8,8,0.75) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 20px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(60px, 10vw, 120px); font-weight: 300; line-height: 0.95;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 1s 0.6s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  font-size: 12px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(240,237,232,0.55); margin-bottom: 48px;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  opacity: 0; animation: fadeUp 1s 1.5s forwards;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.5s 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity:1; transform: scaleY(1); } 50% { opacity:0.3; transform: scaleY(0.5); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── SECTIONS ── */
section { padding: 100px 40px; }
.section-label {
  font-size: 10px; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6vw, 68px); font-weight: 300; line-height: 1.05;
  margin-bottom: 48px;
}
.section-title em { font-style: italic; }

/* ── GALLERY PAGE HEADER ── */
.page-header {
  padding: 140px 40px 60px;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.page-header-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7vw, 80px); font-weight: 300; line-height: 1;
}
.page-header-text h1 em { font-style: italic; color: var(--accent); }
.page-header-count {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 8px;
}

/* ── MASONRY ── */
.gallery-wrap { padding: 40px 40px 80px; }
.masonry { columns: 3; column-gap: 10px; }
.photo-item {
  break-inside: avoid; margin-bottom: 10px;
  overflow: hidden; cursor: pointer; position: relative;
}
.photo-item img {
  width: 100%; display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s;
  filter: brightness(0.9);
}
.photo-item:hover img { transform: scale(1.04); filter: brightness(1); }
.photo-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s;
}
.photo-item:hover .overlay { background: rgba(0,0,0,0.22); }
.overlay-icon {
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7); transition: 0.4s;
}
.overlay-icon svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 1.5; }
.photo-item:hover .overlay-icon { opacity: 1; transform: scale(1); }
.photo-item img.lazy { opacity: 0; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.4s; }
.photo-item img.loaded { opacity: 1; }

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.97);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#lightbox.open { display: flex; }
#lb-img {
  max-width: 90vw; max-height: 90svh; object-fit: contain;
  animation: lbIn 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes lbIn { from { opacity:0; transform:scale(0.93); } to { opacity:1; transform:scale(1); } }
#lb-close {
  position: absolute; top: 24px; right: 32px;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; font-size: 20px; line-height: 1; transition: 0.3s;
}
#lb-close:hover { border-color: var(--accent); color: var(--accent); }
#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.3s; color: white; background: rgba(0,0,0,0.4);
}
#lb-prev { left: 24px; } #lb-next { right: 24px; }
#lb-prev:hover, #lb-next:hover { border-color: var(--accent); color: var(--accent); }
#lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
}

/* ── CONTACT (homepage) ── */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  margin-top: 0;
}
.contact-card {
  background: var(--bg);
  padding: 40px 32px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.contact-card:hover { background: var(--bg2); }
.contact-card:hover::after { transform: scaleX(1); }
.contact-card-icon {
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; transition: border-color 0.3s;
}
.contact-card:hover .contact-card-icon { border-color: var(--accent); }
.contact-card-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-card-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
}
.contact-card-value {
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400;
  color: var(--text); line-height: 1.2;
}
.contact-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── ABOUT (homepage) ── */
#about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; display: block; }
.about-img-wrap::before {
  content: ''; position: absolute; top: -20px; left: -20px;
  width: 55%; height: 55%; border: 1px solid var(--accent); z-index: -1;
}
.about-text p { color: rgba(240,237,232,0.72); margin-bottom: 20px; line-height: 1.9; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300;
  color: var(--accent); line-height: 1; display: block;
}
.stat-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ── SERVICES (homepage) ── */
#services { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.service-card {
  padding: 48px 36px; border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: 0.4s;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300;
  color: rgba(200,169,110,0.18); line-height: 1; margin-bottom: 24px; display: block;
}
.service-name {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; margin-bottom: 16px;
}
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ── FOOTER ── */
footer {
  padding: 48px 40px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300;
  letter-spacing: 0.08em; color: var(--text); text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color 0.3s;
}
.footer-socials a:hover { color: var(--accent); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .masonry { columns: 2; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  #about { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { max-width: 480px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,8,0.97); flex-direction: column; padding: 32px 24px;
    border-bottom: 1px solid var(--border); gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  section, .gallery-wrap { padding: 56px 20px; }
  .page-header { padding: 120px 20px 48px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .masonry { columns: 2; column-gap: 6px; }
  .photo-item { margin-bottom: 6px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
  #lb-prev { left: 8px; } #lb-next { right: 8px; }
}
@media (max-width: 480px) {
  .masonry { columns: 1; }
  .hero-title { font-size: 52px; }
  .about-img-wrap::before { display: none; }
}
