/* /stablecoins — "How stablecoins move" public explainer (formerly /layers).
   Reading-column narrative on supply vs settlement movement. All rules are
   namespaced .ly-* (retained filename/prefix to avoid churn) to avoid
   collisions with the shared homepage/tape styles. Reuses tokens.css
   variables; defines only the local teal/coral movement pair (matching
   css/tape.css) for the movement equation. No JS. */

:root {
  --ly-pos: var(--st-mint-strong);   /* expanded — matches --tape-pos */
  --ly-neg: var(--st-red);           /* contracted — matches --tape-neg */
}

body { line-height: 1.7; }

.ly-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero ─────────────────────────────────── */
.ly-hero {
  padding: 5.5rem 0 2rem;
}
.ly-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--label-muted);
  margin-bottom: 1rem;
}
.ly-hero-title {
  font-family: var(--serif-display);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--text);
  margin: 0 0 1rem;
}
.ly-hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}

/* ── Gateway grid (hero-adjacent visual entry points) ── */
.ly-gateway {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 2.5rem;
}
.ly-gateway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ly-gateway-card:hover {
  border-color: rgba(90, 150, 255, 0.4);
  background: rgba(90, 150, 255, 0.045);
  transform: translateY(-2px);
}
.ly-gateway-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ly-card-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ly-card-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
}
.ly-card-copy {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.ly-card-cta {
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--label-muted);
}
.ly-gateway-card:hover .ly-card-cta { color: var(--accent-light); }

/* Card motifs — decorative, no live data */
.ly-card-motif {
  display: block;
  height: 34px;
  margin: 0.15rem 0 0.1rem;
  opacity: 0.9;
}
.ly-motif-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
}
.ly-motif-bars span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  opacity: 0.55;
}
.ly-motif-bars span:nth-child(1) { height: 40%; }
.ly-motif-bars span:nth-child(2) { height: 62%; }
.ly-motif-bars span:nth-child(3) { height: 78%; }
.ly-motif-bars span:nth-child(4) { height: 100%; opacity: 0.85; }

.ly-motif-equation {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
}
.ly-motif-equation i { font-style: normal; color: var(--text-faint); opacity: 0.7; }
.ly-motif-equation strong { color: var(--accent-light); font-weight: 500; }

.ly-motif-stream {
  position: relative;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}
.ly-motif-stream span {
  position: absolute;
  left: -4%;
  width: 108%;
  border-radius: 999px;
}
.ly-motif-stream span:nth-child(1) {
  top: 4px;
  height: 9px;
  background: rgba(90, 150, 255, 0.72);
}
.ly-motif-stream span:nth-child(2) {
  top: 14px;
  height: 7px;
  background: rgba(136, 174, 217, 0.56);
}
.ly-motif-stream span:nth-child(3) {
  top: 22px;
  height: 8px;
  background: rgba(252, 76, 75, 0.5);
}

.ly-motif-nodes {
  position: relative;
  height: 34px;
}
.ly-motif-nodes .node,
.ly-motif-nodes .path {
  position: absolute;
  display: block;
}
.ly-motif-nodes .node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0a0d12;
  border: 1.5px solid var(--accent-light);
  z-index: 1;
}
.ly-motif-nodes .node-a { left: 7%; top: 17px; }
.ly-motif-nodes .node-b { left: 47%; top: 5px; }
.ly-motif-nodes .node-c { right: 7%; top: 19px; border-color: #d99a6c; }
.ly-motif-nodes .path {
  height: 1px;
  background: rgba(90, 150, 255, 0.36);
  transform-origin: left center;
}
.ly-motif-nodes .path-ab {
  left: 12%;
  top: 20px;
  width: 38%;
  transform: rotate(-16deg);
}
.ly-motif-nodes .path-bc {
  left: 52%;
  top: 13px;
  width: 38%;
  transform: rotate(15deg);
  background: rgba(217, 154, 108, 0.34);
}

@media (min-width: 640px) {
  .ly-gateway { grid-template-columns: repeat(2, 1fr); }
}

/* ── Market scan grid (under "What a stablecoin is") ── */
.ly-scan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1.1rem 0 1.25rem;
}
.ly-scan-grid > div {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--bg-card);
}
.ly-scan-grid > div > span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-muted);
  margin-bottom: 0.4rem;
}
.ly-scan-grid > div > strong {
  display: block;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.ly-scan-grid > div > p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
@media (min-width: 760px) {
  .ly-scan-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Movement model (supply vs settlement side-by-side) ── */
.ly-model {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.4rem 0;
}
.ly-model-card {
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: var(--bg-card);
}
.ly-model-card h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0.4rem 0 0.6rem;
}
.ly-model-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0.6rem 0 0;
}
.ly-model-state {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.ly-model-card--live .ly-model-state {
  color: var(--accent-light);
  background: rgba(90, 150, 255, 0.12);
  border: 1px solid rgba(90, 150, 255, 0.3);
}
.ly-model-card--research .ly-model-state {
  color: #d99a6c;
  background: rgba(217, 154, 108, 0.1);
  border: 1px solid rgba(217, 154, 108, 0.3);
}
.ly-model-card--live { border-left: 2px solid rgba(90, 150, 255, 0.4); }
.ly-model-card--research { border-left: 2px solid rgba(217, 154, 108, 0.35); }
.ly-model-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 0.5rem;
}
.ly-model-equation .is-pos { color: var(--ly-pos); }
.ly-model-equation .is-neg { color: var(--ly-neg); }
.ly-model-equation .ly-op { color: var(--text-faint); }
.ly-model-equation strong { color: var(--text); font-weight: 500; }

/* Supply movement visual — solid filled pool, decorative */
.ly-supply-visual {
  display: block;
  width: 100%;
  height: 170px;
  margin: 0.6rem 0 0.25rem;
}
.ly-pool-shape { fill: url(#lySplitPoolFill); }
.ly-supply-visual stop:first-child { stop-color: var(--accent-light); stop-opacity: 0.95; }
.ly-supply-visual stop:last-child { stop-color: var(--ly-pos); stop-opacity: 0.45; }
.ly-pool-arrow { opacity: 0.9; }
.ly-pool-arrow--in { fill: var(--ly-pos); }
.ly-pool-arrow--out { fill: var(--ly-neg); }

/* Settlement movement visual — node/path sketch with illustrative motion */
.ly-settle-visual {
  display: block;
  width: 100%;
  height: 170px;
  margin: 0.6rem 0 0.25rem;
}
.ly-settle-path {
  fill: none;
  stroke: rgba(217, 154, 108, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
}
.ly-settle-node {
  fill: #0a0d12;
  stroke: #d99a6c;
  stroke-width: 1.5;
}
.ly-settle-particle { fill: var(--accent-light); }
@media (prefers-reduced-motion: reduce) {
  .ly-settle-particle--a,
  .ly-settle-particle--b {
    animation: none;
    opacity: 0.8;
  }
}

.ly-split-footnote {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--label-muted);
}

@media (min-width: 640px) {
  .ly-model { grid-template-columns: repeat(2, 1fr); }
}

/* ── Sections ─────────────────────────────── */
.ly-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-hairline);
}
.ly-section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.ly-section-title {
  font-family: var(--serif-display);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 1rem;
}
.ly-section p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 0.9rem;
}
.ly-section p:last-child { margin-bottom: 0; }
/* Core-framing lede — the supply-vs-settlement distinction */
.ly-section p.ly-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
}
.ly-section p.ly-lede strong { color: var(--text); font-weight: 600; }
.ly-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 150, 255, 0.3);
}
.ly-section a:hover { border-bottom-color: var(--accent); }

/* ── Formula strip ────────────────────────── */
.ly-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0.5rem 0 1.25rem;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(90, 150, 255, 0.18);
  border-radius: 12px;
  background: rgba(90, 150, 255, 0.04);
  text-align: center;
}
.ly-formula-term {
  font-family: var(--serif-display);
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 400;
  color: var(--text);
}
.ly-formula-op {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-faint);
}
.ly-formula-term--result { color: var(--accent-light); }

/* ── Schematic proportion bar (1-in-N, illustrative only) ── */
.ly-proportion {
  margin: 0.25rem 0 1.25rem;
}
.ly-proportion-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.ly-proportion-fill {
  display: block;
  height: 100%;
  width: 9%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--ly-pos), var(--accent-light));
}
.ly-proportion-caption {
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-muted);
  text-align: center;
}

/* ── Movement equation (reuses tape pos/neg language) ── */
.ly-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0.5rem 0 1rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--bg-card);
  font-family: var(--mono);
  font-size: clamp(13px, 2.2vw, 16px);
}
.ly-equation .is-net { color: var(--text); font-weight: 500; }
.ly-equation .is-pos { color: var(--ly-pos); }
.ly-equation .is-neg { color: var(--ly-neg); }
.ly-equation .ly-op { color: var(--text-faint); }

/* ── Daily Tape dated strip (schematic, illustrative only) ── */
.ly-tape-strip {
  margin: 0.25rem 0 1.1rem;
}
.ly-tape-strip-row {
  display: flex;
  gap: 5px;
}
.ly-tape-tile {
  flex: 1;
  height: 28px;
  border-radius: 4px;
  background: rgba(90, 150, 255, 0.16);
  border: 1px solid rgba(90, 150, 255, 0.3);
}
.ly-tape-strip-caption {
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--label-muted);
  text-align: center;
}

/* ── Static supply motif (decorative, no data values) ── */
.ly-spark {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0.25rem 0 1.1rem;
  overflow: visible;
}
.ly-spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.ly-spark-area { fill: url(#lySparkFill); opacity: 0.5; }
.ly-spark stop:first-child { stop-color: var(--accent); stop-opacity: 0.4; }
.ly-spark stop:last-child { stop-color: var(--accent); stop-opacity: 0; }

/* ── Footer bridge ────────────────────────── */
.ly-bridge {
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.ly-bridge a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 150, 255, 0.3);
}
.ly-bridge a:hover { border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .ly-gateway-card {
    transition: none;
  }
  .ly-gateway-card:hover {
    transform: none;
  }
}

/* ── Motion polish — restrained, CSS-only. Every effect below is purely
   decorative, makes no data claim, and is switched off under
   prefers-reduced-motion. Above-the-fold elements reveal once on load;
   lower sections use slow loops so a calm motion moment is present
   whenever the reader scrolls to them (no JS / scroll observers). ── */

/* Shared: gentle highlight for the citable "Net" figure */

/* Hero · Supply card — bars rise in, staggered (one-shot) */
.ly-motif-bars span {
  transform-origin: bottom;
  animation: ly-bar-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ly-motif-bars span:nth-child(1) { animation-delay: 0.05s; }
.ly-motif-bars span:nth-child(2) { animation-delay: 0.15s; }
.ly-motif-bars span:nth-child(3) { animation-delay: 0.25s; }
.ly-motif-bars span:nth-child(4) { animation-delay: 0.35s; }
@keyframes ly-bar-rise {
  from { transform: scaleY(0.05); }
  to   { transform: scaleY(1); }
}

/* Hero · Daily Tape card — Net gently highlights */

/* "What a stablecoin is" — sparkline draws in, endpoint glows */
.ly-spark-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ly-spark-draw 1.8s ease-out 0.2s forwards;
}
@keyframes ly-spark-draw { to { stroke-dashoffset: 0; } }
.ly-spark-area {
  opacity: 0;
  animation: ly-spark-fill 1.1s ease-out 1.1s forwards;
}
@keyframes ly-spark-fill { to { opacity: 0.5; } }

/* Two ways · Supply side — mint/redeem rhythm + a slow breathe (solid, measured) */

/* Two ways · Settlement side — flowing dashed paths + glowing particles */

/* "What ODS measures" — sliver grows in, then pulses to read against the long track */
.ly-proportion-fill {
  transform-origin: left center;
  animation: ly-prop-grow 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
@keyframes ly-prop-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Daily Tape — a calm wave reads across the dated records; Net highlights */

/* Honour reduced-motion: drop every decorative animation to a still state */
@media (prefers-reduced-motion: reduce) {
  .ly-motif-bars span,
  .ly-motif-equation strong,
  .ly-spark-line,
  .ly-spark-area,
  .ly-spark-dot,
  .ly-pool-arrow--in,
  .ly-pool-arrow--out,
  .ly-pool-shape,
  .ly-settle-path,
  .ly-proportion-fill,
  .ly-tape-tile,
  .ly-equation .is-net {
    animation: none !important;
  }
  .ly-motif-bars span { transform: none; }
  .ly-spark-line { stroke-dashoffset: 0; }
  .ly-spark-area { opacity: 0.5; }
  .ly-spark-dot { opacity: 0.85; filter: none; }
  .ly-proportion-fill { transform: scaleX(1); filter: none; }
  .ly-settle-particle { filter: none; }
}

/* ST-CONVERGENCE2: editorial chapter treatment.
   The legacy ly-* rules above remain as provenance; this final scoped layer is authoritative. */

:root {
  --ly-pos: var(--theme-ink-primary);
  --ly-neg: var(--theme-status-negative-ink);
}

.ly-page {
  width: 100%;
  max-width: var(--layout-box-page);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
  box-sizing: border-box;
}

.ly-hero {
  padding: var(--rhythm-page-top-clear) 0 var(--rhythm-section-compact);
}

.ly-hero-eyebrow,
.ly-section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.1em;
  color: var(--theme-metadata-ink);
}

.ly-hero-title {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 6.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--theme-ink-primary);
  text-wrap: balance;
}

.ly-hero-sub,
.ly-section,
.ly-gateway,
.ly-bridge {
  max-width: var(--layout-measure-reading);
}

.ly-hero-sub { color: var(--theme-ink-secondary); }

.ly-gateway {
  display: block;
  margin: 0 0 var(--rhythm-section);
  border-bottom: 1px solid var(--theme-rule-standard);
}

.ly-gateway-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 11rem);
  gap: 0.3rem 1.5rem;
  min-height: 40px;
  padding: 1.1rem 0 1.2rem;
  border: 0;
  border-top: 1px solid var(--theme-rule-standard);
  border-radius: 0;
  background: transparent;
  overflow: visible;
  transition: none;
}

.ly-gateway-card:hover {
  border-color: var(--theme-rule-standard);
  background: transparent;
  transform: none;
}

.ly-gateway-card:focus-visible {
  outline-color: var(--theme-focus-ring);
  outline-offset: 4px;
}

.ly-card-kicker,
.ly-card-cta,
.ly-model-state,
.ly-proportion-caption,
.ly-tape-strip-caption {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.ly-card-kicker { color: var(--theme-metadata-ink); }
.ly-card-title { font-size: 1.1rem; color: var(--theme-ink-primary); }
.ly-card-copy { font-size: 0.88rem; color: var(--theme-ink-secondary); }

.ly-card-cta {
  width: fit-content;
  color: var(--theme-ink-link);
  border-bottom: 1px solid var(--theme-rule-interactive);
}

.ly-gateway-card:hover .ly-card-cta {
  color: var(--theme-ink-link-hover);
  border-bottom-color: currentColor;
}

.ly-card-motif {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  height: 34px;
  margin: 0;
  opacity: 0.72;
}

.ly-motif-bars span {
  border-radius: 0;
  background: var(--theme-ink-secondary);
}

.ly-motif-equation { color: var(--theme-ink-muted); }
.ly-motif-equation strong { color: var(--theme-ink-primary); }

.ly-motif-stream {
  border-block: 1px solid var(--theme-rule-subtle);
  border-radius: 0;
  background: transparent;
}

.ly-motif-stream span { border-radius: 0; background: var(--theme-rule-interactive); }
.ly-motif-stream span:nth-child(3) { background: var(--theme-status-negative-ink); opacity: 0.55; }

.ly-motif-nodes .node {
  background: var(--theme-canvas);
  border-color: var(--theme-rule-interactive);
}

.ly-motif-nodes .node-c { border-color: var(--theme-status-negative-ink); }
.ly-motif-nodes .path,
.ly-motif-nodes .path-bc { background: var(--theme-rule-interactive); }

.ly-section {
  padding: var(--rhythm-section-compact) 0;
  border-top-color: var(--theme-rule-standard);
}

.ly-section-title {
  font-size: clamp(1.45rem, 3vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--theme-ink-primary);
}

.ly-section p { color: var(--theme-ink-secondary); }
.ly-section p.ly-lede { color: var(--theme-ink-primary); }

.ly-section a,
.ly-bridge a {
  color: var(--theme-ink-link);
  border-bottom-color: var(--theme-rule-interactive);
}

.ly-section a:hover,
.ly-bridge a:hover { color: var(--theme-ink-link-hover); border-bottom-color: currentColor; }

.ly-section a:focus-visible,
.ly-bridge a:focus-visible {
  outline: 2px solid var(--theme-focus-ring);
  outline-offset: 2px;
}

.ly-scan-grid,
.ly-model {
  gap: 0 1.5rem;
  border-bottom: 1px solid var(--theme-rule-standard);
}

.ly-scan-grid > div,
.ly-model-card {
  padding: 1rem 0 1.1rem;
  border: 0;
  border-top: 1px solid var(--theme-rule-standard);
  border-radius: 0;
  background: transparent;
}

.ly-scan-grid > div > span,
.ly-model-state,
.ly-model-card--live .ly-model-state,
.ly-model-card--research .ly-model-state {
  display: block;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--theme-metadata-ink);
}

.ly-scan-grid > div > strong,
.ly-model-card h3 { color: var(--theme-ink-primary); }

.ly-scan-grid > div > p,
.ly-model-card p { color: var(--theme-ink-secondary); }

.ly-model-card--live,
.ly-model-card--research { border-left: 0; }

.ly-model-equation,
.ly-equation,
.ly-formula {
  justify-content: flex-start;
  padding: 0.9rem 0;
  border-block: 1px solid var(--theme-rule-standard);
  border-inline: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.ly-formula-term--result,
.ly-equation .is-net,
.ly-model-equation strong { color: var(--theme-ink-primary); }

.ly-formula-op,
.ly-model-equation .ly-op,
.ly-equation .ly-op { color: var(--theme-ink-muted); }

.ly-supply-visual,
.ly-settle-visual { height: 150px; }

.ly-pool-shape { fill: var(--theme-ink-secondary); opacity: 0.72; }
.ly-pool-arrow--in { fill: var(--theme-ink-primary); }
.ly-pool-arrow--out { fill: var(--theme-status-negative-ink); }
.ly-settle-path { stroke: var(--theme-rule-interactive); }
.ly-settle-node { fill: var(--theme-canvas); stroke: var(--theme-status-negative-ink); }
.ly-settle-particle { fill: var(--theme-ink-primary); filter: none; }

.ly-proportion-bar {
  height: 8px;
  border-color: var(--theme-rule-standard);
  border-radius: 0;
  background: var(--theme-surface-inset);
}

.ly-proportion-fill {
  border-radius: 0;
  background: var(--theme-ink-primary);
}

.ly-proportion-caption,
.ly-tape-strip-caption {
  color: var(--theme-metadata-ink);
  text-align: left;
}

.ly-tape-tile {
  height: 24px;
  border-color: var(--theme-rule-standard);
  border-radius: 0;
  background: var(--theme-surface-inset);
}

.ly-spark-line { stroke: var(--theme-ink-secondary); }
.ly-spark-area { fill: var(--theme-surface-inset); }
.ly-spark-dot { fill: var(--theme-ink-primary); }

.ly-bridge {
  padding: var(--rhythm-section-compact) 0 var(--rhythm-section);
  border-top-color: var(--theme-rule-standard);
  color: var(--theme-ink-secondary);
}

/* Retire all ambient loops, then opt only useful one-shot data reveals back in. */
.ly-motif-bars span,
.ly-motif-equation strong,
.ly-spark-line,
.ly-spark-area,
.ly-spark-dot,
.ly-pool-arrow--in,
.ly-pool-arrow--out,
.ly-pool-shape,
.ly-settle-path,
.ly-settle-particle--a,
.ly-settle-particle--b,
.ly-proportion-fill,
.ly-tape-tile,
.ly-equation .is-net {
  animation: none;
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ly-motif-bars span {
    transform-origin: bottom;
    animation: ly-bar-rise 400ms cubic-bezier(0, 0, 0.2, 1) both;
  }
  .ly-motif-bars span:nth-child(2) { animation-delay: 80ms; }
  .ly-motif-bars span:nth-child(3) { animation-delay: 160ms; }
  .ly-motif-bars span:nth-child(4) { animation-delay: 240ms; }

  .ly-spark-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: ly-spark-draw 1.3s cubic-bezier(0, 0, 0.2, 1) 150ms forwards;
  }

  .ly-spark-area {
    opacity: 0;
    animation: ly-spark-fill 600ms cubic-bezier(0, 0, 0.2, 1) 750ms forwards;
  }

  .ly-proportion-fill {
    transform-origin: left center;
    animation: ly-prop-grow 1.3s cubic-bezier(0, 0, 0.2, 1) 150ms both;
  }
}

@media (max-width: 639px) {
  .ly-gateway-card { grid-template-columns: 1fr; }
  .ly-card-motif {
    grid-column: 1;
    grid-row: auto;
    width: 9rem;
    margin-top: 0.35rem;
  }
}
