/* ─── HOME.CSS — Homepage-specific styles ─── */

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,162,82,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-mandala {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  opacity: 0.06;
  pointer-events: none;
  animation: rotateSlow 120s linear infinite;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title span { color: var(--gold); }

.hero-sub {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: #b0a898;
  max-width: 520px;
  line-height: 1.8;
  margin: 0 auto 48px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b0a898;
}

/* BOOKS SECTION */
.books-section {
  padding: 100px 60px;
}
.books-header { margin-bottom: 60px; }
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s, border-color 0.3s, background 0.3s;
}
.book-card.revealed { opacity: 1; transform: translateY(0); }
.book-card:nth-child(2) { transition-delay: 0.15s; }
.book-card:nth-child(3) { transition-delay: 0.3s; }
.book-card:hover { border-color: var(--border2); background: var(--surface2); }

.book-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.book-card:hover::before { opacity: 1; }

.book-vol {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 28px;
}
.book-series-tag {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: block;
}
.book-spine {
  width: 32px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  margin-bottom: 28px;
  opacity: 0.25;
  position: relative;
}
.book-spine::after {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: var(--gold);
}
.book-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}
.book-desc {
  font-size: 13px;
  line-height: 1.85;
  color: #b0a898;
  margin-bottom: 32px;
}
.book-actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

.text-link {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing 0.3s;
}
.text-link:hover { letter-spacing: 3px; }

.text-link-muted {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b0a898;
  transition: color 0.3s;
}
.text-link-muted:hover { color: var(--text); }

/* FRAGMENTS SECTION */
.fragments-section {
  padding: 100px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fragments-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 70px;
}
.fragment-list { display: flex; flex-direction: column; }

.fragment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s, transform 0.6s, background 0.3s;
  cursor: pointer;
}
.fragment-item.revealed { opacity: 1; transform: translateX(0); }
.fragment-item:nth-child(2) { transition-delay: 0.1s; }
.fragment-item:nth-child(3) { transition-delay: 0.2s; }
.fragment-item:nth-child(4) { transition-delay: 0.3s; }
.fragment-item:nth-child(5) { transition-delay: 0.4s; }
.fragment-item:last-child { border-bottom: none; }

.fragment-title {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
  line-height: 1.3;
}
.fragment-item:hover .fragment-title { color: var(--gold); }
.fragment-meta { font-size: 11px; color: #b0a898; letter-spacing: 1px; margin-top: 4px; }
.fragment-arrow { color: var(--gold); font-size: 16px; opacity: 0; transition: opacity 0.3s, transform 0.3s; flex-shrink: 0; }
.fragment-item:hover .fragment-arrow { opacity: 1; transform: translateX(4px); }

.fragments-quote {
  border-top: 1px solid var(--border);
  padding-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}
.fragments-quote.revealed { opacity: 1; transform: translateY(0); }

blockquote {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.quote-mark {
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.3;
  display: block;
  margin-bottom: 20px;
}
blockquote p {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
blockquote cite {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* SAMVADA */
.samvada-section { padding: 100px 60px; }
.samvada-header { margin-bottom: 56px; }
.samvada-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.samvada-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s, transform 0.7s;
}
.samvada-card.revealed { opacity: 1; transform: translateY(0); }
.samvada-card:nth-child(2) { transition-delay: 0.15s; }
.samvada-card:nth-child(3) { transition-delay: 0.3s; }
.samvada-card.featured {
  background: linear-gradient(140deg, rgba(201,162,82,0.06) 0%, transparent 60%);
  border-color: var(--border2);
}
.samvada-label {
  display: block;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.samvada-card h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 14px;
}
.samvada-card p {
  font-size: 13px;
  line-height: 1.85;
  color: #b0a898;
}
.samvada-date {
  font-size: 12px;
  color: var(--gold);
  opacity: 0.8;
  letter-spacing: 1px;
}

/* STUDIO */
.studio-section {
  padding: 100px 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.studio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.studio-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.studio-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}
.studio-item.revealed { opacity: 1; transform: translateY(0); }
.studio-item:nth-child(2) { transition-delay: 0.12s; }
.studio-item:nth-child(3) { transition-delay: 0.24s; }
.studio-item:first-child { border-top: 1px solid var(--border); }
.studio-num { font-size: 10px; letter-spacing: 2px; color: var(--gold); opacity: 0.4; }
.studio-item-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}
.studio-item:hover .studio-item-title { color: var(--gold); }
.studio-item-sub { font-size: 12px; color: #b0a898; margin-top: 3px; }
.studio-arrow { color: var(--gold); opacity: 0; transition: opacity 0.3s, transform 0.3s; font-size: 16px; }
.studio-item:hover .studio-arrow { opacity: 1; transform: translateX(4px); }

.studio-visual {
  aspect-ratio: 3/4;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.studio-mandala-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.studio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  background: linear-gradient(to top, rgba(16,14,11,0.9) 0%, transparent 100%);
}
.studio-caption p {
  font-size: 15px;
  font-style: italic;
  color: #b0a898;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: 1fr 1fr; }
  .samvada-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 120px 24px 100px; }
  .hero-mandala { width: 400px; height: 400px; }
  .books-section, .samvada-section, .studio-section { padding: 70px 24px; }
  .fragments-section { padding: 70px 24px; }
  .books-grid, .samvada-grid { grid-template-columns: 1fr; }
  .fragments-inner { grid-template-columns: 1fr; gap: 40px; }
  .studio-inner { grid-template-columns: 1fr; }
  .studio-visual { display: none; }
}

/* ── HOMEPAGE BOOKS SERIES LAYOUT ── */
.books-series-label {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0 0;
  margin: 0 0 2px;
}
.books-series-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.books-series-text {
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0.7;
}

.books-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.books-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.books-player-strip {
  margin-top: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(201,162,82,0.2);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .books-grid-2 { grid-template-columns: 1fr !important; }
  .books-grid-3 { grid-template-columns: 1fr !important; }
  .books-player-strip { flex-direction: column; align-items: flex-start; }
  .books-series-text { font-size: 8px; letter-spacing: 2px; }
}

/* ── BOOK COVER IMAGES ── */
.book-cover-img {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: opacity 0.3s;
}
.book-card:hover .book-cover-img { opacity: 0.9; }
