/* M2. Manifesto + Pillars Accordion */

/* ============================================================
   M2. MANIFESTO (storytelling scroll)
   ============================================================ */
.manifesto {
  position: relative;
  padding: 0;
}
.manifesto-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) clamp(24px, 8vw, 80px);
  position: relative;
}

.manifesto-text {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 800px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.manifesto-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.manifesto-text .accent { color: var(--brn-blue-accent); }

.manifesto-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brn-blue-accent), transparent);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.6s 0.3s, width 0.6s 0.3s var(--ease-out);
}
.manifesto-divider.visible { opacity: 0.5; width: 120px; }

/* Second manifesto block — description */
.manifesto-desc {
  max-width: 640px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s 0.2s var(--ease-out), transform 0.8s 0.2s var(--ease-out);
}
.manifesto-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Immersive Pillars Accordion */
.pillars-accordion {
  display: flex;
  height: 70vh;
  min-height: 500px;
  max-height: 720px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-top: 60px;
}
.pillar-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s var(--ease-out);
  border-right: 1px solid rgba(255,255,255,0.04);
}
.pillar-panel:last-child { border-right: none; }
.pillar-panel:hover,
.pillar-panel.active { flex: 3; }
.pillar-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  filter: brightness(0.5) saturate(0.7);
}
.pillar-panel:hover .pillar-panel-bg,
.pillar-panel.active .pillar-panel-bg {
  transform: scale(1.08);
  filter: brightness(0.65) saturate(0.9);
}
.pillar-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,19,64,0.15) 0%, rgba(10,10,10,0.92) 100%);
}
.pillar-panel-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
}
.pillar-panel-number {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
  position: absolute;
  top: 20px;
  left: 20px;
  line-height: 1;
  transition: color 0.6s var(--ease-out);
}
.pillar-panel:hover .pillar-panel-number,
.pillar-panel.active .pillar-panel-number { color: rgba(91,155,255,0.18); }

/* Explore hint on panels */
.pillar-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brn-blue-accent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.pillar-panel:hover::after,
.pillar-panel.active::after { opacity: 0.6; }
.pillar-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(91,155,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brn-blue-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s 0.1s var(--ease-out);
}
.pillar-panel-icon svg { width: 20px; height: 20px; }
.pillar-panel:hover .pillar-panel-icon,
.pillar-panel.active .pillar-panel-icon { opacity: 1; transform: translateY(0); }
.pillar-panel h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  transition: margin 0.4s var(--ease-out);
}
.pillar-panel:hover h4,
.pillar-panel.active h4 { margin-bottom: 12px; }
.pillar-panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s 0.15s var(--ease-out);
}
.pillar-panel:hover .pillar-panel-desc,
.pillar-panel.active .pillar-panel-desc { max-height: 200px; opacity: 1; }

@media (max-width: 768px) {
  .pillars-accordion {
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .pillar-panel {
    flex: none !important;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .pillar-panel:last-child { border-bottom: none; }
  .pillar-panel .pillar-panel-icon { opacity: 1; transform: translateY(0); }
  .pillar-panel .pillar-panel-desc { max-height: 200px; opacity: 1; }
  .pillar-panel h4 { margin-bottom: 8px; }
}
