/* ==========================================================================
   OCKHAM DOBRA 05 — POR QUE A OCKHAM?
   Narrativa Editorial Fluida (Sem Caixinhas) + Canvas Único de Convergência
   Continuidade Natural e Fluida no Fundo Preto Ockham
   ========================================================================== */

.ock-why-section {
  position: relative;
  background-color: transparent;
  padding-top: clamp(56px, 6.5vw, 88px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
  color: var(--ock-text);
}

/* ==========================================================================
   EFEITO BLUR-REVEAL PROGRESSIVO (SCROLL-TRIGGERED)
   ========================================================================== */
.ock-blur-reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.ock-why-section.is-revealed .ock-blur-reveal {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.ock-why-section.is-revealed .ock-blur-reveal--delay-1 {
  transition-delay: 0.12s;
}

.ock-why-section.is-revealed .ock-blur-reveal--delay-2 {
  transition-delay: 0.25s;
}

.ock-why-section.is-revealed .ock-blur-reveal--delay-3 {
  transition-delay: 0.38s;
}

/* ==========================================================================
   CABEÇALHO EDITORIAL ABERTO
   ========================================================================== */
.ock-why-header {
  position: relative;
  z-index: 5;
  text-align: left;
  max-width: var(--ock-container);
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 72px);
  padding: 0 20px;
}

.ock-why-header .ock-badge-pill {
  margin-bottom: 22px;
}

.ock-why-title {
  font-family: var(--ock-heading);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.ock-why-lead {
  font-family: var(--ock-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.72;
  color: var(--ock-muted);
  max-width: 68ch;
  margin: 0;
}

/* ==========================================================================
   LAYOUT ASSIMÉTRICO (SPLIT-SCREEN): TRILHA NARRATIVA VS CANVAS DE CONVERGÊNCIA
   Zero caixinhas: texto aberto à esquerda, visual de grande escala à direita
   ========================================================================== */
.ock-manifesto-layout {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  max-width: var(--ock-container);
  margin-inline: auto;
  padding: 0 20px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

/* --------------------------------------------------------------------------
   COLUNA ESQUERDA: TRILHA NARRATIVA CONTÍNUA (AMARRADA À ROLAGEM)
   -------------------------------------------------------------------------- */
.ock-narrative-flow {
  --ock-timeline-fill: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  padding-left: 28px;
}

/* Trilho base sutil da linha do tempo */
.ock-narrative-flow::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 24px;
  width: 2px;
  background: rgba(138, 184, 255, 0.14);
  border-radius: 2px;
}

/* Feixe luminoso progressivo controlado pela rolagem */
.ock-narrative-flow::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  width: 2px;
  height: calc((100% - 46px) * var(--ock-timeline-fill, 0));
  background: linear-gradient(
    180deg,
    #2F6FD1 0%,
    #367CDD 65%,
    #8AB8FF 100%
  );
  box-shadow: 0 0 14px rgba(54, 124, 221, 0.85);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* Item Narrativo Aberto (Sem bordas, sem moldura, sem fundo de caixa) */
.ock-narrative-item {
  position: relative;
  cursor: pointer;
  padding: 12px 0 16px;
  opacity: 0.78;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ock-narrative-item.is-passed {
  opacity: 0.9;
}

.ock-narrative-item.is-active,
.ock-narrative-item:hover {
  opacity: 1;
}

/* Ponto Orbital Conector na Linha Guia */
.ock-narrative-dot {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0F0F0F;
  border: 2px solid rgba(138, 184, 255, 0.32);
  box-shadow: 0 0 0 4px #0F0F0F;
  z-index: 2;
  transition: border-color 0.35s ease,
              box-shadow 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease;
}

/* Ponto já percorrido pela rolagem */
.ock-narrative-item.is-passed .ock-narrative-dot {
  border-color: #8AB8FF;
  background: #2F6FD1;
  box-shadow: 0 0 0 4px #0F0F0F, 0 0 10px rgba(54, 124, 221, 0.45);
}

/* Ponto ativo no momento da rolagem */
.ock-narrative-item:hover .ock-narrative-dot,
.ock-narrative-item.is-active .ock-narrative-dot {
  border-color: #8AB8FF;
  background: #367CDD;
  box-shadow: 0 0 0 4px #0F0F0F, 0 0 18px rgba(54, 124, 221, 0.95);
  transform: scale(1.22);
}

/* Tag Tipográfica Sutil */
.ock-narrative-num {
  display: inline-block;
  font-family: var(--ock-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ock-link);
  margin-bottom: 8px;
}

/* Título Narrativo */
.ock-narrative-title {
  font-family: var(--ock-heading);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.ock-narrative-item:hover .ock-narrative-title,
.ock-narrative-item.is-active .ock-narrative-title {
  color: #8AB8FF;
}

/* Parágrafo Corrido Aberto (Fluido e Arejado) */
.ock-narrative-desc {
  font-family: var(--ock-body);
  font-size: clamp(1.025rem, 1.35vw, 1.1rem);
  line-height: 1.72;
  color: #D2DCEB;
  margin-bottom: 14px;
  max-width: 52ch;
}

/* Destaque Editorial Integrado */
.ock-narrative-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ock-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #E8F0FC;
}

.ock-narrative-detail svg {
  width: 16px;
  height: 16px;
  color: var(--ock-link);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   COLUNA DIREITA: O NÚCLEO DE CONVERGÊNCIA (CANVAS VISUAL INTERATIVO ÚNICO)
   -------------------------------------------------------------------------- */
.ock-convergence-canvas {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 28px;
  background: radial-gradient(
    100% 70% at 50% 0%,
    rgba(22, 32, 54, 0.6) 0%,
    rgba(12, 16, 26, 0.85) 60%,
    rgba(8, 10, 16, 0.95) 100%
  );
  border: 1px solid rgba(138, 184, 255, 0.16);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 32px rgba(54, 124, 221, 0.08);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ock-convergence-canvas .ock-border-beam {
  z-index: 10;
  opacity: 1;
}

.ock-convergence-canvas .ock-border-beam::before {
  animation-play-state: running;
}

/* Topo do Canvas */
.ock-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(138, 184, 255, 0.12);
}

.ock-canvas-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ock-link);
}

.ock-canvas-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.725rem;
  font-weight: 600;
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.08);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(56, 239, 125, 0.2);
}

.ock-canvas-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
}

/* Diagrama de Convergência (Dois Polos Conectados ao Núcleo Ockham) */
.ock-synergy-matrix {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.ock-matrix-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(14, 20, 34, 0.55);
  border: 1px solid rgba(138, 184, 255, 0.1);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.ock-matrix-layer.is-highlighted,
.ock-matrix-layer:hover {
  background: rgba(22, 34, 60, 0.8);
  border-color: rgba(138, 184, 255, 0.35);
  transform: translateX(4px);
}

.ock-layer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(54, 124, 221, 0.15);
  border: 1px solid rgba(138, 184, 255, 0.25);
  color: var(--ock-link);
  flex-shrink: 0;
}

.ock-layer-icon svg {
  width: 20px;
  height: 20px;
}

.ock-layer-content {
  flex-grow: 1;
}

.ock-layer-name {
  display: block;
  font-family: var(--ock-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ock-layer-desc {
  display: block;
  font-size: 0.9rem;
  color: #CED8E8;
  line-height: 1.45;
}

.ock-layer-tag {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(138, 184, 255, 0.12);
  color: #B8D4FF;
  border: 1px solid rgba(138, 184, 255, 0.24);
}

/* O Hub Central Ockham */
.ock-matrix-hub {
  position: relative;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(30, 48, 86, 0.85) 0%,
    rgba(16, 26, 48, 0.92) 100%
  );
  border: 1px solid rgba(138, 184, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(54, 124, 221, 0.2);
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ock-matrix-hub.is-highlighted {
  border-color: #8AB8FF;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 32px rgba(54, 124, 221, 0.42);
  transform: scale(1.02);
}

.ock-hub-pulse {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid #8AB8FF;
  opacity: 0.4;
  animation: ock-hub-glow 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ock-hub-glow {
  0% { opacity: 0.2; box-shadow: 0 0 10px rgba(54, 124, 221, 0.2); }
  100% { opacity: 0.6; box-shadow: 0 0 24px rgba(138, 184, 255, 0.4); }
}

.ock-hub-title {
  font-family: var(--ock-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ock-hub-sub {
  font-size: 0.9rem;
  color: #B8D4FF;
  font-weight: 500;
}

/* ==========================================================================
   FECHAMENTO EDITORIAL TIPOGRÁFICO DE ALTO IMPACTO (SEM MOLDURA DE BOTÃO)
   ========================================================================== */
.ock-why-editorial-statement {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
  padding: 0 20px;
}

.ock-editorial-statement-quote {
  font-family: var(--ock-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0;
}

.ock-editorial-statement-quote strong {
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
  .ock-manifesto-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ock-convergence-canvas {
    position: relative;
    top: 0;
    order: -1; /* Exibe o canvas logo abaixo do título no tablet/mobile */
  }

  .ock-narrative-flow {
    padding-left: 28px; /* Mantém o eixo X=7px cravado no centro exato das bolinhas de 14px */
  }
}

@media (max-width: 640px) {
  .ock-why-header {
    text-align: left;
  }

  .ock-manifesto-layout {
    padding: 0 16px;
  }

  .ock-narrative-desc {
    font-size: 0.95rem;
  }

  .ock-editorial-statement-quote {
    font-size: 1.25rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ock-blur-reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
