/* Homepage block 3 (partials/home-three-minutes.php), Figma 37:142. */
.tm { background: #f7f5f0; padding: 40px 16px; }
.tm-in { max-width: 1272px; margin: 0 auto; }
.tm-copy { display: grid; gap: 12px; max-width: 640px; }
.tm-h { margin: 0; font-family: var(--sans); font-weight: 400; font-size: clamp(28px, min(3.2vw, 5vh), 48px); line-height: 1.17; letter-spacing: -0.96px; color: #0a111a; }
.tm-lead { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 27px; color: #5c6370; }

.tm-tl { position: relative; margin-top: clamp(20px, 4vh, 40px); padding-top: 22px; }
.tm-line { position: absolute; left: 0; right: 0; top: 0; line-height: 0; }
.tm-line img { display: block; max-width: 100%; height: auto; }
.tm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-col { display: grid; grid-template-rows: auto 1fr; }
.tm-label { min-height: 64px; display: grid; gap: 6px; align-content: start; max-width: 384px; }
.tm-label p { margin: 0; font-family: var(--sans); font-size: 15px; }
.tm-time { font-weight: 500; line-height: 20px; color: #0a111a; }
.tm-text { line-height: 22px; color: #5c6370; }

.tm-card { margin-top: clamp(12px, 2.2vh, 24px); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 28px; background: #fff; }
.tm-photo { display: block; width: 100%; height: clamp(110px, calc(100vh - 660px), 230px); object-fit: cover; border-radius: 20px; }
.tm-panel { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: #faf8f4; font-family: var(--sans); }
.tm-panel p, .tm-panel ul { margin: 0; }
.tm-user { display: flex; justify-content: flex-end; }
.tm-bubble { background: #fff; border-radius: 16px; padding: 9px 13px; font-size: 13px; line-height: 19px; color: #0a111a; max-width: 338px; }
.tm-asst { display: flex; gap: 10px; align-items: flex-start; }
.tm-asst-ico { width: 26px; height: 26px; flex: none; border-radius: 999px; border: 1px solid #e5e0d9; display: inline-flex; align-items: center; justify-content: center; }
.tm-asst-ico img { width: 16px; height: 16px; display: block; }
.tm-res { list-style: none; padding: 0; flex: 1; display: grid; gap: 6px; min-width: 0; }
.tm-res li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tm-res b { font-weight: 500; font-size: 13px; line-height: 19px; color: #0a111a; }
.tm-res span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: #5c6370; }
.tm-res span img { width: 11px; height: 11px; display: block; }

.tm-head { display: flex; align-items: center; gap: 10px; }
.tm-head p { display: grid; gap: 1px; }
.tm-head b { font-weight: 500; font-size: 14px; line-height: 20px; color: #0a111a; }
.tm-head span { font-size: 12px; line-height: 16px; color: #5c6370; }
.tm-head small { font-weight: 500; font-size: 10px; line-height: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: #8c949e; }
.tm-badge { width: 34px; height: 34px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.tm-badge img { width: 16px; height: 16px; display: block; }
.tm-badge--ink { background: #0a111a; }
.tm-badge--green { background: #73b233; }

.tm-rows { list-style: none; padding: 0; display: grid; }
.tm-rows li, .tm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; }
.tm-rows b { font-weight: 500; font-size: 14px; line-height: 20px; color: #0a111a; }
.tm-spacer { flex: 1; }
.tm-foot { border-top: 1px solid #e5e0d9; padding-top: 12px; margin-top: 0; }
.tm-foot span { font-weight: 500; font-size: 14px; line-height: 20px; color: #8c949e; }
.tm-tag { font-style: normal; font-weight: 500; font-size: 12px; line-height: 16px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #5c6370; white-space: nowrap; }
.tm-tag--red { background: #fceded; color: #e5474d; }
.tm-tag--green { background: #e5f7ed; color: #1f9e6b; }

@media (max-width: 1023px) {
  .tm { padding: 64px 16px 72px; }
  .tm-line { display: none; }
  .tm-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; max-width: 520px; }
  .tm-label { margin-top: 0; height: auto; }
  .tm-card { margin-top: 16px; min-height: 0; }
  .tm-h br { display: none; }
}
@media (max-width: 420px) { .tm-res b, .tm-rows b { font-size: 12.5px; } .tm-tag { font-size: 11px; padding: 3px 8px; } }

/* Scroll-driven reveal (desktop, js/home-three.js adds .is-scrub): the block
   pins and the story builds as you scroll: moment 1 (label, card, then its
   rows), the cyan bar runs to the next dot, moment 2, bar, moment 3.
   Scrolling back takes it apart. Phones: each moment rises in as it scrolls
   into view (.is-js / .is-in). */
.tm-col { position: relative; }
.tm-col::after {
  content: ''; position: absolute; left: 4px; right: -20px; top: -19px; height: 2px;
  background: var(--cyan, #06b6d4); transform-origin: left; transform: scaleX(var(--bar, 1));
}
.tm-col:last-child::after { right: 0; }
.tm.is-scrub .tm-sticky { position: sticky; }
.tm.is-scrub .tm-label, .tm.is-scrub .tm-card, .tm.is-scrub .tm-panel > * { will-change: opacity, transform; }

.tm.is-js .tm-col::after { transform: scaleX(0); transition: transform 0.9s ease; }
.tm.is-js .tm-col > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tm.is-js .tm-col > .tm-card { transition-delay: 0.2s; }
.tm.is-js .tm-col.is-in > * { opacity: 1; transform: none; }
@media (max-width: 1023px) { .tm-col::after { display: none; } }

/* ===== Figma 2:861 match: white section, warm cards with white panels ===== */
.tm, .tm-end { background: #fff !important; }
.tm-h { font-weight: 300 !important; }
.tm-time { font-size: clamp(15px, 1.2vw, 18px) !important; }
.tm-text { font-weight: 300; font-size: clamp(15px, 1.3vw, 20px) !important; line-height: 1.4 !important; color: #64748b !important; }
.tm-card { background: #faf8f4; padding: 18px; border-radius: 24px; gap: 12px; }
.tm-photo { border-radius: 24px; }
.tm-panel { background: #fff; padding: 16px; border-radius: 24px; }
.tm-bubble { background: #faf8f4; }
.tm-tag { background: #faf8f4; color: #5c6370; }
.tm-tag--red { background: #fff1f5; color: #ff5977; }
.tm-tag--green, .tm-tag--cyan { background: #b2e8f0; color: #059bb4; }
.tm-badge--green { background: #06b6d4; }
/* closer CTA (Figma 2:1571) */
.tm-end-k { font-size: 18px !important; line-height: 27px; color: #5c6370 !important; }
.tm-end-h { font-weight: 300 !important; font-size: clamp(30px, 2.9vw, 44px) !important; line-height: 1.18 !important; letter-spacing: -0.88px !important; }
.tm-end-pill { box-shadow: none !important; border-color: #e5e0d9 !important; }
.tm-copy { max-width: none; justify-items: center; text-align: center; }

/* All three moments start their card on the same line, whatever the label length. */
@media (min-width: 1024px) {
  .tm-grid { grid-template-rows: auto 1fr; row-gap: 0; }
  .tm-col { grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
