:root {
  --bg: #0e0c0b;
  --bg2: #1a1512;
  --ink: #f0ece4;
  --muted: #9e9488;
  --line: rgba(240, 236, 228, 0.12);
  --accent: #c84a1e;
  --radius: 4px;
}

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

html, body {
  background: var(--bg);
  background: linear-gradient(160deg, #0e0c0b 0%, #1a1512 40%, #12100f 70%, #0a0908 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Site Header (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 12, 11, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
}
.nav-brand {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-style: italic;
}
.nav-links { display: flex; gap: 32px; font-size: 14px; letter-spacing: 0.02em; }
.nav-links a { position: relative; padding-bottom: 2px; color: var(--accent); }
.nav-links a:hover { color: var(--ink); }

/* ---------- Tagline Bar ---------- */
.tagline-bar {
  padding: 11px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.tagline-bar strong em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Category sections ---------- */
#sections {
  padding-bottom: 80px;
}
.cat-section {
  padding: 48px 0 16px;
  border-top: 1px solid var(--line);
}
.cat-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 5px 16px rgba(200, 74, 30, 0.8), 2px 3px 0 rgba(200, 74, 30, 0.45);
  padding: 0 48px 24px;
}
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 48px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row { scrollbar-width: none; }

.tile {
  flex: 0 0 260px;
  scroll-snap-align: start;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  color: inherit;
  transition: transform 0.35s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile-img-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: #1e1a16;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(240, 236, 228, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.tile img, .tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile-meta {
  padding: 12px 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tile-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.tile-year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0.96);
  z-index: 100;
  display: none;
  overflow-y: auto;
}
.lightbox.open { display: block; }
.lightbox-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: #f5f1e8;
}
.lightbox-close {
  position: fixed;
  top: 24px; right: 32px;
  background: none; border: none;
  color: #f5f1e8;
  font-size: 28px;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  z-index: 2;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.lightbox-cat {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8c1b0;
  margin-bottom: 32px;
}
.lightbox-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
  margin-bottom: 32px;
}
.lightbox-info dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8c1b0;
  margin-bottom: 4px;
}
.lightbox-info dd {
  font-size: 15px;
}
.lightbox-desc {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 48px;
  color: #e8e2d2;
}
/* ---------- Carousel ---------- */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 20px;
  height: 420px;
  perspective: 1000px;
}
.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.carousel-item {
  position: absolute;
  width: 320px;
  height: 380px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease,
              filter 0.5s ease;
  border-radius: 4px;
  overflow: hidden;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 4px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f5f1e8;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.18); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,241,232,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: #f5f1e8;
  transform: scale(1.4);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 10vh 48px;
  max-width: 1200px;
  align-items: center;
}
.about-wrap img {
  width: 100%;
  max-height: 732px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
.about-copy h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.about-copy h1 em { font-style: italic; color: var(--accent); }
.about-copy h1 em .dot { font-style: normal; }
.about-copy p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--ink);
}
.about-copy .contact-line {
  margin-top: 32px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .tagline-bar { padding: 10px 24px; }
  .filter-bar { padding: 24px; gap: 18px; }
  .grid { padding: 24px; columns: 1; }
  .scroll-row { padding: 0 24px 24px; }
  .cat-title { padding: 0 24px 20px; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 12px; }
  .about-wrap { grid-template-columns: 1fr; padding: 8vh 24px; gap: 32px; }
  .lightbox-close { top: 16px; right: 20px; }
}
