*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --forest: #1a2e1a;
  --forest-deep: #0f1d0f;
  --moss: #2d4a2d;
  --sage: #7a8f6e;
  --sage-light: #a3b496;
  --stone: #b8b0a2;
  --stone-light: #d4cfc7;
  --cream: #f5f2ed;
  --cream-warm: #faf8f4;
  --gold: #c4a265;
  --white: #ffffff;
  --black: #1a1a1a;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --shadow-sm: 0 2px 8px rgba(26,46,26,0.06);
  --shadow-md: 0 8px 30px rgba(26,46,26,0.10);
  --shadow-lg: 0 20px 60px rgba(26,46,26,0.14);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream-warm);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--moss); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.header.scrolled {
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.logo img { height: 48px; width: auto; }
.header-back-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: -10px; padding: 0;
  background: none; border: none; cursor: pointer; color: var(--forest);
}
.header-back-arrow svg { width: 32px; height: 32px; }
.header:not(.scrolled) .header-back-arrow { color: var(--white); }
@media (min-width: 769px) { .header-back-arrow { display: none !important; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none;
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  position: relative;
}
.header:not(.scrolled) .nav a { color: var(--white); }
.nav a:hover { background: rgba(26,46,26,0.08); }
.header:not(.scrolled) .nav a:hover { background: rgba(255,255,255,0.15); }
/* Current page: underline only, so the label stays readable over hero photos */
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--sage);
}
.header:not(.scrolled) .nav a.active::after { background: var(--white); }
.nav-cta {
  background: var(--forest) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 10px 22px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--moss) !important; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--forest); transition: var(--transition); }
.header:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: var(--cream-warm);
  flex-direction: column;
  padding: 20px 0 32px;
  z-index: 99;
  border-bottom: 1px solid var(--stone-light);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-nav.open { transform: none; opacity: 1; pointer-events: all; }
.mobile-nav a { padding: 14px 40px; color: var(--forest); text-decoration: none; font-size: 1rem; }

/* ─── PROJECT HERO ─── */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 700px;
  overflow: hidden;
}
.project-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,29,15,0.3) 0%, rgba(15,29,15,0.75) 100%);
}
.project-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 40px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.project-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding: 8px 16px 8px 12px;
  background: rgba(15,29,15,0.55);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: var(--transition);
}
.project-hero-breadcrumb:hover { background: rgba(15,29,15,0.8); color: var(--white); }
.project-hero-breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.project-hero-browse-counter {
  display: inline-block; margin-bottom: 14px; margin-left: 8px;
  padding: 7px 14px; background: rgba(15,29,15,0.5); backdrop-filter: blur(4px); border-radius: 100px;
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream);
}
.project-hero-swipe-hint {
  display: block; margin-bottom: 14px;
  font-size: 0.78rem; color: var(--cream); opacity: 0.85;
}
.project-hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(15,29,15,0.5); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer;
}
.project-hero-nav-btn:active { background: rgba(15,29,15,0.75); }
.project-hero-nav-btn svg { width: 22px; height: 22px; }
.project-hero-nav-btn.prev { left: 16px; }
.project-hero-nav-btn.next { right: 16px; }
@media (min-width: 769px) { .project-hero-nav-btn { display: none; } }
.project-hero-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(163,180,150,0.4);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 16px;
}
.project-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--cream);
  font-weight: 400;
  line-height: 1.15;
  max-width: 700px;
}
.project-hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--stone);
  font-size: 0.88rem;
  margin-top: 12px;
}
.project-hero-location svg { width: 14px; height: 14px; color: var(--sage-light); }

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--forest);
  line-height: 1.2;
  font-weight: 400;
}
.section-line { width: 48px; height: 2px; background: var(--sage); margin: 20px 0; }

/* ─── PROJECT META BAR ─── */
.project-meta-section {
  background: var(--white);
  border-bottom: 1px solid var(--stone-light);
  padding: 0;
}
.project-meta-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.project-meta-item {
  padding: 28px 40px;
  border-right: 1px solid var(--stone-light);
  flex: 1;
  min-width: 150px;
}
.project-meta-item:last-child { border-right: none; }
.project-meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.project-meta-value {
  font-size: 0.95rem;
  color: var(--forest);
  font-weight: 400;
}

/* ─── PROJECT BODY ─── */
.project-body {
  padding: 80px 0;
}
.project-body-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.project-sidebar {}
.project-sidebar .section-label { margin-bottom: 16px; }
.project-sidebar h2 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--forest); font-weight: 400; line-height: 1.3; margin-bottom: 20px; }
.project-tags { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.project-tag-group-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; margin-top: 20px; }
.project-tag-group-label:first-child { margin-top: 0; }
.project-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--forest);
  width: fit-content;
}

.project-main {}
.project-description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 48px;
}
.project-description p + p { margin-top: 1.4em; }

/* ─── GALLERY ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-bottom: 10px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  position: relative;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-count-badge {
  position: absolute;
  inset: 0;
  background: rgba(15,29,15,0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  opacity: 1;
}

/* ─── VIDEOS ─── */
.gallery-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 320px;
  gap: 16px;
  margin-top: 10px;
}
.gallery-videos video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: block;
  background: var(--black);
  object-fit: contain;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,29,15,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(15,29,15,0.25); }
.gallery-item-overlay svg {
  width: 32px; height: 32px;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay svg { opacity: 1; }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,16,10,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  transition: opacity 0.2s ease;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none; border: none;
  color: var(--stone);
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition);
  line-height: 0;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}
.lightbox-nav-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav-btn svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: var(--stone);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* ─── PROJECT NAV ─── */
.project-nav-section {
  background: var(--forest-deep);
  padding: 0;
}
.project-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(163,180,150,0.15);
}
.project-nav-item {
  display: flex;
  flex-direction: column;
  padding: 40px;
  text-decoration: none;
  transition: background var(--transition);
  gap: 8px;
}
.project-nav-item:first-child { border-right: 1px solid rgba(163,180,150,0.15); }
.project-nav-item:hover { background: rgba(255,255,255,0.04); }
.project-nav-direction {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}
.project-nav-direction svg { width: 14px; height: 14px; }
.project-nav-title { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--cream); font-weight: 400; line-height: 1.3; }
.project-nav-item.next { text-align: right; align-items: flex-end; }

/* ─── CTA ─── */
.cta-section {
  background: var(--forest);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(122,143,110,0.15) 0%, transparent 70%);
}
.cta-section .section-label { color: var(--sage-light); justify-content: center; display: flex; }
.cta-section h2 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); font-weight: 400; margin: 12px 0 20px; }
.cta-section p { color: var(--stone); font-size: 1rem; font-weight: 300; max-width: 480px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ─── FOOTER ─── */
.footer { background: var(--black); padding: 60px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo img { height: 40px; opacity: 0.7; }
.footer-text { font-size: 0.82rem; color: var(--text-light); }
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-built-by { font-size: 0.78rem; color: var(--text-light); opacity: 0.7; }
.footer-built-by a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: var(--transition); }
.footer-built-by a:hover { opacity: 1; color: var(--sage-light); border-color: var(--sage-light); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--text-light); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--sage-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .project-body-inner { grid-template-columns: 1fr; gap: 48px; }
  .project-sidebar { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav { display: none; }
  .mobile-nav { display: flex; }
  .container { padding: 0 24px; }
  .header-inner { padding: 16px 24px; }
  .project-hero { height: 55vh; }
  .project-hero-content { padding: 40px 24px 36px; }
  .project-meta-bar { flex-direction: column; }
  .project-meta-item { border-right: none; border-bottom: 1px solid var(--stone-light); padding: 20px 24px; }
  .project-meta-item:last-child { border-bottom: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .project-nav-inner { grid-template-columns: 1fr; }
  .project-nav-item:first-child { border-right: none; border-bottom: 1px solid rgba(163,180,150,0.15); }
  .project-nav-item.next { text-align: left; align-items: flex-start; }
  .lightbox-nav-btn { width: 40px; height: 40px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .project-hero h1 { font-size: 1.8rem; }
}
