/* The ink shape: three sizes, the body, the leader's lobe, the ghost, the ticks, the label, the pulse, the breathing. */
.ink { position: relative; display: block; overflow: visible; }
.ink-cover { height: 42vh; min-height: 220px; margin: 0 calc(-1 * var(--gutter)); }
.ink-dock { height: var(--dock); margin: 0 calc(-1 * var(--gutter)); }
.ink-hero { height: 46vh; min-height: 260px; margin: 0 calc(-1 * var(--gutter)); }
/* the drawing fits its box both ways, so width follows height and nothing spills */
.ink-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ink-body { fill: var(--fill); }
.ink-lead { opacity: 0.9; }
.ink-ghost { fill: none; stroke: var(--ghost); stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; transition: d var(--dur-move) var(--ease-spring); }
.ink-ticks line { stroke: var(--ink-20); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ink-dock .ink-ticks { display: none; }
.ink-hits path { fill: transparent; cursor: pointer; }
.ink-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.ink-pulse.is-on { animation: ink-pulse 520ms var(--ease-spring) 1; }
@keyframes ink-pulse { 0% { r: 6; opacity: 0.9; } 100% { r: 34; opacity: 0; } }

/* the leader's name beside its lobe */
.ink-label {
  position: absolute; left: 0; top: 0; width: max-content; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-size: var(--t-title); color: var(--ink); background: var(--ground); padding: 2px 6px; border-radius: var(--r-thumb);
  transition: left var(--dur-move) var(--ease-spring), top var(--dur-move) var(--ease-spring), opacity var(--dur-fast);
}
.ink-label.is-lead { color: var(--accent); }
.ink-label[data-side='left'] { transform: translate(-100%, -50%); }
.ink-label[data-side='right'] { transform: translate(0, -50%); }
.ink-label[data-side='mid'][data-v='top'] { transform: translate(-50%, -100%); }
.ink-label[data-side='mid'][data-v='bottom'] { transform: translate(-50%, 0); }
.ink-cover .ink-label { display: none; }
@media (min-width: 900px) { .ink-label { font-size: var(--t-hero); } }

/* breathing on cover and hero only */
.ink-cover .ink-breath, .ink-hero .ink-breath { transform-origin: 200px 200px; animation: ink-breath 6s ease-in-out infinite; }
@keyframes ink-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) { .ink-breath { animation: none !important; } .ink-pulse.is-on { animation: none; } .ink-label { transition: none; } }
.ink-still .ink-breath { animation: none !important; }
.ink-still .ink-pulse.is-on { animation: none; }
.ink-still .ink-label { transition: none; }
