/* ================================================================
   PANTHEION — The Bombay Blueprint (pantheion-blueprint.css)
   ================================================================ */

/* Active nav state */
.nav-active { color: white !important; }
.nav-active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--terra);
  margin-top: -2px;
}

/* ================================================================
   HERO — cinematic full-bleed dark
   ================================================================ */
.bb-hero {
  position: relative;
  height: auto;
  min-height: 56vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #30304a;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: calc(var(--nav-h) + 40px);
}

.bb-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(112,71,58,0.25) 0%, transparent 65%),
    linear-gradient(135deg, #1e1e30 0%, #30304a 55%, #1c1814 100%);
}

.bb-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 55%,
    rgba(0,0,0,0) 100%
  );
}

.bb-hero-content {
  position: relative; z-index: 2;
  padding: 0 6vw;
  max-width: 880px;
  opacity: 0;
  transform: translateY(20px);
  animation: bbFadeUp 0.9s 0.3s ease forwards;
}
@keyframes bbFadeUp { to { opacity: 1; transform: none; } }

/* Blueprint logo image or text fallback */
.bb-hero-logo {
  margin-bottom: 24px;
}
.bb-hero-logo img {
  height: 72px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.bb-hero-logo-fallback {
  font-family: var(--ff-display);
  font-size: clamp(46px, 4.2vw, 82px);
  font-weight: 300;
  color: white;
  letter-spacing: -1px;
  line-height: 1.05;
}
.bb-hero-logo-fallback em {
  font-style: italic;
  color: rgba(255,255,255,0.7);
}

.bb-hero-tagline {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.bb-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  position: relative; z-index: 2;
}

/* Scrolling topic tags strip at bottom of hero */
.bb-hero-tags {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.bb-hero-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ================================================================
   ABOUT — two-col split
   ================================================================ */
.bb-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  align-items: stretch;
}
.bb-about-img {
  overflow: hidden;
  padding: 40px 40px 40px 5vw;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.bb-about-img:hover img { transform: scale(1.04); }

.bb-about-text {
  padding: 80px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bb-about-text p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 20px;
}
.bb-about-text p:last-child { margin-bottom: 0; }

/* ================================================================
   TOPICS — four dark cards
   ================================================================ */
.bb-topics {
  background: var(--primary);
  padding: 80px 5vw;
}
.bb-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  max-width: 1200px;
  margin: 0 auto;
}
.bb-topic {
  background: var(--primary);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s;
}
.bb-topic:hover { background: var(--primary-light); }
.bb-topic-num {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 300;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: 4px;
}
.bb-topics-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.bb-topics-title {
  font-family: var(--ff-display);
  font-size: 34px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.3px;
}
.bb-topic-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.bb-topic-icon img {
  width: 44px; height: 44px;
  object-fit: contain;
}
.bb-topic-icon-fallback {
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
}
.bb-topic h4 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  color: white;
  line-height: 1.2;
}
.bb-topic p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ================================================================
   EPISODES SECTION
   ================================================================ */
.bb-episodes {
  background: #1C1410;
  padding: 100px 5vw;
  border-top: 3px solid var(--terra);
}
.bb-episodes-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.bb-episodes-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 12px;
  text-align: center;
}
.bb-episodes-sub a {
  color: var(--terra);
  text-decoration: none;
  transition: color 0.2s;
}
.bb-episodes-sub a:hover { color: var(--brown); }

/* Loading */
.bb-episodes-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 0;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.bb-loading-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: bbSpin 0.8s linear infinite;
}
@keyframes bbSpin { to { transform: rotate(360deg); } }

/* Error */
.bb-episodes-error {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}
.bb-episodes-error a {
  color: var(--terra); text-decoration: none;
}
.bb-episodes-error a:hover { color: var(--brown); }
.hidden { display: none !important; }

/* Video grid */
.bb-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Video card */
.bb-video-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.bb-video-card:hover {
  border-color: rgba(112,71,58,0.5);
  transform: translateY(-3px);
}

/* Thumbnail */
.bb-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.bb-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.bb-video-card:hover .bb-video-thumb img { transform: scale(1.04); }

/* Play button overlay */
.bb-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.25s;
}
.bb-video-play svg {
  width: 52px; height: 52px;
  background: rgba(112,71,58,0.85);
  border-radius: 50%;
  padding: 12px;
  transition: background 0.25s, transform 0.25s;
}
.bb-video-card:hover .bb-video-play svg {
  background: var(--terra);
  transform: scale(1.1);
}
.bb-video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s;
}
.bb-video-card:hover .bb-video-overlay { background: rgba(0,0,0,0.05); }

/* Video info */
.bb-video-info {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bb-video-title {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: white;
  line-height: 1.3;
}
.bb-video-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  flex: 1;
}
.bb-video-watch {
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--terra);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.bb-video-watch:hover { color: var(--brown); }

/* More button row */
.bb-episodes-more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.bb-lightbox {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bb-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.bb-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
  line-height: 1;
  z-index: 10;
}
.bb-lightbox-close:hover { color: white; }
.bb-lightbox-player {
  width: 100%;
  max-width: 1024px;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  z-index: 2;
}
.bb-lightbox-player iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ================================================================
   ENGAGE CTA
   ================================================================ */
.bb-engage {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 80px 5vw;
}
.bb-engage-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.bb-engage-inner p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0;
}
.bb-engage-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.bb-engage-contact {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
  padding-left: 48px;
}
.bb-engage-contact p {
  font-size: 13.5px;
  color: var(--text-muted);
}
.bb-engage-contact a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.bb-engage-contact a:hover { color: var(--terra); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1060px) {
  .bb-video-grid { grid-template-columns: 1fr 1fr; }
  .bb-topics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .bb-about { grid-template-columns: 1fr; }
  .bb-about-img { height: auto; padding: 24px 6vw; }
  .bb-about-img img { height: auto; object-fit: contain; }
  .bb-about-text { padding: 8px 6vw 56px; }
  .bb-engage-inner { grid-template-columns: 1fr; }
  .bb-engage-contact { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 640px) {
  .bb-hero { height: auto; min-height: 0; align-items: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: calc(var(--nav-h) + 24px); }
  .bb-hero-actions { flex-direction: column; align-items: flex-start; }
  .bb-hero-tags { display: none; }
  .bb-topics-grid { grid-template-columns: 1fr; }
  .bb-video-grid { grid-template-columns: 1fr; }
  .bb-episodes { padding: 72px 5vw; }
  .bb-lightbox { padding: 20px; }
}
