/* ========================================
   MUSE V7 — Main Stylesheet
   Base: #f8f5f0 | Dark: #1a1a1a | Accent: #c4935a
   Inter throughout
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f5f0;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
p { font-size: 1.05rem; color: rgba(26,26,26,0.75); line-height: 1.7; }

/* --- Container --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* --- Accent Color Utility --- */
.accent { color: #c4935a; }

/* ========================================
   LOADER
   ======================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 40px; height: 40px;
  border: 2px solid rgba(196,147,90,0.2);
  border-top-color: #c4935a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   HEADER — blend-mode dramatic
   ======================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  mix-blend-mode: difference;
  color: #fff;
}
.header.scrolled {
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  mix-blend-mode: normal;
  color: #f8f5f0;
  padding: 1rem 2rem;
}
.header-logo {
  font-size: 1.6rem; font-weight: 300; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.header-logo span { color: #c4935a; }
.header-nav { display: flex; gap: 2.5rem; align-items: center; }
.header-nav a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; position: relative; padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: #c4935a;
  transition: width 0.35s ease;
}
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }
.header-nav a.active { color: #c4935a; }
.header-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.header-burger span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  .header-nav {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: #1a1a1a; flex-direction: column; justify-content: center;
    gap: 2rem; transition: right 0.5s cubic-bezier(0.77,0,0.18,1); z-index: 998;
  }
  .header-nav.open { right: 0; }
  .header-burger { display: flex; z-index: 999; position: relative; }
  .header-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .header-burger.open span:nth-child(2) { opacity: 0; }
  .header-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
  .header-nav a { font-size: 1.2rem; }
  .container { padding: 0 1.25rem; }
}

/* ========================================
   HERO — dramatic fullscreen
   ======================================== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #1a1a1a;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.4);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-media img { transform: scale(1.12); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 50%, rgba(196,147,90,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #f8f5f0;
  max-width: 800px; padding: 2rem;
}
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero-content h1 .line { display: block; }
.hero-content h1 .accent { color: #c4935a; }
.hero-sub {
  font-size: 1.15rem; font-weight: 300; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.8; margin-bottom: 2.5rem;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(248,245,240,0.6); font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; animation: floatY 2.5s ease-in-out infinite;
}
.hero-scroll .arrow { width: 1px; height: 40px; background: rgba(248,245,240,0.4); position: relative; overflow: hidden; }
.hero-scroll .arrow::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 50%; background: #c4935a;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes scrollPulse {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #c4935a;
  background: transparent;
  color: #c4935a;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: #c4935a;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}
.btn:hover { color: #f8f5f0; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--light { border-color: #f8f5f0; color: #f8f5f0; }
.btn--light::before { background: #f8f5f0; }
.btn--light:hover { color: #1a1a1a; }
.btn--dark { border-color: #1a1a1a; color: #1a1a1a; }
.btn--dark::before { background: #1a1a1a; }
.btn--dark:hover { color: #f8f5f0; }

.btn--sm { padding: 0.6rem 1.5rem; font-size: 0.65rem; }

/* ========================================
   SECTION COMMON
   ======================================== */
.section { padding: 7rem 0; }
.section-header {
  margin-bottom: 4rem; max-width: 600px;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #c4935a; margin-bottom: 1rem; font-weight: 400;
}

/* ========================================
   REVEAL ANIMATIONS (stagger)
   ======================================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.visible { transform: translateX(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.visible { transform: translateX(0); }
.reveal--scale { transform: scale(0.92); }
.reveal--scale.visible { transform: scale(1); }
[data-delay] { transition-delay: attr(data-delay ms, 0ms); }

/* ========================================
   MASONRY GRID
   ======================================== */
.masonry {
  column-count: 3; column-gap: 1.2rem;
}
.masonry-item {
  break-inside: avoid; margin-bottom: 1.2rem;
  position: relative; overflow: hidden; cursor: pointer;
  display: inline-block; width: 100%;
}
.masonry-item img {
  width: 100%; display: block;
  transition: transform 0.8s ease, filter 0.5s ease;
}
.masonry-item:hover img { transform: scale(1.05); filter: brightness(0.85); }
.masonry-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  color: #f8f5f0;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay h3 { font-size: 1rem; font-weight: 400; }
.masonry-overlay span { font-size: 0.7rem; opacity: 0.7; letter-spacing: 0.1em; }

@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 600px) { .masonry { column-count: 1; } }

/* ========================================
   FILTER CONTROLS
   ======================================== */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 3rem; justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(26,26,26,0.15);
  color: rgba(26,26,26,0.6); cursor: pointer;
  transition: all 0.3s ease; border-radius: 0;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: #c4935a; color: #c4935a; background: rgba(196,147,90,0.06);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 90vw; max-height: 85vh; position: relative;
}
.lightbox-content img {
  max-width: 100%; max-height: 85vh; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  position: absolute; bottom: -2.5rem; left: 0; right: 0;
  text-align: center; color: rgba(248,245,240,0.7);
  font-size: 0.85rem;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: #f8f5f0; font-size: 1.8rem;
  transition: color 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { color: #c4935a; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(248,245,240,0.08);
  border: none; cursor: pointer;
  color: #f8f5f0; font-size: 1.2rem;
  transition: background 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(196,147,90,0.3); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  padding: 10rem 0 4rem;
  background: #1a1a1a; color: #f8f5f0;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,147,90,0.08) 0%, transparent 60%);
}
.page-header h1 { font-weight: 200; }
.page-header p { color: rgba(248,245,240,0.6); margin-top: 0.75rem; font-size: 1.1rem; }

/* ========================================
   PROJECT CARD
   ======================================== */
.project-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid rgba(26,26,26,0.06);
}
.project-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card-body {
  padding: 1.5rem;
}
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.project-card-body span { font-size: 0.75rem; color: #c4935a; letter-spacing: 0.1em; }

/* ========================================
   GRID
   ======================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ========================================
   BLOG CARD
   ======================================== */
.blog-card {
  border-bottom: 1px solid rgba(26,26,26,0.08);
  padding: 2rem 0; display: flex; gap: 2rem; align-items: flex-start;
  transition: opacity 0.3s ease;
}
.blog-card:first-child { padding-top: 0; }
.blog-card-image {
  width: 200px; height: 140px; flex-shrink: 0; overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.06); }
.blog-card-date { font-size: 0.7rem; color: #c4935a; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.blog-card:hover h3 { color: #c4935a; }
.blog-card p { font-size: 0.9rem; }
.blog-card-tags { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.blog-card-tags span {
  font-size: 0.6rem; padding: 0.2rem 0.6rem;
  background: rgba(196,147,90,0.1); color: #c4935a;
  letter-spacing: 0.08em; text-transform: uppercase;
}
@media (max-width: 600px) {
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; height: 180px; }
}

/* ========================================
   FORM
   ======================================== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.5rem; color: rgba(26,26,26,0.6);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.9rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 1rem;
  background: #fff; border: 1px solid rgba(26,26,26,0.12);
  transition: border-color 0.3s ease;
  color: #1a1a1a;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: #c4935a;
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #1a1a1a; color: rgba(248,245,240,0.5);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: #f8f5f0; font-weight: 400; margin-bottom: 1.25rem; font-size: 0.9rem; letter-spacing: 0.1em; }
.footer a { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; transition: color 0.3s ease; }
.footer a:hover { color: #c4935a; }
.footer p { font-size: 0.85rem; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(248,245,240,0.06);
  display: flex; justify-content: space-between; font-size: 0.75rem;
}
.footer .logo-text { font-size: 1.4rem; color: #f8f5f0; letter-spacing: 0.12em; text-transform: uppercase; }
.footer .logo-text span { color: #c4935a; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========================================
   DIVIDER
   ======================================== */
.divider { width: 40px; height: 1px; background: #c4935a; margin: 2rem 0; }

/* ========================================
   PARALLAX MINI
   ======================================== */
.parallax-section {
  position: relative; overflow: hidden;
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; color: #f8f5f0;
}
.parallax-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-attachment: fixed;
  filter: brightness(0.3) saturate(0.7);
  transform: scale(1.1);
}
.parallax-content { position: relative; z-index: 2; text-align: center; max-width: 600px; padding: 3rem; }
.parallax-content h2 { font-weight: 200; margin-bottom: 1rem; }

/* ========================================
   ABOUT — Stats
   ======================================== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 3rem; font-weight: 200; color: #c4935a; line-height: 1; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; opacity: 0.6; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ========================================
   BLOG POST (single)
   ======================================== */
.post-content { max-width: 720px; margin: 0 auto; }
.post-content p { margin-bottom: 1.5rem; font-size: 1.05rem; }
.post-content h2 { margin-top: 3rem; margin-bottom: 1rem; }
.post-content blockquote {
  border-left: 2px solid #c4935a; padding-left: 1.5rem;
  font-style: italic; color: rgba(26,26,26,0.6); margin: 2rem 0; font-size: 1.15rem;
}
.post-content img { margin: 2rem 0; border-radius: 4px; }

/* ========================================
   MISC
   ======================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.gap-1 { gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ========================================
   TRANSITION PAGE
   ======================================== */
.page-transition {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background: #1a1a1a;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.77,0,0.18,1);
}
.page-transition.active { transform: scaleY(1); transform-origin: bottom; }
