/* Relacion's shared photographic-hero and workflow connector treatment.
   Scope: established hero/sequence components. workflow-sequence.js owns step timing. */
:root{--relacion-motion-ease:cubic-bezier(.42,0,.58,1);--relacion-hero-duration:16s;--relacion-hero-scale:1.10;--relacion-hero-lead:-3s;--relacion-flow-duration:.65s;--relacion-flow-ink:#6cc4af;--relacion-flow-line:#9cbbad40;--relacion-flow-arrow:#8fb6a3}

.q-hero-image img,.hero-slide img,.s-hero-visual img{
 animation:relacion-hero-depth var(--relacion-hero-duration) var(--relacion-motion-ease) var(--relacion-hero-lead) infinite alternate!important;
 transform-origin:50% 50%!important;
}
@keyframes relacion-hero-depth{from{transform:scale(var(--relacion-hero-scale))}to{transform:scale(1)}}
.hero-slide:not(.active):not(.leaving) img,
[data-relacion-hero-paused="true"],
html[data-relacion-motion-hidden="true"] :is(.q-hero-image,.hero-slide,.s-hero-visual) img,
body:is(.q-is-paused,.tw-paused,.sd-no-motion,.no-motion,.q-film-playing,.tw-film-open) :is(.q-hero-image,.hero-slide,.s-hero-visual) img{animation-play-state:paused!important}

.q-sequence .q-connection{position:relative;isolation:isolate;overflow:visible;background:#7a9d8b80;height:2px;transition:background-color .2s}
.q-sequence .q-connection>svg{position:absolute;display:block;opacity:1;width:16px;height:12px;right:-4px;top:-5px;bottom:auto;transform:none;color:#a2c3b0;transition:color .2s}
.q-sequence[data-phase] .q-connection>span{position:absolute;left:0;top:0;width:100%;height:2px;opacity:0;transform:scaleX(0);transform-origin:left center;background:linear-gradient(90deg,#75b89a,#d2f4df);filter:none;box-shadow:0 0 5px #a3d6bb55;animation:none!important}
.q-sequence[data-phase] .q-connection[data-flow-state="active"]>span{opacity:1;animation:relacion-flow-x var(--relacion-flow-duration) cubic-bezier(.4,0,.2,1) both!important}
.q-sequence .q-connection[data-flow-state="active"]>svg{color:#e2f7e9}
.q-sequence .q-connection[data-flow-state="complete"]{background:#83b79c}
.q-sequence .q-connection[data-flow-state="complete"]>svg{color:#b2ddc2}
@keyframes relacion-flow-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* On tablets the last card is below the conversation: keep the handoff visible. */
@media(min-width:601px) and (max-width:900px){
 .q-sequence .q-connection-two{--relacion-flow-direction:vertical;display:block;grid-column:3;justify-self:center}
}
/* Follow each template's real horizontal/stacked layout breakpoints. */
@media(max-width:700px){
 .ar-journey .q-connection{--relacion-flow-direction:vertical}
}
@media(max-width:600px){
 .q-sequence .q-connection{--relacion-flow-direction:vertical}
}
.q-sequence .q-connection[data-relacion-flow-direction="vertical"]{display:block;width:2px;height:28px;flex:0 0 28px;align-self:center;margin:4px 0}
.q-sequence .q-connection[data-relacion-flow-direction="vertical"]>svg{right:-7px;top:auto;bottom:-4px;transform:rotate(90deg)}
.q-sequence[data-phase] .q-connection[data-relacion-flow-direction="vertical"]>span{width:2px;height:100%;left:0;top:0;transform:scaleY(0);transform-origin:center top;background:linear-gradient(0deg,#d2f4df,#75b89a)}
.q-sequence[data-phase] .q-connection[data-flow-state="active"][data-relacion-flow-direction="vertical"]>span{animation-name:relacion-flow-y!important}
@keyframes relacion-flow-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}

.q-sequence[data-phase] .q-connection[data-relacion-connector-paused="true"]>span,
html[data-relacion-motion-hidden="true"] .q-sequence[data-phase] .q-connection>span,
body:is(.q-is-paused,.tw-paused,.sd-no-motion,.no-motion,.q-film-playing,.tw-film-open) .q-sequence[data-phase] .q-connection>span{animation-play-state:paused!important}

@media(prefers-reduced-motion:reduce){
 .q-hero-image img,.hero-slide img,.s-hero-visual img{animation:none!important;transform:none!important}
 .q-sequence[data-phase] .q-connection>span,.q-sequence[data-phase] .q-connection[data-relacion-flow-direction]>span{animation:none!important;opacity:0}
}

.q-sequence :is(.q-phone,.tw-phone,.q-owner-card,.tw-result){transform:none!important}

/* Calm transitions follow the same easing without changing typing or status indicators. */
.q-hero-image{animation-duration:1.8s!important;animation-timing-function:var(--relacion-motion-ease)!important}
.q-hero-copy :is(h1>span,h1>em),.q-hero-copy>p,.q-hero-actions{animation-duration:1.2s!important;animation-timing-function:var(--relacion-motion-ease)!important}
.q-sequence :is(.q-quote-card,.q-owner-card,.q-phone,.tw-phone,.tw-result,.ar-report-sheet,.ar-outcome){transition-timing-function:var(--relacion-motion-ease)!important}
:is(a.button,button.button,.q-step-buttons>button,.ar-scenario>button,.ar-standard summary>svg){transition-timing-function:var(--relacion-motion-ease)!important;transition-duration:.35s!important}
.hero-slide{transition-duration:2.4s!important;transition-timing-function:var(--relacion-motion-ease)!important}
@media(prefers-reduced-motion:reduce){.q-hero-image,.q-hero-copy :is(h1>span,h1>em),.q-hero-copy>p,.q-hero-actions{animation:none!important}.q-sequence *,.hero-slide,:is(a.button,button.button,.q-step-buttons>button,.ar-scenario>button,.ar-standard summary>svg){transition:none!important}}

/* A destination becomes legible only after its incoming transfer completes. */
.q-sequence[data-flow-arrived="false"][data-phase="1"] :is(.q-outgoing,.ar-report-sheet),
.q-sequence[data-flow-arrived="false"][data-phase="3"] :is(.q-owner-card,.tw-result,.ar-outcome){opacity:.16!important}
.q-sequence :is(.q-outgoing,.q-reply,.q-stopped,.tw-attachment,.q-owner-card,.tw-result,.ar-report-sheet,.ar-outcome){transition-property:opacity!important;transition-duration:.25s!important;transform:none!important}
.q-sequence .q-step-buttons button[data-flow-complete="true"]>span:first-child{color:#a3d3b7}
.ar-report-checks>[data-flow-checked]{transition:opacity .2s}
.ar-report-checks>[data-flow-checked="false"]{opacity:.35}
.ar-report-checks>[data-flow-checked="true"]{opacity:1}
.q-sequence[data-phase][data-flow-paused="true"] .q-connection>span{animation-play-state:paused!important}

@media(prefers-reduced-motion:reduce){.q-sequence[data-phase] .q-connection[data-flow-state][data-relacion-flow-direction]>span{animation:none!important;opacity:0!important}}
