/* =========================================================
   The tools (index.html #tools)
   DIY: blocks laid end to end on a timeline. BINA: one stack.
   ========================================================= */
.tl-card, .tk-card { border-radius: var(--radius); border: 1px solid var(--joint); padding: clamp(20px, 2.6vw, 34px); margin-bottom: var(--s3); }
.tl-card { background: var(--charcoal); }
.tk-card { background: rgba(194, 156, 106, .07); border-color: rgba(194, 156, 106, .55); }
.tl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: var(--s3); }
.tl-head p { color: var(--stone); font-size: 16px; }

/* timeline of learning blocks */
.tl-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tl-block { flex: var(--w) 1 0; min-width: 0; min-height: 86px; border-radius: 12px; background: #1b1917; border: 1px solid #4a443d;
  padding: 12px 12px 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 14px rgba(0, 0, 0, .25); }
.tl-name { font: 500 14px/1.2 var(--display); color: var(--limestone); overflow-wrap: anywhere; }
.tl-wk { font: 500 11px/1 var(--mono); color: #F0A698; letter-spacing: .04em; }
.tl-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 500 12px/1.3 var(--mono); color: var(--stone); letter-spacing: .04em; border-top: 1px dashed #5a5249; padding-top: 10px; }
.tl-scale span:last-child { color: #F0A698; text-align: right; }

/* blocks are laid one after another when the section fades in */
.js .reveal-sec .tl-block { opacity: 0; transform: translateY(-26px) rotate(-3deg); }
.js .reveal-sec.in .tl-block { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .7s cubic-bezier(.2, 1.4, .4, 1); transition-delay: calc(.35s + var(--i) * .22s); }
.js .reveal-sec:not(.pre):not(.in) .tl-block { opacity: 1; transform: none; }

/* BINA: the same tools, one stack */
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.tk-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(194, 156, 106, .18); }
.tk-chip { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #1b1917; border: 1px solid rgba(194, 156, 106, .6);
  font: 600 13px/1 var(--mono); color: var(--bronze-hi); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.tk-list b { display: block; font: 500 16px/1.25 var(--display); color: var(--limestone); }
.tk-list span { font-size: 14px; color: var(--stone); }
.js .reveal-sec .tk-list li { opacity: 0; transform: translateX(-10px); }
.js .reveal-sec.in .tk-list li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(1.6s + var(--i) * .08s); }
.js .reveal-sec:not(.pre):not(.in) .tk-list li { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .tl-track { flex-direction: column; gap: 6px; }
  .tl-block { flex: none; min-height: 0; width: calc(var(--w) / 6 * 100%); max-width: 100%; min-width: 150px; flex-direction: row; align-items: center; padding: 12px 14px; }
  .tk-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-sec .tl-block, .js .reveal-sec .tk-list li { opacity: 1; transform: none; }
}
