/* bclicky — main stylesheet */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #131313;
  --bg-card:   #181818;
  --fg:        #f5f5f5;
  --fg-muted:  #9a9a9a;
  --accent:    #d4af6a;
  --accent-hi: #f0c982;
  --border:    #2a2a2a;
  --shadow-lg: 0 30px 60px rgba(0,0,0,.55);
  --ease:      cubic-bezier(.2,.8,.2,1);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h:  72px;
}

@media (prefers-color-scheme: light) {
  :root.theme-auto {
    --bg: #fafafa; --bg-soft: #fff; --bg-card: #fff;
    --fg: #111; --fg-muted: #666; --border: #e5e5e5;
  }
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,.85), rgba(10,10,10,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10,10,10,.92);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.brand {
  font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: .5px;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand-mark {
  color: var(--accent); font-style: italic;
}
.nav-primary {
  display: flex; gap: 36px;
}
.nav-primary a {
  font-size: 14px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fg-muted); padding: 6px 0; position: relative;
  transition: color .25s var(--ease);
}
.nav-primary a:hover, .nav-primary a.active { color: var(--fg); }
.nav-primary a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
/* Slideshow slides */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide.active .hero-img {
  animation: kenburns 20s var(--ease) infinite alternate;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-empty {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212,175,106,.15), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(212,175,106,.08), transparent 60%),
    var(--bg);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 100%);
}
/* Slide dots */
.hero-dots {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 8px; align-items: center;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.35); transition: all .35s ease; border: 0;
}
.hero-dot.active { background: var(--accent); width: 22px; }
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 900px;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(56px, 10vw, 120px); font-weight: 400;
  letter-spacing: -1px; line-height: 1; margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.85);
  font-weight: 300; letter-spacing: .5px; max-width: 560px; margin: 0 auto 40px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px; border: 1px solid rgba(255,255,255,.4);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.hero-cta:hover {
  background: var(--accent); border-color: var(--accent); color: #111;
  transform: translateY(-2px);
}

@keyframes kenburns {
  0%   { transform: scale(1)    translate(0,0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* ── Work / Gallery ────────────────────────────────────────────────────── */
.work {
  padding: 120px 32px 80px;
  max-width: 1600px; margin: 0 auto;
}
.work-head {
  margin-bottom: 60px; text-align: center;
}
.work-head h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 400;
  margin-bottom: 30px;
}
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.filter {
  padding: 10px 22px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--fg-muted); border: 1px solid transparent; border-radius: 999px;
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--border); }
.filter.active { color: #111; background: var(--accent); border-color: var(--accent); }

/* Editorial Bento Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 10px;
}
.tile {
  display: block; position: relative; margin: 0;
  overflow: hidden; border-radius: 3px;
  background-color: var(--bg-card);
  background-size: cover; background-position: center;
  cursor: zoom-in;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile img.tile-hires {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .8s var(--ease);
}
.tile img.tile-hires.loaded { opacity: 1; }
.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tile:hover img.tile-hires.loaded { transform: scale(1.04); }

/* Bento pattern: large feature → 2 small → 2 medium, repeats */
.tile:nth-child(5n+1) { grid-column: span 8; grid-row: span 2; }
.tile:nth-child(5n+2) { grid-column: span 4; }
.tile:nth-child(5n+3) { grid-column: span 4; }
.tile:nth-child(5n+4) { grid-column: span 6; }
.tile:nth-child(5n+5) { grid-column: span 6; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 8px; }
  .tile:nth-child(5n+1) { grid-column: span 3; grid-row: span 2; }
  .tile:nth-child(5n+2) { grid-column: span 1; }
  .tile:nth-child(5n+3) { grid-column: span 1; }
  .tile:nth-child(5n+4) { grid-column: span 2; }
  .tile:nth-child(5n+5) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 6px; }
  .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(5n+1) { grid-column: span 2; grid-row: span 1; }
}
.tile-video .play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; padding-left: 4px;
  transition: background .25s var(--ease), transform .25s;
}
.tile-video:hover .play-icon { background: var(--accent); color: #111; transform: translate(-50%, -50%) scale(1.1); }
.tile-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .3s var(--ease);
}
.tile:hover .tile-caption { opacity: 1; }

/* Reveal-on-scroll */
.tile { opacity: 0; transform: translateY(20px); }
.tile.in-view { opacity: 1; transform: translateY(0); transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--fg-muted);
}
.empty-state .muted { margin-top: 12px; font-size: 14px; }
.empty-state a { color: var(--accent); }

/* ── About / Contact ──────────────────────────────────────────────────── */
.about-section, .contact-section {
  padding: calc(var(--header-h) + 80px) 32px 80px;
  min-height: 100vh;
}
.about-inner, .contact-inner {
  max-width: 720px; margin: 0 auto;
}
.about-inner h1, .contact-inner h1 {
  font-family: var(--serif); font-size: clamp(48px, 7vw, 80px); font-weight: 400;
  margin-bottom: 30px;
}
.about-body { font-size: 18px; line-height: 1.8; color: var(--fg-muted); margin-bottom: 40px; }
.btn-primary {
  display: inline-block; padding: 14px 36px; background: var(--accent); color: #111;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  border-radius: 2px; transition: all .25s var(--ease); border: 0;
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }

.contact-form { display: grid; gap: 20px; margin-top: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-muted); }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; font-size: 16px; font-family: var(--sans);
  background: var(--bg-soft); color: var(--fg); border: 1px solid var(--border); border-radius: 2px;
  transition: border-color .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .muted { color: var(--fg-muted); }

.alert { padding: 14px 18px; border-radius: 4px; font-size: 14px; margin-bottom: 20px; }
.alert-ok  { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); color: #86efac; }
.alert-err { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .3); color: #fca5a5; }

.muted { color: var(--fg-muted); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 32px 30px; border-top: 1px solid var(--border); background: var(--bg-soft);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-tag { color: var(--fg-muted); margin-top: 8px; font-size: 14px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-social a { color: var(--fg-muted); }
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1400px; margin: 40px auto 0; padding-top: 30px;
  border-top: 1px solid var(--border); color: var(--fg-muted); font-size: 13px; text-align: center;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
}
.error-page h1 { font-family: var(--serif); font-size: 160px; color: var(--accent); margin-bottom: 16px; }
.error-page p { color: var(--fg-muted); margin-bottom: 30px; }

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.96);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
  position: relative; max-width: 95vw; max-height: 92vh;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 95vw; max-height: 92vh; object-fit: contain; border-radius: 2px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed; color: #fff; background: rgba(255,255,255,.08); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: background .2s var(--ease); backdrop-filter: blur(10px);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); color: #111; }
.lightbox-caption {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; max-width: 80vw; text-align: center;
  background: rgba(0,0,0,.5); padding: 10px 20px; border-radius: 999px;
}
.lightbox-counter {
  position: fixed; top: 28px; left: 28px; color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: 1px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav-primary {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(10,10,10,.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    transform: translateX(100%); transition: transform .3s var(--ease);
  }
  .nav-primary.open { transform: translateX(0); }
  .nav-primary a { font-size: 20px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .work { padding: 80px 16px 60px; }
  .gallery { column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-img { animation: none !important; }
}

