/* Quiet motion for the money course: light, a market line, and a six-week path. */
.money-motion-glow {
  position: relative;
  isolation: isolate;
}
.money-motion-glow-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(180px circle at var(--money-glow-x, 50%) var(--money-glow-y, 50%), rgba(246, 224, 167, .36), rgba(246, 224, 167, .09) 45%, transparent 75%);
  transition: opacity .45s ease;
}
.money-motion-glow.is-hovered .money-motion-glow-layer { opacity: 1; }
#future .money-motion-glow-layer,
#channels .money-motion-glow-layer {
  background: radial-gradient(180px circle at var(--money-glow-x, 50%) var(--money-glow-y, 50%), rgba(192, 166, 97, .25), rgba(192, 166, 97, .07) 45%, transparent 75%);
}
@media (hover: none), (pointer: coarse) {
  .money-motion-glow.is-lit .money-motion-glow-layer { animation: money-light-pass 1.5s ease-out both; }
}
@keyframes money-light-pass {
  0% { opacity: 0; transform: translateX(-22%); }
  38% { opacity: 1; }
  100% { opacity: 0; transform: translateX(22%); }
}

/* A small gold reading light follows the actual pointer across the page. */
.money-pointer-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  will-change: transform;
}
.money-pointer-glow.is-visible { opacity: 1; }
.money-pointer-core,
.money-pointer-wave {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}
.money-pointer-core {
  z-index: 1;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(221, 156, 43, .62), rgba(236, 192, 105, .27) 45%, transparent 78%);
  filter: blur(1.5px);
  transform: translate(-50%, -50%);
}
.money-pointer-wave {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, rgba(226, 170, 65, .48) 0%, rgba(232, 184, 91, .32) 36%, rgba(236, 193, 107, .13) 65%, transparent 84%);
  filter: blur(1.5px);
  opacity: 0;
  animation: money-pointer-pulse 2.4s ease-out infinite;
}
.money-pointer-wave:nth-of-type(3) { animation-delay: .8s; }
.money-pointer-wave:nth-of-type(4) { animation-delay: 1.6s; }
@keyframes money-pointer-pulse {
  0% { opacity: .72; transform: translate(-50%, -50%) scale(.25); }
  55% { opacity: .44; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}
@media (hover: none), (pointer: coarse) {
  .money-pointer-glow { display: none !important; }
}

.money-motion-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
  align-items: center;
  gap: clamp(16px, 4vw, 55px);
  margin: clamp(34px, 6vw, 62px) 0 0;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3.5vw, 40px);
  border: 1px solid rgba(221, 225, 203, .35);
  border-radius: 5px;
  background: linear-gradient(115deg, rgba(255, 255, 244, .075), rgba(255, 255, 244, .012));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 16px 36px rgba(9, 34, 24, .11);
}
.money-motion-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.money-motion-chart .money-chart-grid { stroke: rgba(222, 226, 207, .15); stroke-width: 1; }
.money-motion-chart .money-chart-path {
  fill: none;
  stroke: #e3c894;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(227, 200, 148, .32));
}
.money-motion-chart.is-visible .money-chart-path { animation: money-chart-draw 2.35s cubic-bezier(.35, .1, .16, 1) forwards; }
.money-motion-chart .money-chart-end { fill: #f2dfba; opacity: 0; filter: drop-shadow(0 0 6px #e3c894); }
.money-motion-chart.is-visible .money-chart-end { animation: money-chart-dot .45s ease 2.1s forwards; }
.money-motion-chart figcaption { min-width: 0; }
.money-motion-chart .money-chart-kicker { display: block; margin-bottom: 12px; color: #dfc99d; font-size: 10px; letter-spacing: .18em; }
.money-motion-chart strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.2vw, 25px); line-height: 1.7; }
.money-motion-chart small { display: block; margin-top: 12px; color: #cdd8c8; font-size: 10px; line-height: 1.8; }
@keyframes money-chart-draw { to { stroke-dashoffset: 0; } }
@keyframes money-chart-dot { to { opacity: 1; } }

.money-motion-weeks {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: 610px;
  margin: 0 auto 38px;
  padding: 0 8px;
}
.money-motion-weeks::before,
.money-motion-weeks::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 22px;
  right: 22px;
  height: 1px;
}
.money-motion-weeks::before { background: rgba(223, 213, 176, .38); }
.money-motion-weeks::after { background: #dfc58e; transform: scaleX(0); transform-origin: left center; }
.money-motion-weeks.is-visible::after { animation: money-week-line 1.7s ease-out forwards; }
.money-motion-week {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #aab79e;
  border-radius: 50%;
  background: #24473b;
  color: #dce3d0;
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 5px #24473b;
  transition: background .3s, color .3s, box-shadow .3s, transform .3s;
}
.money-motion-weeks.is-visible .money-motion-week { animation: money-week-light .6s ease-out both; animation-delay: calc(var(--money-week-index) * .23s); }
.money-motion-week.is-current { background: #ead5a4; color: #24473b; transform: scale(1.14); box-shadow: 0 0 0 5px #24473b, 0 0 0 8px rgba(234, 213, 164, .35), 0 0 20px rgba(234, 213, 164, .45); }
@keyframes money-week-line { to { transform: scaleX(1); } }
@keyframes money-week-light { 0% { background: #24473b; box-shadow: 0 0 0 5px #24473b; } 65% { background: #ead5a4; color: #24473b; box-shadow: 0 0 0 5px #24473b, 0 0 16px #ead5a4; } 100% { background: #24473b; color: #dce3d0; box-shadow: 0 0 0 5px #24473b; } }

.money-motion-bridge {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 24px);
  max-width: 930px;
  margin: 42px auto 52px;
  padding: 0 8px;
}
.money-motion-bridge::before,
.money-motion-bridge::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 16%;
  right: 16%;
  height: 1px;
}
.money-motion-bridge::before { background: #cdd7c8; }
.money-motion-bridge::after { background: #a58752; transform: scaleX(0); transform-origin: left center; }
.money-motion-bridge.is-visible::after { animation: money-bridge-draw 1.5s ease .1s forwards; }
.money-motion-bridge-step { position: relative; z-index: 1; text-align: center; }
.money-motion-bridge-dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 15px;
  border: 1px solid #b7c9b2;
  border-radius: 50%;
  background: #f8f6ef;
  color: #315843;
  font-family: Georgia, serif;
  font-size: 15px;
  box-shadow: 0 0 0 7px #f8f6ef;
  transition: background .4s, box-shadow .4s, color .4s;
}
.money-motion-bridge.is-visible .money-motion-bridge-step { animation: money-bridge-step .65s ease both; animation-delay: calc(var(--money-step-index) * .48s); }
.money-motion-bridge.is-visible .money-motion-bridge-dot { background: #e9efdf; box-shadow: 0 0 0 7px #f8f6ef, 0 5px 16px rgba(81, 112, 75, .16); }
.money-motion-bridge-step span:last-child { display: block; color: #315843; font-family: var(--serif); font-size: clamp(13px, 1.5vw, 17px); letter-spacing: .05em; }
@keyframes money-bridge-draw { to { transform: scaleX(1); } }
@keyframes money-bridge-step { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* One complete horizontal turn shows the reverse side, then restores the face. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cta:hover, .cta:focus-visible {
    transform: translateY(-10px) scale(1.045);
    box-shadow: 0 20px 34px rgba(20, 67, 43, .27);
  }
  .cta:active {
    transform: translateY(1px) scale(1.01);
    box-shadow: inset 0 3px 6px rgba(21, 55, 34, .35);
  }
  #channels .channel-card .channel-front,
  #channels .channel-card .channel-back { transition: none; }
  #channels .channel-card:hover .channel-front,
  #channels .channel-card:focus-visible .channel-front {
    animation: money-channel-front-turn 1.55s ease-in-out both;
  }
  #channels .channel-card:hover .channel-back,
  #channels .channel-card:focus-visible .channel-back {
    animation: money-channel-back-turn 1.55s ease-in-out both;
  }
}
@keyframes money-channel-front-turn {
  0% { transform: rotateY(0deg); }
  42%, 58% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@keyframes money-channel-back-turn {
  0% { transform: rotateY(-180deg); }
  42%, 58% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

.support-visual .community-preview {
  position: relative;
  transform-style: preserve-3d;
  --money-rest-y: -8deg;
  --money-rest-x: 4deg;
}
.support-visual .community-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(126, 159, 111, .23) 0 22%, transparent 22.5%), radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(126, 159, 111, .22) 35.5% 36%, transparent 36.5%), linear-gradient(145deg, #e4eadc, #f3f1e7);
  box-shadow: inset 0 0 0 1px #cdd4c1;
  opacity: 0;
  pointer-events: none;
}
.support-visual .community-preview.is-visible {
  animation: money-community-turn 2s ease-in-out both;
}
.support-visual .community-preview.is-visible > * {
  animation: money-community-front-visibility 2s linear both;
}
.support-visual .community-preview.is-visible::after {
  animation: money-community-back-visibility 2s linear both;
}
@keyframes money-community-turn {
  0% { transform: perspective(1000px) rotateY(var(--money-rest-y)) rotateX(var(--money-rest-x)); }
  42%, 58% { transform: perspective(1000px) rotateY(calc(var(--money-rest-y) + 180deg)) rotateX(var(--money-rest-x)); }
  100% { transform: perspective(1000px) rotateY(calc(var(--money-rest-y) + 360deg)) rotateX(var(--money-rest-x)); }
}
@keyframes money-community-front-visibility {
  0%, 23% { opacity: 1; }
  24%, 76% { opacity: 0; }
  77%, 100% { opacity: 1; }
}
@keyframes money-community-back-visibility {
  0%, 23% { opacity: 0; }
  24%, 76% { opacity: 1; }
  77%, 100% { opacity: 0; }
}

@media (max-width: 700px) {
  .support-visual .community-preview { --money-rest-y: -5deg; --money-rest-x: 3deg; }
  .money-motion-chart { grid-template-columns: 1fr; gap: 15px; padding: 22px; margin-top: 32px; }
  .money-motion-chart figcaption { order: -1; }
  .money-motion-chart .money-chart-kicker { margin-bottom: 5px; }
  .money-motion-chart small { margin-top: 5px; }
  .money-motion-weeks { margin-bottom: 28px; }
  .money-motion-bridge { gap: 5px; margin: 30px auto 38px; }
  .money-motion-bridge-step span:last-child { font-size: 10px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
  .money-motion-bridge-dot { width: 39px; height: 39px; margin-bottom: 12px; box-shadow: 0 0 0 4px #f8f6ef; }
  .money-motion-bridge::before, .money-motion-bridge::after { top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-visual .community-preview { animation: none !important; }
  .support-visual .community-preview > * { animation: none !important; opacity: 1 !important; }
  .support-visual .community-preview::after { animation: none !important; opacity: 0 !important; }
  .money-pointer-glow { display: none !important; }
  .money-motion-glow-layer, .money-motion-week, .money-motion-bridge-dot { transition: none !important; animation: none !important; }
  .money-motion-chart .money-chart-path { stroke-dashoffset: 0; animation: none !important; }
  .money-motion-chart .money-chart-end { opacity: 1; animation: none !important; }
  .money-motion-weeks::after, .money-motion-bridge::after { transform: scaleX(1); animation: none !important; }
  .money-motion-bridge-step { opacity: 1; transform: none; animation: none !important; }
}
