/* Tool logos (src/lib/tools.js). One look per page. Motion only under .motion-ok. */
.tl-lead { margin-top: var(--s-4); color: var(--muted); max-width: 52ch; }
.section--dark .tl-lead { color: var(--on-dark-2); }
.tl-split { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .tl-split { grid-template-columns: 1fr 1.1fr; } .tl-split--flip > :first-child { order: 2; } }
.tl-center { text-align: center; display: grid; justify-items: center; }
.tl-center .tl-lead { margin-inline: auto; }
.tl img { display: block; object-fit: contain; }
.tl-points { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.tl-points li { padding-left: 22px; position: relative; color: var(--muted); }
.tl-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Orbit */
.tl-orbit { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.tl-orbit::before, .tl-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--line-strong); }
.tl-orbit::before { inset: 4%; } .tl-orbit::after { inset: 24%; }
.tl-orbit__ring { position: absolute; margin: 0; padding: 0; list-style: none; border-radius: 50%; }
.tl-orbit__ring--out { inset: 4%; --dur: 60s; } .tl-orbit__ring--in { inset: 24%; --dur: 42s; animation-direction: reverse; }
.tl-orbit__ring li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--k) * 360deg / var(--tl-n))) translateY(-50cqmin); }
.tl-orbit__ring { container-type: size; }
.tl-orbit__chip { position: absolute; translate: -50% -50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px -12px rgb(28 25 23 / .35), 0 0 0 1px var(--line); transform: rotate(calc(var(--k) * -360deg / var(--tl-n))); }
.tl-orbit__core { position: absolute; inset: 38%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--ink); color: var(--on-dark); box-shadow: 0 0 0 12px rgb(196 90 26 / .12), 0 0 60px rgb(196 90 26 / .35); }
.tl-orbit__core--logo { inset: 39%; border-radius: 24%; background: none; overflow: hidden; box-shadow: 0 0 0 10px rgb(196 90 26 / .12), 0 18px 40px -10px rgb(28 25 23 / .55), 0 0 60px rgb(196 90 26 / .35); }
.tl-orbit__core--logo img { display: block; width: 100%; height: 100%; }
.tl-orbit__core strong { font-size: clamp(1rem, 2.4vw, 1.25rem); } .tl-orbit__core span { font-size: .75rem; color: var(--on-dark-3); }
.motion-ok .tl-orbit__ring { animation: tl-spin var(--dur) linear infinite; }
.motion-ok .tl-orbit__ring .tl-orbit__chip { animation: tl-spin var(--dur) linear infinite reverse; }
.motion-ok .tl-orbit__ring--in { animation-direction: reverse; }
.motion-ok .tl-orbit__ring--in .tl-orbit__chip { animation-direction: normal; }
.tl-orbit:hover .tl-orbit__ring, .tl-orbit:hover .tl-orbit__chip { animation-play-state: paused; }
@keyframes tl-spin { to { rotate: 360deg; } }
@media (max-width: 600px) { .tl-orbit__chip { width: 44px; height: 44px; border-radius: 13px; } .tl-orbit__chip img { width: 24px; height: 24px; } }

/* Cards */
.tl-cards { margin: var(--s-7) 0 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tl-card { padding: var(--s-5); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease-out), box-shadow .3s; }
.tl-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -24px rgb(196 90 26 / .5); }
.tl-card__logos { display: flex; gap: 8px; }
.tl-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgb(28 25 23 / .3); }
.tl-card__h { margin: var(--s-4) 0 0; font-size: 1.0625rem; font-weight: 650; }
.tl-card p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* Stepper */
.tl-step { --dur: calc(var(--tl-n) * 2.2s); border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--sh-card); padding: var(--s-6); }
.tl-step__stage { position: relative; height: 150px; overflow: hidden; }
.tl-step__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; opacity: 0; }
.tl-step__item:first-child { opacity: 1; }
.tl-step__logo { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 32px -16px rgb(28 25 23 / .4); }
.tl-step__name { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.03em; }
.tl-step__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: var(--s-5) 0 0; padding: var(--s-5) 0 0; list-style: none; border-top: 1px solid var(--line); }
.tl-step__dots li { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); }
.motion-ok .tl-step__item { opacity: 0; animation: tl-step var(--dur) var(--ease-out) infinite; animation-delay: calc(var(--k) * var(--dur) / var(--tl-n)); }
.motion-ok .tl-step__dots li { animation: tl-dot var(--dur) linear infinite; animation-delay: calc(var(--k) * var(--dur) / var(--tl-n)); }
@keyframes tl-step { 0% { opacity: 0; transform: translateY(40px); } 3%, 9% { opacity: 1; transform: none; } 12%, 100% { opacity: 0; transform: translateY(-40px); } }
@keyframes tl-dot { 0%, 11% { background: var(--accent-tint, #fbe7da); box-shadow: 0 0 0 2px var(--accent); } 12%, 100% { background: var(--bg); box-shadow: none; } }

/* Hive */
.tl-hive { display: grid; gap: 10px; justify-items: center; -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 80%); mask-image: radial-gradient(circle, #000 55%, transparent 80%); padding: 24px; }
.tl-hive > div { display: flex; gap: 10px; }
.tl-hive__tile { display: grid; place-items: center; width: clamp(64px, 9vw, 86px); aspect-ratio: 1; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.tl-hive__tile--core { background: var(--ink); color: #fff; font-weight: 700; font-size: .875rem; letter-spacing: -.02em; box-shadow: 0 18px 40px -16px rgb(28 25 23 / .6); }
.tl-hive__tile--core b { color: var(--accent-soft); font-weight: 700; }
.motion-ok .tl-hive__tile--core { animation: tl-pulse 3s ease-in-out infinite; }
@keyframes tl-pulse { 50% { box-shadow: 0 0 0 10px rgb(196 90 26 / .14), 0 18px 40px -16px rgb(28 25 23 / .6); } }

/* Scatter */
.tl-scatter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.tl-scatter__card { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: .75rem; color: var(--muted-2); text-align: center; }
.tl-scatter__card:nth-child(4n+2), .tl-scatter__card:nth-child(4n+4) { translate: 0 22px; }
.tl-scatter__card.is-flag { box-shadow: 0 0 0 1.5px var(--accent); position: relative; }
.tl-scatter__card.is-flag::after { content: "gap"; position: absolute; top: -8px; right: 8px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 600; }

/* Stack */
.tl-stack { display: flex; justify-content: center; flex-wrap: wrap; margin: var(--s-7) 0 0; padding: 0 0 0 14px; list-style: none; }
.tl-stack li { margin-left: -14px; }
.tl-stack__dot { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--bg), 0 10px 24px -12px rgb(28 25 23 / .4); transition: transform .3s var(--ease-out); }
.section--white .tl-stack__dot { box-shadow: 0 0 0 4px var(--white), 0 10px 24px -12px rgb(28 25 23 / .4); }
.tl-stack li:hover .tl-stack__dot { transform: translateY(-8px) scale(1.06); }
@media (max-width: 600px) { .tl-stack__dot { width: 52px; height: 52px; } .tl-stack__dot img { width: 24px; height: 24px; } }

/* Marquee */
.tl--marquee { overflow: hidden; }
.tl-marq { margin-top: var(--s-6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tl-marq + .tl-marq { margin-top: 12px; }
.tl-marq ul { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; }
.tl-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.section--dark .tl-pill { background: var(--dark-2); color: var(--on-dark); box-shadow: 0 0 0 1px var(--dark-3); }
.section--dark .tl-pill img { background: #fff; border-radius: 6px; padding: 2px; }
.motion-ok .tl-marq ul { animation: tl-marq 40s linear infinite; }
.motion-ok .tl-marq--rev ul { animation-direction: reverse; }
.tl-marq:hover ul { animation-play-state: paused; }
@keyframes tl-marq { to { transform: translateX(-50%); } }
html:not(.motion-ok) .tl-marq ul { flex-wrap: wrap; width: auto; justify-content: center; }
html:not(.motion-ok) .tl-dup { display: none; }

/* Grid */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: var(--s-7) 0 0; padding: 0; list-style: none; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tl-grid li { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--white); font-weight: 600; font-size: .9375rem; transition: background .2s; }
.tl-grid li:hover { background: var(--bg); }
