/* Hero only: two entry routes -> Hands -> work delivered.
   Existing brand tokens and assets; no library or runtime interaction required. */
.sage-home .hero.hero-orchestration { padding-bottom: 2rem; }
.sage-home .hero-orchestration .hero-copy { padding-top: 1.5rem; }
.sage-home .hero-orchestration h1 {
  margin: .85rem auto .9rem;
  font-size: clamp(2.3rem, 4.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.sage-home .hero-orchestration h1 em { line-height: 1.06; }
.sage-home .hero-orchestration .hero-lead { max-width: 48rem; }
.sage-home .hero-orchestration .hero-actions { margin-top: 1rem; flex-wrap: wrap; }
.sage-home .hero-orchestration .hero-trial { margin-top: .65rem; font-size: .83rem; color: var(--muted); }
/* One composition; only the real provider links are interactive. */
.sage-home .hero-orchestration .hero-flow {
  --hf-border: color-mix(in srgb, var(--ink) 14%, transparent);
  --hf-track: color-mix(in srgb, var(--accent) 38%, var(--paper));
  --hf-card: color-mix(in srgb, var(--surface) 85%, var(--paper));
  width: min(1120px, calc(100% - 5rem));
  margin: 1.6rem auto 0;
  padding: 1.1rem 1.75rem .8rem;
  border: 1px solid var(--hf-border);
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 46%, color-mix(in srgb, var(--color-accent-fill) 9%, transparent), transparent 43%), color-mix(in srgb, var(--surface) 40%, var(--paper));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent), 0 16px 44px color-mix(in srgb, var(--ink) 5%, transparent);
  text-align: left;
}
.sage-home .hero-orchestration .hf-scenario { display: flex; justify-content: center; padding: .1rem .4rem 1.4rem; }
.sage-home .hero-orchestration .hf-request { position: relative; display: inline-grid; grid-template-columns: minmax(0, 1fr); max-width: 100%; font-size: .95rem; line-height: 1.5; font-weight: 500; color: var(--ink); text-align: left; }
/* The complete request remains in the layout and accessibility tree. Only the
   aria-hidden overlay types; line wrapping never moves the diagram beneath it. */
.sage-home .hero-orchestration .hf-request-text { grid-area: 1 / 1; }
.sage-home .hero-orchestration .hf-request.hf-typing .hf-request-text { opacity: 0; }
.sage-home .hero-orchestration .hf-request-visual { grid-area: 1 / 1; min-width: 0; align-self: start; }
.sage-home .hero-orchestration .hf-typed-text::after { content: ''; position: absolute; width: 1.5px; height: 1em; margin: .2em 0 0 .14em; background: var(--accent); }
.sage-home .hero-orchestration .hf-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); column-gap: 64px; align-items: center; }
.sage-home .hero-orchestration .hf-inputs { grid-area: 1 / 1; display: grid; grid-template-rows: repeat(2, minmax(78px, 1fr)); gap: 10px; min-width: 0; }
.sage-home .hero-orchestration .hf-entry { position: relative; min-width: 0; padding: .65rem .85rem; border: 1px solid var(--hf-border); border-radius: 16px; background: var(--hf-card); box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 3%, transparent); }
.sage-home .hero-orchestration .hf-entry strong { display: block; font-size: .91rem; line-height: 1.25; font-weight: 650; }
.sage-home .hero-orchestration .hf-direct { display: flex; align-items: center; gap: .85rem; }
.sage-home .hero-orchestration .hf-direct > div > span { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.sage-home .hero-orchestration .hf-entry-icon { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .6rem; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--accent); }
.sage-home .hero-orchestration .hf-entry-icon svg { flex: none; width: 22px; height: 22px; }
.sage-home .hero-orchestration .hf-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: .3rem; }
.sage-home .hero-orchestration .hf-more { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin: -.2rem 0; border-radius: 7px; color: var(--muted); }
.sage-home .hero-orchestration .hf-providers { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; }
.sage-home .hero-orchestration .hf-providers a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 32px; padding: .3rem .45rem; border: 1px solid var(--hf-border); border-radius: 9px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent); font-size: .76rem; line-height: 1; transition: border-color .18s, background .18s, box-shadow .18s; }
.sage-home .hero-orchestration .hf-providers img { flex: none; width: 19px; height: 19px; object-fit: contain; }
.sage-home .hero-orchestration :is(.hf-providers a, .hf-more):hover { border-color: var(--control-line); background: var(--raised); box-shadow: 0 2px 7px color-mix(in srgb, var(--ink) 8%, transparent); }
.sage-home .hero-orchestration .hf-conductor { grid-area: 1 / 2; position: relative; display: grid; place-items: center; width: 100%; text-align: center; }
.sage-home .hero-orchestration .hf-mark { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 27px; background: linear-gradient(145deg, var(--surface), var(--paper)); border: 1px solid color-mix(in srgb, var(--color-accent-fill) 60%, var(--hf-border)); box-shadow: 0 0 0 7px color-mix(in srgb, var(--color-accent-fill) 7%, transparent), 0 8px 30px color-mix(in srgb, var(--ink) 10%, transparent), inset 0 1px 0 color-mix(in srgb, var(--color-accent-fill) 20%, transparent); }
.sage-home .hero-orchestration .hf-conductor::before { content: ''; position: absolute; left: 50%; top: 50%; width: 114px; height: 114px; transform: translate(-50%, -50%); border: 1px solid color-mix(in srgb, var(--color-accent-fill) 12%, transparent); border-radius: 37px; pointer-events: none; }
.sage-home .hero-orchestration .hf-mark img { width: 64px; height: 64px; object-fit: contain; }
.sage-home .hero-orchestration .hf-role { position: absolute; top: calc(100% + 11px); left: 50%; width: 220px; transform: translateX(-50%); font-size: .84rem; color: var(--muted); line-height: 1.35; }
.sage-home .hero-orchestration .hf-foundation { grid-area: 2 / 1 / 3 / 4; display: flex; flex-direction: column; align-items: center; gap: .45rem; margin-top: .6rem; min-width: 0; }
.sage-home .hero-orchestration .hf-context { display: flex; align-items: center; justify-content: center; gap: .4rem; max-width: 100%; color: var(--muted); font-size: .82rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.sage-home .hero-orchestration .hf-context svg { flex: none; color: var(--accent); }
.sage-home .hero-orchestration .hf-capabilities { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; padding: 0; margin: 0; list-style: none; }
.sage-home .hero-orchestration .hf-capabilities li { padding: .22rem .55rem; border: 1px solid var(--hf-border); border-radius: 7px; background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--muted); font-size: .78rem; line-height: 1.2; white-space: nowrap; }
.sage-home .hero-orchestration .hf-results { grid-area: 1 / 3; position: relative; display: grid; grid-template-rows: repeat(2, minmax(78px, 1fr)); gap: 10px; min-width: 0; }
.sage-home .hero-orchestration .hf-result-heading { position: absolute; top: -25px; left: 0; font-size: .78rem; color: var(--muted); font-weight: 600; }
.sage-home .hero-orchestration .hf-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--good-ink) 16%, var(--hf-border)); border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--good-bg) 12%, var(--surface)), var(--hf-card)); box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 3%, transparent); }
.sage-home .hero-orchestration .hf-result > div { min-width: 0; }
.sage-home .hero-orchestration .hf-result strong { display: block; font-size: .89rem; font-weight: 650; line-height: 1.3; }
.sage-home .hero-orchestration .hf-result span:not(.hf-file-icon) { display: block; margin-top: .25rem; font-size: .8rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.sage-home .hero-orchestration .hf-file-icon { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--accent); }
.sage-home .hero-orchestration .hf-file-icon svg { width: 22px; height: 22px; }
.sage-home .hero-orchestration .hf-check { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--good-ink); background: var(--good-bg); }
/* Routes are measured in CSS pixels from the actual cards and logo, never
   stretched from a fixed viewBox. The decorative overlay has no layout effect. */
.sage-home .hero-orchestration .hf-routes { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; }
.sage-home .hero-orchestration .hf-routes :is(.hf-track, .hf-arrow) { stroke: var(--hf-track); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sage-home .hero-orchestration .hf-signal { opacity: 0; stroke: var(--color-accent-fill); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 8 108; stroke-dashoffset: 10; vector-effect: non-scaling-stroke; }
/* One coordinated sequence: request types first, then routes / logo / results.
   Nothing is hidden or presented as a live task, and all motion ends in 4.8s. */
@media (prefers-reduced-motion: no-preference) {
  .sage-home .hero-orchestration .hf-animate .hf-signal-in { animation: hf-input-signal 4.8s ease-in-out both; }
  .sage-home .hero-orchestration .hf-animate .hf-mark { animation: hf-activate 4.8s ease-in-out; }
  .sage-home .hero-orchestration .hf-animate .hf-signal-out { animation: hf-output-signal 4.8s ease-in-out both; }
  .sage-home .hero-orchestration .hf-animate .hf-check { animation: hf-complete 4.8s ease-in-out; }
}
@media (prefers-reduced-motion: reduce) {
  .sage-home .hero-orchestration .hf-request.hf-typing .hf-request-text { opacity: 1; }
  .sage-home .hero-orchestration .hf-request-visual { display: none; }
}
@keyframes hf-input-signal { 0%, 41% { opacity: 0; stroke-dashoffset: 10; } 44% { opacity: 1; } 58% { opacity: 1; stroke-dashoffset: -100; } 62%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes hf-output-signal { 0%, 68% { opacity: 0; stroke-dashoffset: 10; } 71% { opacity: 1; } 86% { opacity: 1; stroke-dashoffset: -100; } 90%, 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes hf-activate { 56%, 70% { border-color: var(--color-accent-fill); } }
@keyframes hf-complete { 86%, 96% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-bg) 55%, transparent); } }
@media (max-width: 1100px) and (min-width: 761px) {
  .sage-home .hero-orchestration .hero-flow { width: calc(100% - 3rem); padding-inline: 1rem; }
  .sage-home .hero-orchestration .hf-layout { grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); column-gap: 32px; }
  .sage-home .hero-orchestration .hf-chat { display: none; }
  .sage-home .hero-orchestration .hf-entry { padding-inline: .6rem; }
  .sage-home .hero-orchestration .hf-providers a { flex: 1; padding-inline: .3rem; }
  .sage-home .hero-orchestration .hf-providers a span { display: none; }
  .sage-home .hero-orchestration .hf-role { width: 180px; font-size: .8rem; }
  .sage-home .hero-orchestration .hf-result { padding-inline: .6rem; gap: .45rem; }
  .sage-home .hero-orchestration .hf-file-icon { width: 24px; background: none; }
}
/* Two equal entrances, then logo beside the results; capabilities share one
   compact row below instead of becoming a tiny technical column. */
@media (max-width: 760px) {
  .sage-home .hero.hero-orchestration { padding-bottom: 1.5rem; }
  .sage-home .hero-orchestration .hero-copy { padding-top: 1rem; width: calc(100% - 2rem); }
  .sage-home .hero-orchestration h1 { font-size: clamp(2rem, 8.7vw, 3.3rem); margin: .75rem auto; line-height: 1.06; }
  .sage-home .hero-orchestration .hero-lead { font-size: 1rem; line-height: 1.45; }
  .sage-home .hero-orchestration .hero-actions { gap: .5rem; }
  .sage-home .hero-orchestration .hero-actions .button { font-size: .85rem; min-height: 44px; padding: .6rem .85rem; }
  .sage-home .hero-orchestration .hero-trial { font-size: .8rem; margin-top: .6rem; }
  .sage-home .hero-orchestration .hero-flow { width: calc(100% - 1.5rem); margin-top: 1.25rem; padding: .85rem .75rem .8rem; border-radius: 22px; }
  .sage-home .hero-orchestration .hf-scenario { padding: 0 .3rem .85rem; }
  .sage-home .hero-orchestration .hf-request { font-size: .86rem; line-height: 1.4; }
  .sage-home .hero-orchestration .hf-layout { grid-template-columns: 100px 24px minmax(0, 1fr); grid-template-rows: auto 40px minmax(144px, auto) auto; column-gap: 0; }
  .sage-home .hero-orchestration .hf-inputs { grid-area: 1 / 1 / 2 / 4; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(78px, auto); gap: 8px; }
  .sage-home .hero-orchestration .hf-entry { padding: .5rem .55rem; border-radius: 12px; }
  .sage-home .hero-orchestration .hf-entry strong { font-size: .82rem; }
  .sage-home .hero-orchestration .hf-direct { gap: .45rem; }
  .sage-home .hero-orchestration .hf-direct > div > span { font-size: .78rem; margin-top: .2rem; }
  .sage-home .hero-orchestration .hf-entry-icon { flex: none; padding: .35rem; border-radius: 9px; }
  .sage-home .hero-orchestration .hf-entry-icon svg { width: 19px; height: 19px; }
  .sage-home .hero-orchestration .hf-chat { display: none; }
  .sage-home .hero-orchestration .hf-more { width: 20px; height: 24px; margin-right: 0; }
  .sage-home .hero-orchestration .hf-providers { gap: .4rem; margin-top: .4rem; }
  .sage-home .hero-orchestration .hf-providers a { width: 34px; height: 32px; padding: 0; border-radius: 9px; }
  .sage-home .hero-orchestration .hf-providers a span { display: none; }
  .sage-home .hero-orchestration .hf-providers img { width: 19px; height: 19px; }
  .sage-home .hero-orchestration .hf-conductor { grid-area: 3 / 1; }
  .sage-home .hero-orchestration .hf-mark { width: 62px; height: 62px; border-radius: 20px; }
  .sage-home .hero-orchestration .hf-conductor::before { width: 82px; height: 82px; border-radius: 28px; }
  .sage-home .hero-orchestration .hf-mark img { width: 46px; height: 46px; }
  .sage-home .hero-orchestration .hf-role { width: 100px; top: calc(100% + 10px); font-size: .79rem; line-height: 1.3; }
  .sage-home .hero-orchestration .hf-foundation { grid-area: 4 / 1 / 5 / 4; gap: .4rem; margin-top: .75rem; }
  .sage-home .hero-orchestration .hf-context { font-size: .8rem; gap: .35rem; }
  .sage-home .hero-orchestration .hf-capabilities { gap: .3rem; }
  .sage-home .hero-orchestration .hf-capabilities li { padding: .22rem .5rem; font-size: .76rem; }
  .sage-home .hero-orchestration .hf-results { grid-area: 3 / 3; grid-template-rows: repeat(2, minmax(68px, 1fr)); gap: 8px; }
  .sage-home .hero-orchestration .hf-result-heading { top: -23px; font-size: .75rem; }
  .sage-home .hero-orchestration .hf-result { gap: .4rem; padding: .6rem; border-radius: 12px; }
  .sage-home .hero-orchestration .hf-result strong { font-size: .84rem; }
  .sage-home .hero-orchestration .hf-result span:not(.hf-file-icon) { font-size: .76rem; margin-top: .2rem; }
  .sage-home .hero-orchestration .hf-file-icon { width: 18px; height: 24px; background: none; border-radius: 0; }
  .sage-home .hero-orchestration .hf-file-icon svg { width: 18px; height: 18px; }
  .sage-home .hero-orchestration .hf-check { width: 16px; height: 16px; padding: 2px; }
}
@media (max-width: 360px) {
  .sage-home .hero-orchestration .hf-layout { grid-template-columns: 90px 20px minmax(0, 1fr); }
  .sage-home .hero-orchestration .hf-role { width: 90px; }
  .sage-home .hero-orchestration .hf-file-icon { display: none; }
  .sage-home .hero-orchestration .hf-result { grid-template-columns: minmax(0, 1fr) auto; padding: .5rem; gap: .3rem; }
  .sage-home .hero-orchestration .hf-providers { gap: .25rem; }
  .sage-home .hero-orchestration .hf-providers a { width: 30px; }
}
@media (min-width: 1001px) and (max-height: 820px) {
  .sage-home .hero-orchestration .hero-copy { padding-top: 1rem; }
  .sage-home .hero-orchestration h1 { font-size: 3.6rem; }
  .sage-home .hero-orchestration .hero-flow { margin-top: 1.1rem; }
}
