/* ============================================================
   SELF-BALANCING DESK ROBOT — work-in-progress placeholder
   Scoped styles for the WIP notice card on this project page.
   ============================================================ */

.wip-section {
  margin: 40px 0 80px;
}

.wip-card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 56px clamp(24px, 5vw, 64px);
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.01);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s ease,
    background 0.55s ease;
}

html[data-theme="dark"] .wip-card {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

.wip-card:hover {
  border-color: var(--signal);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.06),
    0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .wip-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.32),
    0 0 1px rgba(255, 255, 255, 0.08);
}

/* Animated diagonal-stripe ribbon at the top */
.wip-stripe {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--signal) 0 12px,
    transparent 12px 24px
  );
  background-size: 34px 100%;
  opacity: 0.85;
  animation: wipStripe 12s linear infinite;
  pointer-events: none;
}

@keyframes wipStripe {
  from { background-position: 0 0; }
  to   { background-position: 340px 0; }
}

.wip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.wip-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
}

.wip-dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 var(--signal-soft);
  animation: wipDotPulse 1.8s ease-in-out infinite;
}

@keyframes wipDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--signal-soft); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px transparent; transform: scale(0.9); }
}

.wip-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 500;
  color: var(--ink);
  max-width: 22ch;
}

.wip-lede {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 40px;
}

/* Progress block ---------------------------------------------- */
.wip-progress {
  border-top: 1px dashed var(--rule);
  padding-top: 28px;
  margin-bottom: 36px;
}

.wip-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.wip-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.wip-pct b {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  margin-right: 4px;
  font-weight: 600;
}

.wip-progress .progress-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px 32px;
}

/* Roadmap ----------------------------------------------------- */
.wip-roadmap {
  border-top: 1px dashed var(--rule);
  padding-top: 28px;
  margin-bottom: 32px;
}

.wip-roadmap .label {
  display: block;
  margin-bottom: 16px;
}

.wip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px 24px;
}

.wip-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px 10px 12px;
  border-left: 2px solid transparent;
  margin-left: -14px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.wip-list li:hover {
  border-left-color: var(--signal);
  background: var(--signal-soft);
  color: var(--ink);
}

.wip-list .rm-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--signal);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 1px;
}

/* CTA --------------------------------------------------------- */
.wip-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--rule);
  padding-top: 28px;
}

@media (max-width: 640px) {
  .wip-card { padding: 36px 20px; }
  .wip-progress .progress-row { grid-template-columns: 1fr; }
  .wip-list { grid-template-columns: 1fr; }
}
