/* ==========================================================================
   Interactive: "Campaigns end. Systems compound." (interactives/compound.js), home.
   Always illustrative: no y values, no client data. Tokens only, no raw hex.
   Lines are drawn by default; .cc--armed (JS, motion allowed) hides them until
   .is-drawn. stroke-dashoffset with pathLength="1"; static under reduced motion.
   ========================================================================== */
.cc{background:var(--mist)}
.cc__inner{display:flex;flex-direction:column;gap:clamp(1.75rem, 4vw, 2.5rem);padding-block:clamp(3.5rem, 7vw, 5.5rem)}
.cc__fig{display:grid;grid-template-columns:minmax(0, 1fr);gap:clamp(1.25rem, 3vw, 2.5rem);align-items:end}
.cc__chart{position:relative;aspect-ratio:16 / 9;width:100%;background:var(--card-bg);border:1px solid var(--card-line);border-radius:var(--radius-card);box-shadow:var(--card-shadow);padding:0;overflow:hidden}
.cc__svg{position:absolute;inset:0;width:100%;height:100%}
.cc__grid{stroke:color-mix(in srgb, var(--navy) 7%, transparent);stroke-width:1}
.cc__base{stroke:color-mix(in srgb, var(--navy) 28%, transparent);stroke-width:1.5}
.cc__line{fill:none;stroke-linecap:round;stroke-linejoin:round}
.cc__line--campaign{stroke:var(--muted);stroke-width:3}
.cc__line--system{stroke:var(--blue-text);stroke-width:5}
.cc__halo{fill:color-mix(in srgb, var(--blue-bright) 28%, transparent)}
.cc__end{fill:var(--white);stroke:var(--blue-text);stroke-width:3}

/* HTML labels over the chart keep their size at every width */
.cc__tag, .cc__label, .cc__axis{position:absolute;line-height:1.2;white-space:nowrap;pointer-events:none}
.cc__tag{left:8%;top:6%;font-size:.8125rem;font-weight:500;color:var(--text-soft);background:color-mix(in srgb, var(--white) 75%, transparent);border:1px solid var(--line);border-radius:var(--radius-pill);padding:4px 10px}
.cc__label{font-size:.9375rem;font-weight:600}
.cc__label--campaign{left:15.2%;top:47.8%;transform:translate(-50%, calc(-100% - 10px));color:var(--muted)}
.cc__label--system{left:97.2%;top:13%;transform:translate(calc(-100% - 26px), -50%);color:var(--blue-text-strong)}
.cc__axis{font-size:.8125rem;font-weight:500;color:var(--text-muted)}
.cc__axis--x{right:3%;bottom:2%}
.cc__axis--y{left:2.6%;top:50%;transform:translate(-50%, -50%) rotate(-90deg)}
.cc__summary{display:flex;flex-direction:column;gap:.75rem;font-size:1.125rem;line-height:1.6;color:var(--text-soft);max-width:44ch}
.cc__summary strong{color:var(--text);font-weight:600}
.cc__note{font-size:.9375rem;color:var(--text-muted)}

@media (min-width: 900px){
  .cc__fig{grid-template-columns:minmax(0, 1.9fr) minmax(0, 1fr)}
}
@media (max-width: 719.98px){
  .cc__line--campaign{stroke-width:5}
  .cc__line--system{stroke-width:7}
  .cc__tag{font-size:.75rem;padding:2px 8px;top:5%}
  .cc__label{font-size:.8125rem}
  .cc__axis{font-size:.75rem}
}

/* Draw on scroll (armed by JS only when motion is allowed) */
@media (prefers-reduced-motion: no-preference){
  .cc--armed .cc__line{stroke-dasharray:1 1;stroke-dashoffset:1}
  .cc--armed .cc__label, .cc--armed .cc__end, .cc--armed .cc__halo{opacity:0}
  .cc--armed.is-drawn .cc__line{stroke-dashoffset:0;transition:stroke-dashoffset 1.3s var(--ease-out)}
  .cc--armed.is-drawn .cc__line--system{transition-delay:.25s}
  .cc--armed.is-drawn .cc__label, .cc--armed.is-drawn .cc__end, .cc--armed.is-drawn .cc__halo{opacity:1;transition:opacity .4s ease-out 1.1s}
}
@media (forced-colors: active){
  .cc__line--system{stroke:Highlight}
  .cc__line--campaign{stroke:CanvasText}
}
