:root {
  --bg: #0b0b0c;
  --bg-soft: #151517;
  --fg: #f3f2ef;
  --fg-muted: #a8a6a1;
  --accent: #c9a24b;
  --border: #2a2a2c;
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-eyebrow, .hero-title, .card img, .site-header {
    transition: none !important;
    animation: none !important;
  }
}

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

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

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background-color: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.7rem 2rem;
}
.brand img { height: 44px; }
.main-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.main-nav a { opacity: 0.85; transition: opacity 0.2s; }
.main-nav a:hover { opacity: 1; color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
  }
  .main-nav.open { right: 0; }
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  /* duration = slide-count * slide-seconds; each slide gets its own animation-delay (set inline) */
  animation-name: heroSlideFade;
  animation-duration: calc(var(--slide-count) * var(--slide-seconds) * 1s);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@media (max-width: 820px) {
  .hero-slide { background-attachment: scroll; }
}
/* ponytail: percentages below assume 10 slides x 5s (50s loop) — if slide-count/seconds
   change, adjust the 1%/9%/10% marks (fade-in end / hold end / fade-out end) to match */
@keyframes heroSlideFade {
  0% { opacity: 0; }
  1% { opacity: 1; }
  9% { opacity: 1; }
  10% { opacity: 0; }
  100% { opacity: 0; }
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1) 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.9s ease 0.15s forwards;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  opacity: 0;
  animation: fadeInUp 1s ease 0.35s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section { padding: 5rem 2rem; max-width: var(--max); margin: 0 auto; }
.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Category / work grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover img { transform: scale(1.08); }
.card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.card-count {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

/* Gallery */
.gallery {
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery img {
  margin-bottom: 1rem;
  border-radius: 3px;
  cursor: zoom-in;
  break-inside: avoid;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery img:hover {
  transform: scale(1.015);
  filter: brightness(1.08);
}
@media (max-width: 700px) { .gallery { columns: 1 280px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-height: 92vh; max-width: 92vw; object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer;
}

/* Text pages */
.prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-muted);
}
.prose h1 { color: var(--fg); font-size: 2.2rem; margin-bottom: 1.5rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}
.contact-item { border-top: 1px solid var(--border); padding-top: 1rem; }
.contact-item h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* Blog */
.blog-card { border-top: 1px solid var(--border); padding: 2rem 0; }
.blog-card h3 { font-size: 1.4rem; margin: 0.5rem 0; }
.blog-tag { color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.1em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.3rem 0; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 200;
}

.back-link { display: inline-block; margin-bottom: 2rem; color: var(--accent); font-size: 0.9rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
