/* Data flow — Constellation v3 piloté par le scroll */

.dfs {
  position: relative;
  margin: -24px 0 64px;
  padding: 0;
  /* Break out: span the full width of the .landing scroller (which fills the panel).
     We use 100vw + negative margin trick. .landing has overflow-x:hidden to
     swallow any 1px rounding overflow. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

/* ── Stage — full bleed, seamless background ── */
.dfs-stage {
  position: relative;
  height: 580px;
  background: var(--bg1);
  overflow: visible;
  margin-bottom: 0;
  width: 100%;
}
.dfs-stage-grid {
  display: none;
}

/* Comments — wrap (positioning) → float (subtle CSS animation) → comment (rotation+scale) */
.dfs-comment-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  transition-property: left, top, opacity;
  transition-timing-function: cubic-bezier(.65,0,.35,1);
  pointer-events: none;
  will-change: left, top, opacity;
}
.dfs-comment-float {
  /* Smooth, slow CSS-driven floating motion. Cloud phase only. */
  transform: translate3d(0, 0, 0);
}
.dfs-comment-float.floating.float-0 { animation: dfsFloat0 5.5s ease-in-out infinite; }
.dfs-comment-float.floating.float-1 { animation: dfsFloat1 6.5s ease-in-out infinite; }
.dfs-comment-float.floating.float-2 { animation: dfsFloat2 7s ease-in-out infinite; }
.dfs-comment-float.floating.float-3 { animation: dfsFloat3 6s ease-in-out infinite; }

@keyframes dfsFloat0 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(10px, -8px, 0); }
}
@keyframes dfsFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-8px, 10px, 0); }
}
@keyframes dfsFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(-10px, -6px, 0); }
  66%      { transform: translate3d(8px, 8px, 0); }
}
@keyframes dfsFloat3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(6px, 11px, 0); }
}

.dfs-comment {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px 8px;
  width: 200px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 2px 6px rgba(40, 30, 20, 0.06), 0 8px 22px rgba(40, 30, 20, 0.05);
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.dfs-comment-vert {
  font-size: 8px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; line-height: 1;
}
.dfs-comment-txt {
  font-family: var(--font-body); font-size: 11px; line-height: 1.35; color: var(--ink);
}
.dfs-comment-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.dfs-comment-tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  padding: 2px 5px; border-radius: 3px; line-height: 1;
}
.dfs-comment-tag b { font-weight: 800; margin-left: 2px; }
.dfs-comment-tag.pos { background: rgba(22,163,74,0.15); color: #15803d; border: 1px solid rgba(22,163,74,0.3); }
.dfs-comment-tag.neg { background: rgba(214,76,49,0.15); color: var(--accent); border: 1px solid rgba(214,76,49,0.3); }

/* Cluster labels — appear in 'clusters' phase */
.dfs-cluster {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  pointer-events: none;
  transition: opacity .6s ease-out, transform .6s ease-out;
  z-index: 100;
}
.dfs-cluster-name {
  font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 3px 9px; border-radius: 4px;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(214,76,49,0.4);
  letter-spacing: -0.005em;
}
.dfs-cluster-meta {
  font-size: 9px; color: var(--fg2); font-weight: 600;
  letter-spacing: 0.05em;
}

/* Column brackets — disabled, kept for fallback only */
.dfs-col-bracket { display: none; }

/* ── Uses block — re-contain to landing-inner width ── */
.dfs-uses {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  position: relative;
  box-sizing: border-box;
}

/* ── Use cards ── */
.landing-use-card.simple {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 20px;
  text-align: left;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.landing-use-card.simple:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.landing-use-card.simple.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(214,76,49,0.08);
}
.landing-use-card.simple .lu-top {
  display: flex; align-items: baseline; gap: 10px;
}
.landing-use-card.simple .lu-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg3); font-weight: 700;
}
.landing-use-card.simple .lu-kicker {
  font-size: 10px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.landing-use-card.simple .lu-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--fg1); letter-spacing: -0.02em; line-height: 1.1;
}
.landing-use-card.simple .lu-lead {
  font-size: 13px; color: var(--fg2); line-height: 1.5; margin-top: 2px;
}
.landing-use-card.simple .lu-cta {
  margin-top: auto; padding-top: 12px;
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
}
.landing-use-card.simple .lu-cta-arrow { transition: transform .2s; }
.landing-use-card.simple:hover .lu-cta-arrow { transform: translateX(4px); }

/* ── Arrows overlay ── */
.dfs-arrows {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}
.dfs-arrow-path {
  stroke-dasharray: 6 5;
  opacity: 0;
  animation-name: dfsArrowAppear, dfsArrowFlow;
  animation-duration: .55s, 1.4s;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-timing-function: ease-out, linear;
}
.dfs-arrow-source {
  opacity: 0;
  animation: dfsArrowAppear .35s ease-out forwards;
}
@keyframes dfsArrowAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dfsArrowFlow {
  to { stroke-dashoffset: -22; }
}
