/* Kriya One portal: use cases. The "Who it's for" persona cards (landing page) and the /use-cases/ stories with their
   animated scenes (chat → workers → result → approval). Static and complete without JS; uc.js adds the motion under
   .fx-m (set by fx.js / uc.js only when motion is allowed). */

/* ================================================================ persona cards */
.who-grid { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.who-grid > li { min-width: 0; display: flex; }
.who-grid > li:first-child { grid-column: span 2; }
@media (max-width: 1020px) { .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .who-grid { grid-template-columns: minmax(0, 1fr); } .who-grid > li:first-child { grid-column: auto; } }
.who-card { --c: var(--k-indigo-hi); flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px;
  color: var(--ts-text); text-decoration: none; overflow: hidden; }
.who-card:hover { color: var(--ts-text); border-color: color-mix(in srgb, var(--c) 60%, var(--ts-border)); transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.who-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--k-ease-out); }
.who-card:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.who-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.who-tag { font: 500 .6875rem/1 var(--k-mono); letter-spacing: .04em; color: var(--ts-text-subtle); transition: color .25s; }
.who-card:is(:hover, :focus-visible) .who-tag { color: var(--k-kicker); }
.who-card h3 { font: 700 1.0625rem/1.3 var(--ts-font-display); }
.who-card p { color: var(--ts-text-muted); font-size: .9375rem; line-height: 1.5; }
.who-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font: 500 .75rem/1 var(--k-mono); color: var(--ts-link); }
.who-go::after { content: "→"; transition: transform .3s var(--k-ease-spring); }
.who-card:is(:hover, :focus-visible) .who-go::after { transform: translateX(4px); }
.who-lead { background: linear-gradient(135deg, color-mix(in srgb, var(--k-amber) 9%, transparent), transparent 60%),
  color-mix(in srgb, var(--ts-surface) 88%, transparent); }
.who-lead h3 { font-size: 1.375rem; }
.who-lead .who-quote { font: 500 .8125rem/1.5 var(--k-mono); color: var(--k-kicker); }
.who-more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.who-more .fine { margin: 0; }

/* the animated persona icons: an icon tile whose parts move on hover / focus, and once on reveal */
.pi { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px;
  border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .45s var(--k-ease-spring), box-shadow .3s; }
:root[data-theme="light"] .pi { color: color-mix(in srgb, var(--c) 62%, #0B1433); }
.pi svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pi svg * { transform-box: fill-box; transform-origin: center; }
.pi .f { fill: currentColor; stroke: none; }
:is(.who-card, .uc-chip):is(:hover, :focus-visible) .pi { transform: translateY(-2px) rotate(-4deg) scale(1.06);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 14%, transparent), 0 0 22px -4px color-mix(in srgb, var(--c) 60%, transparent); }
.fx-m :is(.who-card, .uc-chip, .uc-head):is(:hover, :focus-visible, .in) .pi .a1 { animation: var(--a1) 1.1s var(--k-ease-out) both; }
.fx-m :is(.who-card, .uc-chip, .uc-head):is(:hover, :focus-visible, .in) .pi .a2 { animation: var(--a2, none) 1.1s var(--k-ease-out) .15s both; }
.fx-m :is(.who-card, .uc-chip, .uc-head):is(:hover, :focus-visible) .pi .lp { animation: var(--lp) 1.4s ease-in-out infinite; }
.pi-founder { --a1: pi-lift; --lp: pi-flick; }
.pi-smb { --a1: pi-grow; --lp: pi-grow; }
.pi-eng { --a1: pi-blink; --a2: pi-slideR; --lp: pi-blink; }
.pi-student { --a1: pi-swing; --lp: pi-swing; }
.pi-kids { --a1: pi-drop; --a2: pi-spark; --lp: pi-spark; }
.pi-creator { --a1: pi-ring; --lp: pi-ring; }
.pi-teacher { --a1: pi-draw; --lp: pi-pulse; }
.pi-firm { --a1: pi-draw; --a2: pi-stamp; --lp: pi-pulse; }
.pi-lab { --a1: pi-pulse; --lp: pi-blink; }
.pi-home { --a1: pi-glow; --lp: pi-glow; }
.pi-voice { --a1: pi-wave; --a2: pi-wave; --lp: pi-wave; }
.pi .a2 { --dl: .15s; }
@keyframes pi-lift { 0% { transform: translateY(5px); opacity: .2; } 60% { transform: translateY(-2px); opacity: 1; } 100% { transform: none; } }
@keyframes pi-flick { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.55); opacity: .6; } }
@keyframes pi-grow { 0% { transform: scaleY(.2); } 60% { transform: scaleY(1.12); } 100% { transform: none; } }
@keyframes pi-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .1; } }
@keyframes pi-slideR { 0% { transform: translateX(-4px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pi-swing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(16deg); } 65% { transform: rotate(-10deg); } }
@keyframes pi-drop { 0% { transform: translateY(-8px); opacity: 0; } 70% { transform: translateY(1px); opacity: 1; } 100% { transform: none; } }
@keyframes pi-spark { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }
@keyframes pi-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes pi-draw { 0% { stroke-dasharray: 30; stroke-dashoffset: 30; } 100% { stroke-dasharray: 30; stroke-dashoffset: 0; } }
@keyframes pi-stamp { 0% { transform: scale(1.8); opacity: 0; } 70% { transform: scale(.9); opacity: 1; } 100% { transform: none; } }
@keyframes pi-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes pi-glow { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pi-wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }

/* ================================================================ /use-cases/: hero, jump chips */
.uc-hero .lede { max-width: 44em; }
.uc-chips { list-style: none; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.uc-chip { --c: var(--k-indigo-hi); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px;
  border-radius: 999px; border: 1px solid var(--ts-border); background: color-mix(in srgb, var(--ts-surface) 80%, transparent);
  color: var(--ts-text); text-decoration: none; font: 500 .8125rem/1.2 var(--k-mono);
  transition: border-color .2s, box-shadow .3s, transform .3s var(--k-ease-out); }
.uc-chip:hover { color: var(--ts-text); border-color: color-mix(in srgb, var(--c) 60%, var(--ts-border)); transform: translateY(-2px); }
.uc-chip .pi { width: 34px; height: 34px; border-radius: 999px; }
.uc-chip .pi svg { width: 19px; height: 19px; }
.uc-legend { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; color: var(--ts-text-muted); align-items: center; }

/* ================================================================ a story */
.uc { --c: var(--k-indigo-hi); }
.uc-head { display: flex; gap: 16px; align-items: flex-start; }
.uc-head .pi { margin-top: 4px; width: 52px; height: 52px; }
.uc-head .section-head { margin-bottom: 0; }
.uc-head .section-head[data-kicker]::before { color: var(--c); }
:root[data-theme="light"] .uc-head .section-head[data-kicker]::before { color: color-mix(in srgb, var(--c) 55%, #0B1433); }
.uc-quote { margin-top: 12px; font: 500 .9375rem/1.5 var(--k-mono); color: var(--k-kicker); }
.uc-body { margin-top: 36px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .uc-body { grid-template-columns: minmax(0, 1fr); gap: 32px; } .uc-head .pi { display: none; } }
.uc .group-h { margin: 0 0 14px; }
.uc .group-h + * { margin-bottom: 32px; }
.uc-day { list-style: none; padding: 0; position: relative; display: grid; gap: 12px; }
.uc-day::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c), var(--k-amber)); opacity: .55; }
.uc-day li { position: relative; padding-left: 32px; min-width: 0; }
.uc-day li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ts-bg); border: 2px solid var(--c); box-shadow: 0 0 0 3px var(--ts-bg); transition: background .3s, box-shadow .4s; }
.uc-day li:hover::before { background: var(--c); box-shadow: 0 0 0 3px var(--ts-bg), 0 0 14px var(--c); }
.uc-day time { display: block; font: 500 .6875rem/1.4 var(--k-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--k-kicker); }
.uc-day b { display: block; margin-top: 2px; font-weight: 600; }
.uc-day span { display: block; margin-top: 2px; color: var(--ts-text-muted); font-size: .9375rem; }
.fx-m .uc-day:not(.in) li { opacity: 0; }
.fx-m .uc-day li { translate: 0 10px; transition: opacity .6s var(--k-ease-out) var(--d, 0s), translate .7s var(--k-ease-out) var(--d, 0s); }
.fx-m .uc-day.in li { opacity: 1; translate: none; }
.fx-m .uc-day.in li::before { animation: uc-dot .6s var(--k-ease-spring) var(--d, 0s) both; }
@keyframes uc-dot { 0% { transform: scale(.3); } 100% { transform: none; } }
.uc-does { list-style: none; padding: 0; display: grid; gap: 10px; }
.uc-does li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1px solid var(--k-line);
  background: color-mix(in srgb, var(--ts-surface) 60%, transparent); line-height: 1.5; transition: border-color .25s, background .25s; }
.uc-does li:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--ts-border)); }
.uc-does li::before { content: "✓"; position: absolute; left: 14px; top: 12px; font: 600 .875rem/1.5 var(--k-mono); color: var(--k-mint); }
.uc-does li.soon::before { content: "◌"; color: var(--k-amber); }
.uc-does .badge { margin-left: 6px; vertical-align: 1px; }
.uc-does .note { display: block; margin-top: 2px; font-size: .8125rem; color: var(--ts-text-subtle); }
.uc-sub { margin: 0 0 18px; font: 700 1.25rem/1.3 var(--ts-font-display); }
.uc-tabs { margin-top: 28px; }
.uc-panel[hidden] { display: none; }
.uc-panel .uc-body { margin-top: 24px; }

/* ================================================================ the scene: chat → workers → result → approval */
.uc-scene { position: sticky; top: calc(var(--k-topbar-h) + 24px); min-width: 0; }
@media (max-width: 960px) { .uc-scene { position: static; } }
.scn { --s: 4; border-radius: 16px; overflow: hidden; background: var(--k-term-bg); color: var(--k-term-fg);
  border: 1px solid rgba(136, 157, 231, .24); box-shadow: 0 30px 70px -34px var(--k-glow), inset 0 1px 0 rgba(255, 255, 255, .04);
  font: 400 .8125rem/1.5 var(--k-mono); }
.scn-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(136, 157, 231, .16);
  background: rgba(255, 255, 255, .02); color: #8C96B8; font-size: .75rem; }
.scn-bar .con-dots { display: inline-flex; gap: 6px; }
.scn-bar .con-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A3358; }
.scn-bar .con-dots i:first-child { background: #FF6B6B; } .scn-bar .con-dots i:nth-child(2) { background: #F5A524; } .scn-bar .con-dots i:nth-child(3) { background: #2FE3A0; }
.scn-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scn-steps { list-style: none; padding: 0; display: flex; gap: 4px; }
.scn-steps li { width: 18px; height: 4px; border-radius: 2px; background: rgba(136, 157, 231, .22); transition: background .3s, box-shadow .3s; }
.scn-body { padding: 16px; display: grid; gap: 12px; min-height: 340px; align-content: start; }
.scn .who { color: #8C96B8; }
.scn .who.k { color: #FFC15C; }
.scn-req { padding: 10px 12px; border-radius: 10px; background: rgba(111, 139, 255, .1); border: 1px solid rgba(111, 139, 255, .22); color: #E6EBFF; }
.scn-req .mic { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #FF6FA8; vertical-align: 1px; }
.scn-plan { color: #B9C4E8; }
.scn-wk { list-style: none; padding: 0; display: grid; gap: 8px; }
.scn-wk li { --w: #6F8BFF; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 9px 11px;
  border-radius: 10px; border: 1px solid rgba(136, 157, 231, .16); background: rgba(255, 255, 255, .025); }
.scn-wk b { font-weight: 500; color: #E6EBFF; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scn-wk b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--w);
  box-shadow: 0 0 8px var(--w); vertical-align: 1px; }
.scn-wk em { font-style: normal; color: #8C96B8; font-size: .6875rem; white-space: nowrap; }
.scn-wk .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(136, 157, 231, .14); overflow: hidden; }
.scn-wk .bar i { display: block; height: 100%; background: var(--w); transform-origin: left; }
.scn-wk .log { grid-column: 1 / -1; color: #8C96B8; font-size: .75rem; }
.scn-wk .log::before { content: "✓ "; color: #2FE3A0; }
.scn-res { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px;
  border: 1px dashed rgba(47, 227, 160, .45); background: rgba(47, 227, 160, .06); }
.scn-res .ico { flex: none; width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(47, 227, 160, .14); color: #2FE3A0; font-size: .75rem; }
.scn-res b { display: block; color: #E6EBFF; font-weight: 500; overflow-wrap: anywhere; }
.scn-res span { color: #9FAACB; font-size: .75rem; }
.scn-ap { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .07); color: #FFE2AE; }
.scn-ap .txt { flex: 1; min-width: 0; }
.scn-ap .btnx { flex: none; padding: 4px 9px; border-radius: 6px; background: #F5A524; color: #0B1433; font-weight: 500; font-size: .75rem; }
.scn-ap .stamp { position: absolute; right: 10px; top: 50%; padding: 3px 9px; border: 2px solid #2FE3A0; border-radius: 6px;
  color: #2FE3A0; font: 600 .75rem/1.2 var(--k-mono); letter-spacing: .12em; background: #050918; transform: translateY(-50%) rotate(-6deg); }
.scn-ap .pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #F5A524; }
.scn-ap.local { border-color: rgba(136, 157, 231, .3); background: rgba(111, 139, 255, .07); color: #C9D4FF; }
.scn-ap.local .pulse { background: #6F8BFF; }

/* final state (no JS, reduced motion): everything shown, stamped, all steps lit */
.scn-steps li { background: #2FE3A0; }
.scn-ap .btnx { visibility: hidden; }

/* motion: uc.js sets data-step 0..4 on .scn while it is on screen */
.fx-m .scn[data-step] .scn-steps li { background: rgba(136, 157, 231, .22); }
.fx-m .scn[data-step="1"] .scn-steps li:nth-child(-n+1),
.fx-m .scn[data-step="2"] .scn-steps li:nth-child(-n+2),
.fx-m .scn[data-step="3"] .scn-steps li:nth-child(-n+3),
.fx-m .scn[data-step="4"] .scn-steps li,
.fx-m .scn[data-step="5"] .scn-steps li { background: #FFC15C; box-shadow: 0 0 8px rgba(245, 165, 36, .6); }
.fx-m .scn[data-step="5"] .scn-steps li { background: #2FE3A0; box-shadow: 0 0 8px rgba(47, 227, 160, .5); }
.fx-m .scn[data-step] :where(.scn-req, .scn-plan, .scn-wk li, .scn-res, .scn-ap) { opacity: 0; translate: 0 8px;
  transition: opacity .45s var(--k-ease-out), translate .55s var(--k-ease-out); }
.fx-m .scn[data-step]:not([data-step="0"]) .scn-req { opacity: 1; translate: none; }
.fx-m .scn:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) :is(.scn-plan, .scn-wk li) { opacity: 1; translate: none; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(2) { transition-delay: .15s; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(3) { transition-delay: .3s; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(4) { transition-delay: .45s; }
.fx-m .scn[data-step="2"] .scn-wk .bar i { animation: uc-fill 1.9s var(--k-ease-out) both; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(2) .bar i { animation-delay: .25s; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(3) .bar i { animation-delay: .5s; }
.fx-m .scn[data-step="2"] .scn-wk li:nth-child(4) .bar i { animation-delay: .7s; }
.fx-m .scn[data-step="2"] .scn-wk .log { opacity: 0; }
.fx-m .scn:is([data-step="3"], [data-step="4"], [data-step="5"]) .scn-res { opacity: 1; translate: none; }
.fx-m .scn:is([data-step="4"], [data-step="5"]) .scn-ap { opacity: 1; translate: none; }
.fx-m .scn[data-step="4"] .scn-ap .btnx { visibility: visible; animation: uc-nudge 1.2s ease-in-out infinite; }
.fx-m .scn[data-step="4"] .scn-ap .pulse { animation: hm-pulse 1.6s ease-out infinite; }
.fx-m .scn[data-step] .scn-ap .stamp { opacity: 0; }
.fx-m .scn[data-step="5"] .scn-ap .stamp { opacity: 1; animation: uc-slam .5s var(--k-ease-spring) both; }
@keyframes uc-fill { from { transform: scaleX(0); } to { transform: none; } }
@keyframes uc-nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(245, 165, 36, .25); } }
@keyframes uc-slam { 0% { transform: translateY(-50%) rotate(-6deg) scale(2.2); opacity: 0; } 100% { transform: translateY(-50%) rotate(-6deg); opacity: 1; } }
@keyframes hm-pulse { 80%, 100% { box-shadow: 0 0 0 8px rgba(245, 165, 36, 0); } }
.scn-cap { margin-top: 10px; font-size: .8125rem; color: var(--ts-text-subtle); }

@media (max-width: 420px) { .scn-body { padding: 12px; min-height: 0; } .scn { font-size: .75rem; } }

/* ================================================================ closing */
.uc-end { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .uc-end { grid-template-columns: minmax(0, 1fr); } }
.uc-end .section-head { margin-bottom: 0; }

/* ================================================================ the maker scene: schematic → case → slices → approval → printer */
.hw-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hw-pane { position: relative; min-width: 0; height: 112px; padding: 26px 10px 10px; border-radius: 10px;
  border: 1px solid rgba(136, 157, 231, .16); background: rgba(255, 255, 255, .025); display: flex; align-items: center; justify-content: center;
  transition: opacity .45s var(--k-ease-out), border-color .4s; }
.hw-l { position: absolute; left: 10px; top: 7px; right: 10px; font-size: .6875rem; color: #8C96B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-l .soon { margin-left: 4px; padding: 0 5px; border-radius: 4px; border: 1px solid rgba(245, 165, 36, .45); color: #FFC15C; font-size: .625rem; }
.hw-sch svg { width: 100%; max-width: 150px; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hw-sch .tr { stroke: #2FE3A0; stroke-width: 1.6; }
.hw-sch .cp { stroke: #9BB0FF; stroke-width: 1.4; }
.hw-sch .pd { fill: #FFC15C; }
.hw-3d { perspective: 300px; }
.cube { position: relative; width: 44px; height: 44px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(38deg); }
.cube i { position: absolute; inset: 0; border: 1.5px solid #6F8BFF; background: rgba(111, 139, 255, .12); }
.cube .f0 { transform: translateZ(22px); } .cube .f1 { transform: rotateY(180deg) translateZ(22px); }
.cube .f2 { transform: rotateY(90deg) translateZ(22px); } .cube .f3 { transform: rotateY(-90deg) translateZ(22px); }
.cube .f4 { transform: rotateX(90deg) translateZ(22px); background: rgba(255, 193, 92, .18); border-color: #FFC15C; }
.cube .f5 { transform: rotateX(-90deg) translateZ(22px); }
.layers { display: flex; flex-direction: column-reverse; gap: 3px; width: 70%; max-width: 120px; }
.layers i { height: 5px; border-radius: 2px; background: linear-gradient(90deg, #FF8A5C, #FFC15C); }
.layers i:nth-child(n+4) { margin: 0 6%; } .layers i:nth-child(n+7) { margin: 0 14%; }
.hw-pr { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.pbar { height: 6px; border-radius: 3px; background: rgba(136, 157, 231, .16); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2FE3A0, #6F8BFF); transform-origin: left; transform: scaleX(.23); }
.pst { font-size: .6875rem; color: #9FAACB; }
.pst .g { display: none; }

.fx-m .scn-hw[data-step] .hw-pane { opacity: .18; }
.fx-m .scn-hw:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) :is(.hw-sch, .hw-3d) { opacity: 1; }
.fx-m .scn-hw:is([data-step="3"], [data-step="4"], [data-step="5"]) .hw-sl { opacity: 1; }
.fx-m .scn-hw:is([data-step="4"], [data-step="5"]) .hw-pr { opacity: 1; }
.fx-m .scn-hw[data-step="2"] .hw-sch .tr { stroke-dasharray: 80; animation: uc-trace 1.6s var(--k-ease-out) both; }
.fx-m .scn-hw.live .cube { animation: uc-spin 6s linear infinite; }
.fx-m .scn-hw[data-step="3"] .layers i { animation: uc-layer .3s var(--k-ease-out) both; }
.fx-m .scn-hw[data-step="3"] .layers i:nth-child(2) { animation-delay: .1s } .fx-m .scn-hw[data-step="3"] .layers i:nth-child(3) { animation-delay: .2s }
.fx-m .scn-hw[data-step="3"] .layers i:nth-child(4) { animation-delay: .3s } .fx-m .scn-hw[data-step="3"] .layers i:nth-child(5) { animation-delay: .4s }
.fx-m .scn-hw[data-step="3"] .layers i:nth-child(6) { animation-delay: .5s } .fx-m .scn-hw[data-step="3"] .layers i:nth-child(7) { animation-delay: .6s }
.fx-m .scn-hw[data-step="3"] .layers i:nth-child(8) { animation-delay: .7s } .fx-m .scn-hw[data-step="3"] .layers i:nth-child(9) { animation-delay: .8s }
.fx-m .scn-hw[data-step="4"] .pbar i { transform: scaleX(0); }
.fx-m .scn-hw[data-step="5"] .pbar i { animation: uc-print 3.2s linear both; }
.fx-m .scn-hw[data-step="5"] .pst .w { display: none; }
.fx-m .scn-hw[data-step="5"] .pst .g { display: inline; }
.fx-m .scn-hw[data-step] .scn-ap { opacity: 0; }
.fx-m .scn-hw:is([data-step="4"], [data-step="5"]) .scn-ap { opacity: 1; translate: none; }
@keyframes uc-trace { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes uc-spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes uc-layer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes uc-print { from { transform: scaleX(0); } to { transform: scaleX(.23); } }

/* ================================================================ landing: "One agent. Built for…" closing row */
.built { text-align: center; overflow: hidden; }
.built::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 260px at 50% 100%, var(--k-glow-amber), transparent 70%), radial-gradient(520px 240px at 50% 0%, var(--k-glow), transparent 70%); opacity: .55; }
.bf-h { position: relative; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem); letter-spacing: -0.02em; }
.bf-k { background: var(--k-head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-row { position: relative; list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px) { .bf-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bf-row li:last-child { grid-column: span 2; } }
.bf-item { --c: var(--k-indigo-hi); position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 20px;
  border-radius: 16px; border: 1px solid var(--ts-border); background: color-mix(in srgb, var(--ts-surface) 80%, transparent);
  color: var(--ts-text); text-decoration: none; transition: transform .35s var(--k-ease-spring), border-color .25s, box-shadow .35s; }
.bf-item:hover { color: var(--ts-text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, var(--ts-border));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--c) 75%, transparent); }
.bf-item b { font: 700 1rem/1.3 var(--ts-font-display); }
.bf-item span:not(.pi) { color: var(--ts-text-muted); font-size: .9375rem; line-height: 1.4; }
.bf-item::after { content: "→"; position: absolute; right: 14px; top: 12px; font: 500 .875rem/1 var(--k-mono); color: var(--c); opacity: 0;
  transform: translateX(-6px); transition: opacity .25s, transform .3s var(--k-ease-spring); }
.bf-item:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
.fx-m .bf-item:is(:hover, :focus-visible) .pi .a1 { animation: var(--a1) 1.1s var(--k-ease-out) both; }
.fx-m .bf-item:is(:hover, :focus-visible) .pi .a2 { animation: var(--a2, none) 1.1s var(--k-ease-out) .15s both; }
.fx-m .bf-item:is(:hover, :focus-visible) .pi .lp { animation: var(--lp) 1.4s ease-in-out infinite; }
.bf-item:is(:hover, :focus-visible) .pi { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.bf-end { position: relative; margin-top: 56px; }
.bf-q { font: 800 clamp(2rem, 1.3rem + 3vw, 3.5rem)/1.08 var(--ts-font-display); letter-spacing: -0.025em; text-wrap: balance;
  background: var(--k-head-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-act { margin: 24px auto 0; max-width: 680px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; text-align: left; }
.bf-act .cmd { flex: 1 1 360px; }

/* The install command in the closing rows wraps instead of scrolling (a scrolling <pre> would need to be focusable). */
.bf-act .cmd pre, .uc-end .cmd pre { white-space: pre-wrap; overflow-wrap: anywhere; }
