/* 03 The problem: 2x2 grid */
.heard-wrap {
  max-width: 1068px;
}

.heard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 44px;
  width: 100%;
}

.heard-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.heard-cell.is-in {
  opacity: 1;
  transform: translateY(0);
}

.heard-cell-meta {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.heard-cell-num {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.heard-cell-text {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.22;
  color: var(--ink);
}

.heard-cell-stage {
  position: relative;
  width: 100%;
  height: 222px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-medallion) 48%, transparent);
  overflow: hidden;
}

.heard-cell-scaler {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  height: 300px;
  transform: translate(-50%, -50%) scale(0.74);
  transform-origin: center center;
}

.heard-anim-box {
  position: relative;
  width: 620px;
  height: 300px;
}

.heard-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Animation 1 legend */
.heard-legend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}

.heard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.heard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.heard-dot.is-flagged {
  background: var(--gold);
}

.heard-dot.is-missed {
  border: 2px solid var(--product-1);
}

/* Animation 2: stacked highlights + "one idea" node */
.heard-phrase-col {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 344px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.heard-phrase-box {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-medallion);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
}

.heard-idea-lbl {
  position: absolute;
  left: 532px;
  top: 184px;
  transform: translateX(-50%);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Animation 3: Surescripts mark + 4 product wells */
.heard-port-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  display: block;
}

.heard-port-well {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  background: var(--p-tint);
  border: 1px solid var(--p-rule);
  color: var(--p-text);
  display: grid;
  place-items: center;
}

.heard-port-well svg {
  width: 15px;
  height: 15px;
}
