:root {
  --bg: #020202;
  --card: #0e0e0e;
  --card-hover: #161616;
  --border: #1a1a1a;
  --text: #ececec;
  --muted: #8a8a8a;
  --gold: #b89a72;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: #020202;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
}

/* Fixed dark mineral background */
body::before {
  content: '';
  position: fixed;
  inset: -10% 0;          /* extra height for parallax movement */
  z-index: -2;
  background: url('../images/bg-main.jpg') center center / cover no-repeat;
  opacity: 0.5;
  filter: brightness(0.6) contrast(1.05) saturate(0.85);
  will-change: transform;
  transform: translate3d(0, var(--parallax, 0px), 0);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(0,0,0,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(0,0,0,0.7) 0%, transparent 50%),
    linear-gradient(180deg, rgba(2,2,2,0.75) 0%, rgba(2,2,2,0.92) 40%, #020202 100%);
  pointer-events: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2,2,2,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 28px;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--text); }

/* Hero */
.hero {
  padding: 100px 28px 50px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,154,114,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.1rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 460px;
  margin: 0 auto;
}

/* Sections */
.sections {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 22px 30px;
}

.sections-title {
  text-align: center;
  margin-bottom: 36px;
}
.sections-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.sections-title p { color: var(--muted); font-size: 0.92rem; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.section-card {
  position: relative;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.section-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.section-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
  filter: brightness(0.55) saturate(0.85);
}

.section-card:hover .bg { transform: scale(1.06); }

.section-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.82) 100%);
}

.section-card .content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
}

.section-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Articles */
.articles {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 22px 100px;
}

.articles-title {
  text-align: center;
  margin-bottom: 36px;
}
.articles-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.articles-title p { color: var(--muted); font-size: 0.92rem; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.article-card {
  background: rgba(14,14,14,0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.35s ease;
}

.article-card:hover {
  background: rgba(22,22,22,0.95);
  border-color: #2e2e2e;
  transform: translateY(-2px);
}

.article-card:hover::after {
  width: 100%;
}

.article-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.article-card .preview {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal for articles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active { display: flex; }

.modal-inner {
  background: #0c0c0c;
  border: 1px solid #222;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 18px;
  padding-right: 30px;
}

.modal .props {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1.5;
}

.modal .desc {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.65;
  margin-bottom: 16px;
}

.modal .eso {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.6;
  border-top: 1px solid #1e1e1e;
  padding-top: 14px;
  font-style: italic;
}

/* Gallery page styles (kept) */
.gallery-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 18px 90px;
}
.gallery-header {
  text-align: center;
  margin-bottom: 36px;
}
.gallery-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.gallery-header p { color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s, border-color 0.3s, box-shadow 0.3s;
}
.grid-item:hover {
  transform: translateY(-5px);
  border-color: #333;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.grid-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s;
}
.grid-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 94vw; max-height: 90vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.85);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  color: #999; font-size: 2.1rem;
  cursor: pointer; background: none; border: none; line-height: 1; z-index: 2;
}
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(25,25,25,0.75); border: 1px solid #333;
  color: #ccc; width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}
.lightbox-nav:hover { background: rgba(45,45,45,0.9); color: #fff; border-color: #555; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.55);
}
.footer strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: #c8c0b0;
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.footer .love {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.footer .year {
  margin-top: 6px;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sections-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 70px 20px 40px; }
  .nav a { margin-left: 16px; }
}


/* Search */
.search-wrap {
  max-width: 420px;
  margin: 0 auto 32px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  background: rgba(14,14,14,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px 12px 42px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s;
}
.search-wrap input::placeholder { color: #666; }
.search-wrap input:focus { border-color: #3a3a3a; }
.search-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1rem;
  pointer-events: none;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alphabet bar */
.alphabet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  padding: 0 10px;
}
.alphabet button {
  background: rgba(14,14,14,0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.alphabet button:hover,
.alphabet button.active {
  background: rgba(30,30,30,0.95);
  border-color: var(--gold);
  color: var(--gold);
}
.alphabet button.reset {
  width: auto;
  padding: 0 12px;
  margin-left: 6px;
}
