/* Final staging refinement: presentation only. Validated state machines remain untouched. */

/* Market metadata and information panel legibility */
.atlas-market-tabs button small {
  color: rgba(234, 233, 212, .88) !important;
  opacity: 1 !important;
  font-weight: 680 !important;
  line-height: 1.35;
}
.atlas-market-tabs button[aria-selected="true"] small { color: #f5f3e8 !important; }
#atlas-panel-kicker { color: rgba(234, 233, 212, .88) !important; font-weight: 720 !important; }
#atlas-panel-summary {
  color: rgba(255, 255, 255, .84) !important;
  font-weight: 510;
  white-space: pre-line;
}
.atlas-detail dd, .atlas-detail dt { color: rgba(255, 255, 255, .82) !important; }
.territory-status { fill: rgba(234, 233, 212, .78) !important; }

/* Evidence Journey legibility and restrained progress motion */
.gate2-value .gate-heading {
  color: rgba(245, 243, 232, .9) !important;
  font-weight: 720;
  font-size: 9px;
}
.gate2-value .journey-gates { position: relative; overflow: visible; }
.gate2-value .journey-gates::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: var(--journey-progress, 20%);
  height: 2px;
  background: linear-gradient(90deg, #6c895c, #c4bd71 72%, #b4ef57);
  box-shadow: 0 0 14px rgba(196, 189, 113, .32);
  transition: width .62s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.gate2-value .journey-gates li {
  opacity: .66 !important;
  color: rgba(245, 243, 232, .78) !important;
  font-weight: 560;
}
.gate2-value .journey-gates li span {
  color: rgba(234, 233, 212, .72) !important;
  font-weight: 720;
}
.gate2-value .journey-gates li b { font-weight: 670; }
.gate2-value .journey-gates li.is-complete {
  opacity: .84 !important;
  color: rgba(245, 243, 232, .9) !important;
}
.gate2-value .journey-gates li.active {
  opacity: 1 !important;
  color: #fff !important;
  filter: drop-shadow(0 0 10px rgba(196,189,113,.22));
}
.gate2-value .journey-gates li.active span { color: #d8d8a2 !important; }
.gate2-value .value-closing {
  color: rgba(245, 243, 232, .86) !important;
  font-size: 12px !important;
  font-weight: 540;
  line-height: 1.55;
}
.gate2-value .gate-panel.journey-pulse .journey-gates li.active::before {
  content: "";
  position: absolute;
  inset: 2px 8px auto;
  height: 1px;
  background: #c4bd71;
  animation: journeySignal .62s ease-out both;
}
@keyframes journeySignal {
  from { opacity: .15; transform: scaleX(.08); transform-origin: left; }
  55% { opacity: .9; }
  to { opacity: .25; transform: scaleX(1); transform-origin: left; }
}

/* Future direction must remain editorial and immediately readable. */
.future-section .section-intro {
  position: relative;
  isolation: isolate;
}
.future-section .section-intro h2 { color: #07383a !important; text-shadow: none !important; }
.future-section .section-intro > p:last-child {
  color: #294f4e !important;
  opacity: 1 !important;
  font-weight: 530;
}
.future-section .section-intro .eyebrow { color: #6c6f39 !important; }

/* One-time, restrained official-logo reveal. */
.relationship-core image.logo-refined-reveal,
.footer-signoff img.logo-refined-reveal {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoRefinedReveal 1.05s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes logoRefinedReveal {
  0% { opacity: .58; transform: translateY(5px) scale(.985); filter: drop-shadow(0 0 0 rgba(114,212,71,0)); }
  65% { opacity: 1; transform: translateY(0) scale(1.008); filter: drop-shadow(0 0 8px rgba(114,212,71,.18)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 0 2px rgba(114,212,71,.08)); }
}

@media (max-width: 760px) {
  .atlas-market-tabs button small { font-size: 9px !important; }
  .gate2-value .gate-heading { font-size: 8px; gap: 14px; }
  .gate2-value .journey-gates li { opacity: .72 !important; }
  .gate2-value .value-closing { font-size: 12px !important; }
  .future-section .section-intro {
    padding: 24px 20px;
    border: 1px solid rgba(108,137,92,.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(234,233,212,.96), rgba(255,255,255,.94));
  }
  .future-section .section-intro h2 { font-size: clamp(38px, 11.2vw, 49px) !important; line-height: .98; }
  .future-section .section-intro > p:last-child { font-size: 16px !important; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  .gate2-value .journey-gates::after { transition: none; }
  .gate2-value .gate-panel.journey-pulse .journey-gates li.active::before,
  .relationship-core image.logo-refined-reveal,
  .footer-signoff img.logo-refined-reveal { animation: none !important; }
}
