/* Investor-page interactions, with readable static content underneath. */
.deck-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.deck-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .24s ease;
}
@media (hover: hover) {
  .deck-cta:hover::before { opacity: 1; }
  .deck-cta:hover { box-shadow: 0 12px 32px #7a2cff33, 0 8px 24px #ff5a1f26; }
}
.deck-cta:focus-visible::before,
.deck-cta:active::before,
.deck-cta.is-tapped::before { opacity: 1; }
.deck-cta:active::before, .deck-cta.is-tapped::before { transition-duration: 0s; }
.deck-label-short { display: none; }
.nav-actions .deck-cta { display: inline-flex; min-height: 44px; flex-shrink: 0; }
.mobile-nav .deck-cta { display: flex; align-items: center; }

.count-visual {
  display: inline !important;
  margin: 0 !important;
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
  font-variant-numeric: tabular-nums !important;
}
.count-final {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.forecast-explorer { margin-top: 24px; }
.projection-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.projection-controls button {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: 750 .8rem/1.3 var(--font);
  cursor: pointer;
  touch-action: manipulation;
}
.projection-controls button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.projection-hint { margin: 12px 0 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.projection-plot { position: relative; height: 230px; margin: 32px 0 38px 40px; }
.projection-grid, .projection-columns { position: absolute; inset: 0; }
.projection-grid { pointer-events: none; }
.projection-tick { position: absolute; width: 100%; border-top: 1px solid var(--line); }
.projection-tick.is-zero { border-color: #65698088; border-top-width: 2px; }
.projection-tick span {
  position: absolute;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  white-space: nowrap;
}
.projection-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.projection-year {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.projection-year:focus-visible { outline-offset: 6px; }
.projection-bar {
  position: absolute;
  left: 17%;
  width: 66%;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(0deg,#4b10c8,#9f6cff);
  transform: scaleY(0);
  opacity: .67;
  transition: transform .95s cubic-bezier(.22,1,.36,1), height .45s ease, bottom .45s ease, opacity .2s ease;
}
.forecast-explorer.is-ready .projection-bar { transform: scaleY(1); }
.projection-year[aria-pressed="true"] .projection-bar { opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--purple); }
.projection-bar.is-negative { background: linear-gradient(0deg,#ff946f,#db2e73); border-radius: 2px 2px 8px 8px; }
.projection-value {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  transition: bottom .45s ease;
}
.projection-year-label { position: absolute; left: 0; right: 0; bottom: -28px; font-size: .75rem; font-weight: 750; }
.projection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--lavender);
  color: var(--purple);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
}
.projection-summary strong { white-space: nowrap; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.forecast-table .is-selected-period { box-shadow: inset 2px 0 #7a2cff55, inset -2px 0 #7a2cff55; }
.forecast-table thead .is-selected-period { background: var(--purple); }

.allocation-track { display: flex; height: 16px; gap: 3px; overflow: hidden; border-radius: 999px; margin: 24px 0 8px; }
.allocation-segment { flex: var(--share) 0 0; background: var(--fund-color); transform: scaleX(0); transform-origin: left; opacity: .4; transition: transform 1s cubic-bezier(.22,1,.36,1), opacity .2s; }
.capital-card.is-ready .allocation-segment { transform: scaleX(1); }
.allocation-segment.is-selected { opacity: 1; }
.funds-list.is-interactive { margin: 8px 0 16px; }
.funds-list.is-interactive li { display: block; padding: 0; }
.funds-button {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  padding: 18px 10px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s;
}
.funds-button[aria-pressed="true"] { background: var(--lavender); }
.funds-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc((100% - 20px) * var(--share) / 100);
  height: 3px;
  border-radius: 2px;
  background: var(--fund-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.22,1,.36,1);
}
.capital-card.is-ready .funds-button::after { transform: scaleX(1); }
.allocation-detail { min-height: 58px; margin: 12px 0; color: var(--purple); font-size: .875rem; line-height: 1.6; font-weight: 700; }

@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav .deck-cta { padding: 10px 14px; font-size: .75rem; white-space: nowrap; }
  .deck-label-full { display: none; }
  .deck-label-short { display: inline; }
  .projection-controls button { padding: 10px; font-size: .75rem; }
  .projection-columns { gap: 6px; }
  .projection-plot { height: 210px; margin-left: 30px; }
  .projection-value { font-size: .7rem; }
  .projection-summary { padding: 12px; }
  .projection-summary strong { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .nav { width: calc(100% - 24px); gap: 8px; }
  .brand img { width: clamp(106px,31vw,130px); }
  .nav .deck-cta { padding-inline: 12px; font-size: .7rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .projection-controls { gap: 5px; }
  .projection-controls button { padding-inline: 8px; font-size: .7rem; }
  .projection-value { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .projection-bar, .allocation-segment, .funds-button::after { transform: none; }
}
