/* HAVENSHIFT REDLINE v1.4 — editorial interactive workflow + orbital motion.
   Appended after original CSS so all existing demos, themes and stock images remain unchanged. */
.flow-showcase{scroll-margin-top:84px;position:relative;isolation:isolate;overflow:hidden;background:var(--bg);color:var(--ink)}
.flow-showcase::before{content:"";position:absolute;pointer-events:none;width:680px;height:680px;border-radius:50%;right:-350px;top:50px;background:radial-gradient(circle,rgba(236,40,75,.055),transparent 69%);z-index:-1}
.flow-heading{display:flex;justify-content:space-between;align-items:end;gap:46px;max-width:1180px}
.flow-heading h2{font-size:clamp(42px,4.8vw,69px);letter-spacing:-.075em;line-height:1.075;margin:21px 0 0}
.flow-heading h2 em{color:#f44463;font-style:normal}
.flow-heading>p{max-width:400px;font-size:16px;line-height:1.8;color:var(--ink-soft);margin:0 0 7px}
.flow-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.28fr);gap:32px;align-items:stretch;margin-top:50px}
.flow-control{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:15px 0}
.flow-overline{font-size:11px;letter-spacing:.18em;font-weight:850;color:var(--ink-soft);display:flex;justify-content:space-between;margin:0 0 25px}
.flow-overline span{color:#f44463}
.flow-switch{appearance:none;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;align-items:start;gap:12px;text-align:left;padding:25px 8px 25px 0;width:100%;cursor:pointer;position:relative;transition:background .24s ease,padding .24s ease}
.flow-switch:last-of-type{border-bottom:1px solid var(--line)}
.flow-switch::before{content:"";position:absolute;top:0;left:0;width:0;height:2px;background:#f44463;transition:width .38s cubic-bezier(.2,.7,.2,1)}
.flow-switch.is-active::before{width:100%}
.flow-switch-number{font-weight:850;font-size:13px;color:#9b8f98;padding-top:5px;transition:color .3s}
.flow-switch-copy{display:grid;gap:8px}
.flow-switch-copy strong{font-size:clamp(18px,1.6vw,23px);letter-spacing:-.045em;line-height:1.18}
.flow-switch-copy small{font-size:13px;line-height:1.55;color:var(--ink-soft);max-width:290px}
.flow-switch-arrow{color:var(--ink-soft);font-size:19px;opacity:.55;transition:transform .3s,color .3s,opacity .3s}
.flow-switch.is-active .flow-switch-arrow,.flow-switch:hover .flow-switch-arrow{opacity:1;color:#f44463;transform:translate(3px,-3px)}
.flow-switch.is-active .flow-switch-number{color:#f44463}
.flow-switch:hover{background:rgba(244,68,99,.025)}
.flow-switch:focus-visible{outline:2px solid #f44463;outline-offset:3px;border-radius:5px}
.flow-note{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5;color:var(--ink-soft);margin-top:24px}
.flow-note-symbol{color:#f44463;font-size:22px}
.flow-stage{position:relative;isolation:isolate;min-width:0;overflow:hidden;border:1px solid #603144;border-radius:25px;background:radial-gradient(ellipse at 62% 24%,rgba(145,32,64,.32),transparent 50%),linear-gradient(143deg,#171116,#0b0b0e 75%);color:#fff;box-shadow:0 32px 80px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.07);padding:26px 27px 23px;display:flex;flex-direction:column;justify-content:space-between;min-height:540px}
.flow-stage::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.25;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(160deg,#000 0%,transparent 75%)}
.flow-stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:21px;border-bottom:1px solid rgba(255,255,255,.11)}
.flow-window-mark{display:flex;align-items:center;gap:11px;color:#a99ca7;font-size:11px;white-space:nowrap}
.flow-window-mark strong{letter-spacing:.14em;color:#f4eaef;font-size:10px}
.flow-window-logo{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#a82140;color:#fff;font-size:21px}
.flow-window-divider{height:16px;width:1px;background:#62515c}
.flow-live{display:flex;gap:7px;align-items:center;color:#e9b5c2;border:1px solid #533340;background:#25171e;padding:9px 11px;border-radius:30px;white-space:nowrap;font-size:9px;letter-spacing:.08em;font-weight:800}
.flow-live span{width:6px;height:6px;border-radius:50%;background:#fb5271;box-shadow:0 0 13px #f34a6f;animation:flowLight 2.5s ease-in-out infinite}
.flow-stage-intro{position:relative;z-index:1;padding:23px 1px 22px;max-width:450px}
.flow-stage-eyebrow{font-size:10px;letter-spacing:.2em;font-weight:850;color:#ff6883}
.flow-stage-intro h3{font-size:clamp(25px,2.8vw,38px);line-height:1.12;letter-spacing:-.055em;margin:13px 0 10px;color:#fff}
.flow-stage-intro p{font-size:13px;line-height:1.72;color:#b8aeb7;margin:0;max-width:385px}
.flow-pipeline{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr);align-items:center;gap:0;position:relative;margin:8px 0 24px;min-width:0}
.flow-node{position:relative;z-index:1;border-radius:13px;border:1px solid #57414d;background:linear-gradient(165deg,rgba(57,36,48,.96),rgba(25,22,28,.96));min-width:0;min-height:164px;display:flex;flex-direction:column;align-items:flex-start;padding:14px 12px;box-shadow:0 10px 24px #0004;transition:border-color .4s,box-shadow .4s,transform .4s}
.flow-stage[data-flow-stage="capture"] .flow-node-start,.flow-stage[data-flow-stage="automate"] .flow-node-middle,.flow-stage[data-flow-stage="measure"] .flow-node-end{border-color:#e84766;box-shadow:0 0 0 1px #f14d6c30,0 18px 35px #0006,0 0 25px #e52b4c1b;transform:translateY(-4px)}
.flow-node-id{font-size:9px;letter-spacing:.13em;color:#ff8aa0;font-weight:800;margin-bottom:17px}
.flow-node-icon{display:grid;place-items:center;width:31px;height:31px;background:#772c44;border:1px solid #8f3950;color:#ffd6df;border-radius:9px;font-size:17px;margin-bottom:13px}
.flow-node strong{font-size:12px;line-height:1.3;color:#fff;margin-bottom:5px;overflow-wrap:anywhere}
.flow-node small{font-size:10px;color:#b8a5af;line-height:1.4;overflow-wrap:anywhere}
.flow-link{position:relative;height:1px;background:#bc415d;box-shadow:0 0 8px #bb3158;overflow:visible}
.flow-link::after{content:"";position:absolute;width:6px;height:6px;right:-1px;top:-2.5px;border-top:1px solid #fa6382;border-right:1px solid #fa6382;transform:rotate(45deg)}
.flow-link-trace{position:absolute;left:-2px;top:-2px;width:6px;height:5px;background:#ffc1cf;border-radius:40px;box-shadow:0 0 14px #ff466c;animation:flowTrace 2.6s ease-in-out infinite}
.flow-stage-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #4c3640;padding-top:19px;position:relative;z-index:1}
.flow-insight{display:flex;align-items:center;gap:12px;min-width:0}
.flow-insight-icon{width:42px;height:42px;display:grid;place-items:center;color:#ff7f97;background:rgba(214,51,86,.15);border:1px solid #6d3344;border-radius:12px;font-size:22px;flex:0 0 auto}
.flow-insight span:last-child{display:grid;gap:4px;min-width:0}
.flow-insight strong{font-size:12px;color:#f6eff2}
.flow-insight small{font-size:10px;color:#a99aa5;line-height:1.45}
.flow-stage-badge{display:grid;gap:4px;text-align:right;white-space:nowrap}
.flow-stage-badge>span{font-size:28px;color:#ff6b86;font-weight:850;letter-spacing:-.06em;line-height:1}
.flow-stage-badge small{font-size:8px;letter-spacing:.08em;color:#9d8d98}
.flow-stage-glare{position:absolute;pointer-events:none;width:320px;height:320px;right:-180px;bottom:-210px;border-radius:50%;background:#d6284b;filter:blur(85px);opacity:.17;z-index:-1}
.flow-stage.is-changing .flow-pipeline,.flow-stage.is-changing .flow-stage-intro,.flow-stage.is-changing .flow-stage-bottom{animation:flowStageIn .42s ease both}
@keyframes flowStageIn{from{opacity:.42;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes flowTrace{0%{left:-2px;opacity:0}22%{opacity:1}85%{opacity:1}100%{left:calc(100% - 1px);opacity:0}}
@keyframes flowLight{50%{opacity:.45;box-shadow:0 0 3px #f34a6f}}
/* Elegant independently rotating orbital rings, breathing nucleus and lightweight drifting labels */
.dark-feature-graphic[data-orbit-scene]{isolation:isolate;perspective:900px}
.dark-feature-graphic[data-orbit-scene]::before{content:"";position:absolute;width:min(410px,86%);height:320px;border-radius:50%;background:radial-gradient(circle,rgba(226,44,84,.19),transparent 65%);pointer-events:none;filter:blur(24px);animation:orbitAura 7s ease-in-out infinite alternate;z-index:0}
.dark-feature-graphic[data-orbit-scene] .orbit-ring{will-change:transform;transform-origin:center;box-shadow:0 0 0 1px rgba(236,49,81,.02)}
.dark-feature-graphic[data-orbit-scene] .orbit-ring-one{animation:orbitTurn 27s linear infinite}
.dark-feature-graphic[data-orbit-scene] .orbit-ring-two{animation:orbitTurnReverse 40s linear infinite}
.dark-feature-graphic[data-orbit-scene] .orbit-ring-one::after,.dark-feature-graphic[data-orbit-scene] .orbit-ring-two::after{content:"";display:block;position:absolute;width:10px;height:10px;border-radius:50%;background:#f74d6c;box-shadow:0 0 0 4px #f74d6c1f,0 0 22px #fd456c;top:50%;right:-5px;transform:translateY(-50%)}
.dark-feature-graphic[data-orbit-scene] .orbit-ring-two::after{background:#f7b2c1;box-shadow:0 0 20px #ff5a7f;width:7px;height:7px;right:-4px}
.dark-feature-graphic[data-orbit-scene] .orbit-core{will-change:transform;animation:orbitCoreBreathe 6s ease-in-out infinite;z-index:2}
.dark-feature-graphic[data-orbit-scene] .orbit-chip{will-change:transform;animation:orbitChipFloat 5.6s ease-in-out infinite;z-index:3}
.dark-feature-graphic[data-orbit-scene] .chip-two{animation-delay:-1.7s}.dark-feature-graphic[data-orbit-scene] .chip-three{animation-delay:-3.4s}
@keyframes orbitTurn{to{transform:rotate(360deg)}}
@keyframes orbitTurnReverse{to{transform:rotate(-360deg)}}
@keyframes orbitCoreBreathe{0%,100%{transform:translateY(0) rotate(-11deg) scale(1);box-shadow:0 0 80px #f1285042}50%{transform:translateY(-14px) rotate(-6deg) scale(1.04);box-shadow:0 0 125px #ff345d85}}
@keyframes orbitChipFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}
@keyframes orbitAura{from{opacity:.45;transform:scale(.9)}to{opacity:1;transform:scale(1.08)}}
/* Do not spend CPU animating the orbital scene when outside the viewport. */
.js-enhanced .dark-feature-graphic[data-orbit-scene]:not(.orbit-is-visible) .orbit-ring,.js-enhanced .dark-feature-graphic[data-orbit-scene]:not(.orbit-is-visible) .orbit-core,.js-enhanced .dark-feature-graphic[data-orbit-scene]:not(.orbit-is-visible) .orbit-chip{animation-play-state:paused}
/* Browser-friendly responsive behavior. */
@media(max-width:1060px){.flow-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px}.flow-stage{padding:20px;min-height:510px}.flow-pipeline{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr) 14px minmax(0,1fr)}.flow-node{padding:12px 9px}.flow-node strong{font-size:11px}}
@media(max-width:850px){.flow-heading{align-items:flex-start;flex-direction:column;gap:17px}.flow-heading>p{max-width:680px}.flow-layout{grid-template-columns:1fr;gap:20px;margin-top:28px}.flow-control{padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.flow-overline,.flow-note{grid-column:1/-1}.flow-overline{margin:0 0 3px}.flow-note{margin-top:4px}.flow-switch,.flow-switch:last-of-type{border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;padding:18px;gap:12px}.flow-switch.is-active{border-color:#a82b45;background:rgba(225,44,77,.05)}.flow-switch::before{height:3px;top:-1px;border-radius:3px}.flow-switch-number{padding:0}.flow-switch-copy strong{font-size:18px}.flow-switch-copy small{font-size:12px}.flow-switch-arrow{display:none}.flow-stage{min-height:455px}.flow-pipeline{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 26px minmax(0,1fr)}.flow-node{padding:14px}}
@media(max-width:590px){.flow-heading h2{font-size:clamp(39px,9vw,52px)}.flow-control{grid-template-columns:1fr;gap:0}.flow-switch,.flow-switch:last-of-type{display:grid;grid-template-columns:26px 1fr;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 4px}.flow-switch:last-of-type{border-bottom:1px solid var(--line)}.flow-switch.is-active{background:transparent}.flow-switch-number{font-size:11px}.flow-switch-copy{gap:4px}.flow-switch-copy strong{font-size:17px}.flow-switch-copy small{font-size:12px;max-width:none}.flow-overline{margin-bottom:5px}.flow-stage{min-height:0;border-radius:18px;padding:17px 15px 19px}.flow-stage-top{padding-bottom:14px}.flow-window-mark{gap:6px;font-size:10px}.flow-window-mark strong{font-size:9px}.flow-window-divider{display:none}.flow-window-logo{width:27px;height:27px;font-size:18px}.flow-live{padding:8px;font-size:8px}.flow-stage-intro{padding:18px 0}.flow-stage-intro h3{font-size:28px}.flow-pipeline{grid-template-columns:1fr;gap:8px;margin:7px 0 19px}.flow-link{width:1px;height:14px;justify-self:center;background:#bc415d}.flow-link::after{top:auto;right:-2.5px;bottom:-1px;transform:rotate(135deg)}.flow-link-trace{height:6px;width:5px;top:-2px;left:-2px;animation:flowTraceVertical 2.1s ease-in-out infinite}.flow-node{min-height:0;display:grid;grid-template-columns:30px 1fr;gap:2px 10px;padding:11px 13px}.flow-node-id{grid-column:1/-1;margin:0 0 3px}.flow-node-icon{grid-row:2/4;margin:0;width:29px;height:29px}.flow-node strong{font-size:12px;align-self:end}.flow-node small{font-size:10px}.flow-stage-bottom{gap:12px;padding-top:14px}.flow-insight-icon{width:34px;height:34px;font-size:17px}.flow-insight strong{font-size:11px}.flow-insight small{font-size:9px}.flow-stage-badge>span{font-size:24px}.flow-stage-badge small{font-size:7px}.dark-feature-graphic[data-orbit-scene]::before{width:100%;height:250px}}
@keyframes flowTraceVertical{0%{top:-2px;opacity:0}30%{opacity:1}100%{top:11px;opacity:0}}
@media(max-width:360px){.flow-stage-top{flex-wrap:wrap}.flow-live{margin-left:auto}.flow-stage-intro h3{font-size:25px}.flow-insight small{max-width:175px}.flow-node-id{font-size:8px}}
@media(prefers-reduced-motion:reduce){.flow-live span,.flow-link-trace,.flow-stage.is-changing .flow-pipeline,.flow-stage.is-changing .flow-stage-intro,.flow-stage.is-changing .flow-stage-bottom,.dark-feature-graphic[data-orbit-scene]::before,.dark-feature-graphic[data-orbit-scene] .orbit-ring,.dark-feature-graphic[data-orbit-scene] .orbit-core,.dark-feature-graphic[data-orbit-scene] .orbit-chip{animation:none!important;transition:none!important}.dark-feature-graphic[data-orbit-scene] .orbit-core{transform:rotate(-11deg)}.flow-stage[data-flow-stage] .flow-node{transform:none}}
