/* HOW IT WORKS: question -> InquiSight -> answer on one line; the four steps sit below and feed up
   into the logo through soft curves with a pulse running up them. No boxes around the steps. */
main > section.hw-sec { height: auto !important; min-height: 0 !important; padding: clamp(96px, 15vh, 150px) 0 !important; background: #fff !important; }
main > section.hw-sec::before, main > section.hw-sec::after { content: none !important; display: none !important; }
.hw-sec .cmp__head h2 { max-width: 30ch; }

.eng { width: min(100% - 2 * clamp(24px, 6.5vw, 80px), 1040px); margin: 64px auto 0; }

/* the top line */
.eng-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto 56px minmax(0, 1fr); align-items: center; }
.eng-end { padding: 0; text-align: center; }
.eng-k { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: #71717a; }
.eng-q { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: #09090b; text-wrap: balance; }
.eng-arrow { height: 16px; background: no-repeat center / 28px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16' fill='none' stroke='%23a5aee9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8h24M20 3l5 5-5 5'/%3E%3C/svg%3E"); }

/* the hub */
.eng-hub { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eng-mark { display: block; }
.eng-mark img { width: 64px; height: 64px; display: block; }
.eng-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #09090b; }

/* the feed: four curves from the steps up into the hub */
.eng-feed { display: block; width: 100%; height: 110px; margin-top: 4px; overflow: visible; }
.eng-feed path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.f-base { stroke: #dfe3fb; stroke-width: 1.5; }
.f-flow { stroke: #3f51d1; stroke-width: 2; stroke-dasharray: 8 92; stroke-dashoffset: 100; animation: engFlow 2.2s linear infinite; animation-delay: var(--d); }
@keyframes engFlow { to { stroke-dashoffset: 0; } }

/* the steps */
.eng-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.eng-steps li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.eng-ico { display: block; margin: 8px 0 14px; }
.eng-ico svg { display: block; width: 26px; height: 26px; fill: none; stroke: #3f51d1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eng-steps h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: #09090b; }
.eng-steps p { margin: 0; max-width: 22ch; font-size: 13px; line-height: 1.4; color: #71717a; text-wrap: balance; }

/* entrance (uc.js adds .is-in): steps rise, the feed draws up, the hub lands, then the two ends slide in */
html.rv-on .eng .eng-steps li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .8s cubic-bezier(.16,1,.3,1); }
html.rv-on .eng .eng-steps li:nth-child(2) { transition-delay: .08s; } html.rv-on .eng .eng-steps li:nth-child(3) { transition-delay: .16s; } html.rv-on .eng .eng-steps li:nth-child(4) { transition-delay: .24s; }
html.rv-on .eng .eng-feed { opacity: 0; transition: opacity .6s ease .45s; }
html.rv-on .eng .eng-hub { opacity: 0; transform: scale(.8); transition: opacity .4s ease .8s, transform .7s cubic-bezier(.34,1.56,.64,1) .8s; }
html.rv-on .eng .eng-in, html.rv-on .eng .eng-out, html.rv-on .eng .eng-arrow { opacity: 0; transition: opacity .6s ease 1.15s, transform .8s cubic-bezier(.16,1,.3,1) 1.15s; }
html.rv-on .eng .eng-in { transform: translateX(-16px); } html.rv-on .eng .eng-out { transform: translateX(16px); transition-delay: 1.45s; }
html.rv-on .eng.is-in .eng-steps li, html.rv-on .eng.is-in .eng-feed, html.rv-on .eng.is-in .eng-hub, html.rv-on .eng.is-in .eng-in, html.rv-on .eng.is-in .eng-out, html.rv-on .eng.is-in .eng-arrow { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .eng-row { grid-template-columns: 1fr; gap: 12px; justify-items: stretch; }
  .eng-arrow { transform: rotate(90deg) !important; }
  .eng-hub { margin: 4px 0; }
  .eng-feed { display: none; }
  .eng-steps { grid-template-columns: 1fr 1fr; margin-top: 32px; row-gap: 24px; }
  main > section.hw-sec { min-height: 0 !important; padding: 88px 0 64px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .f-flow { animation: none; display: none; }
  html.rv-on .eng .eng-steps li, html.rv-on .eng .eng-feed, html.rv-on .eng .eng-hub, html.rv-on .eng .eng-in, html.rv-on .eng .eng-out, html.rv-on .eng .eng-arrow { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.eng-out .eng-q { color: #3f51d1; }

/* ownership: a span marker under all four steps */
.eng-own { position: relative; margin: 40px 0 0; text-align: center; border-top: 1.5px solid #3f51d1; padding-top: 18px; }
.eng-own::before, .eng-own::after { content: ""; position: absolute; top: -6px; width: 1.5px; height: 10px; background: #3f51d1; }
.eng-own::before { left: 0; } .eng-own::after { right: 0; }
.eng-own span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: #09090b; }
.eng-own svg { width: 20px; height: 20px; fill: none; stroke: #3f51d1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.rv-on .eng .eng-own { opacity: 0; transition: opacity .6s ease 1.7s; }
html.rv-on .eng.is-in .eng-own { opacity: 1; }
