/* Four native scenes are the baseline. The story controller opts into the pinned canvas. */
.flow-story{--flow-background:#edf2f6;--flow-action-gap:clamp(278px,20.5vw,358px);position:relative;display:block;isolation:isolate;padding:0 0 60px;background:var(--flow-background);color:var(--ink);font-family:var(--font);overflow:hidden}
.flow-story .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.flow-story .flow-panels{position:relative}
.flow-story .flow-scene{position:relative;display:block;padding:64px 0 0;scroll-margin-top:24px;overflow:hidden}
.flow-story .flow-scene+.flow-scene{border-top:1px solid #d6dfe5}
.flow-story .flow-copy{position:relative;z-index:2;max-width:620px;margin:0 var(--gutter)}
.flow-story .flow-kicker{display:flex;align-items:center;gap:9px;margin:0 0 24px;color:#7b848d;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:.045em;text-transform:uppercase}
.flow-story .flow-kicker>span:first-child{color:var(--orange)}
.flow-story .flow-kicker>span:nth-child(2){color:#8d959d}
.flow-story .flow-heading{margin:0;color:var(--ink);font-size:clamp(44px,4.4vw,70px);font-weight:600;line-height:1.03;letter-spacing:-.055em}
.flow-story .flow-line{display:block;overflow:clip;padding-bottom:.13em;margin-bottom:-.13em}
.flow-story .flow-line>span{display:block;transform-origin:left bottom}
.flow-story .flow-description{max-width:350px;margin:24px 0 0;color:#757f88;font-size:clamp(17px,1.26vw,20px);font-weight:400;line-height:1.45;letter-spacing:-.025em}
.flow-story .flow-copy>small{display:block;margin-top:24px;color:#7e8993;font-size:13px;line-height:1.4;letter-spacing:-.015em}
.flow-story .flow-art{position:relative;width:100%;aspect-ratio:1586/992;margin-top:12px;isolation:isolate}
.flow-story .flow-art>img{display:block;width:100%;height:100%;object-fit:cover}
.flow-story .flow-leader{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}
.flow-story .flow-leader path{stroke:var(--orange);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.flow-story .flow-dot{fill:var(--orange);stroke:#fff;stroke-width:2}
.flow-story .flow-label{position:absolute;left:var(--label-x);top:var(--label-y);z-index:2;display:block;color:var(--ink);font-size:clamp(12px,1.22vw,20px);font-weight:500;line-height:1.2;letter-spacing:-.025em;white-space:nowrap;pointer-events:none}
.flow-story .flow-action{position:relative;z-index:5;display:inline-flex;max-width:calc(100% - var(--gutter)*2);min-height:54px;margin:26px var(--gutter) 0;padding:17px 24px;gap:24px;font-size:16px;line-height:1.3}
.flow-story .flow-overview{position:relative;z-index:4;width:min(420px,calc(100% - var(--gutter)*2));margin:42px var(--gutter) 0 auto}
.flow-story .flow-overview-map{position:relative;aspect-ratio:1000/416}
.flow-story .flow-overview-map>img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #17222d12)}
.flow-story .flow-focus{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.flow-story .flow-focus rect{stroke:var(--orange);stroke-width:1.5}
.flow-story .flow-overview figcaption{margin-top:8px;color:#7e8993;font-size:12px;line-height:1.4;letter-spacing:-.01em}
.flow-story .flow-navigation{position:relative;z-index:6;margin:48px var(--gutter) 0;padding:0 0 22px}
.flow-story .flow-navigation .flow-stages{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;margin:0;padding:0;isolation:auto;font-size:16px;font-weight:500;line-height:1.3;letter-spacing:-.025em}
.flow-story .flow-navigation .flow-stages li{display:block;position:relative;flex:0 1 auto;min-width:0;padding:0;color:#7f8992}
.flow-story .flow-navigation .flow-stages li::after{display:none!important}
.flow-story .flow-navigation .flow-stages a{display:block;position:relative;padding:10px 0;color:inherit}
.flow-story .flow-navigation .flow-stages a[aria-current],.flow-story .flow-navigation .flow-stages .is-current,.flow-story .flow-navigation .flow-stages .is-complete{color:var(--ink)}
.flow-story .flow-navigation .flow-stages a:hover{color:var(--orange)}
.flow-story .flow-navigation .flow-rail{position:absolute;left:0;right:0;bottom:2px;height:1px;background:#cbd2d7;pointer-events:none}
.flow-story .flow-navigation .flow-rail::before{content:"";position:absolute;inset:0;background:var(--orange);transform:scaleX(var(--route-progress,0));transform-origin:left}
.flow-story .flow-navigation .flow-shuttle{position:absolute;left:0;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 5px #f4511e14}

/* Only the controller adds this class, after it has prepared all four scenes. */
.flow-story.is-flow-cinematic{height:calc(100svh - 110px);min-height:650px;padding:0;overflow:hidden}
.flow-story.is-flow-cinematic .flow-panels{position:absolute;inset:0}
.flow-story.is-flow-cinematic .flow-scene{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;opacity:0}
.flow-story.is-flow-cinematic .flow-scene:first-child{opacity:1}
.flow-story.is-flow-cinematic .flow-art{position:absolute;left:0;top:50%;width:100%;margin:0;translate:0 -50%;aspect-ratio:1586/992}
.flow-story.is-flow-cinematic .flow-copy{position:absolute;left:3.8%;top:15.5%;width:28%;max-width:none;margin:0}
.flow-story.is-flow-cinematic .flow-kicker{font-size:clamp(12px,1.05vw,17px)}
.flow-story.is-flow-cinematic .flow-description{max-width:22vw;min-height:2.9em;font-size:clamp(16px,1.26vw,20px)}
.flow-story.is-flow-cinematic .flow-art>img{mask-image:linear-gradient(to bottom,#000 80%,transparent 94%)}
.flow-story.is-flow-cinematic .flow-action{position:absolute;left:3.8%;top:calc(15.5% + var(--flow-action-gap));width:auto;max-width:28%;min-height:64px;margin:0;padding:20px 24px;font-size:clamp(13px,1.05vw,16px);font-weight:500;gap:24px}
.flow-story.is-flow-cinematic .flow-overview{position:absolute;right:3.5%;bottom:16%;width:28%;margin:0}
.flow-story.is-flow-cinematic .flow-navigation{position:absolute;left:10%;right:10%;bottom:7%;margin:0;padding-bottom:20px}
.flow-story:not(.is-flow-cinematic) .flow-focus{display:none}
@media(min-width:1100px) and (min-aspect-ratio:21/10){
  .flow-story.is-flow-cinematic .flow-art{left:auto;right:0;width:calc((100svh - 110px)*1.7)}
  .flow-story.is-flow-cinematic .flow-art>img{mask-image:linear-gradient(to right,transparent,#000 6%),linear-gradient(to bottom,#000 80%,transparent 94%);mask-composite:intersect}
  .flow-story.is-flow-cinematic .flow-overview{max-width:440px}
}
@media(min-width:901px) and (max-width:1099px){
  .flow-story.is-flow-cinematic .flow-art{left:5%}
  .flow-story.is-flow-cinematic .flow-art>img{mask-image:linear-gradient(to right,transparent,#000 6%),linear-gradient(to bottom,transparent,#000 8%,#000 80%,transparent 94%);mask-composite:intersect}
  .flow-story.is-flow-cinematic .flow-copy{width:29%}
  .flow-story.is-flow-cinematic .flow-heading{font-size:clamp(40px,4.4vw,48px)}
  .flow-story.is-flow-cinematic .flow-description{font-size:16px}
  .flow-story.is-flow-cinematic .flow-action{max-width:30%;padding:16px 20px;gap:16px;min-height:56px}
}

@media(min-width:901px){
  .flow-story:not(.is-flow-cinematic) .flow-scene{min-height:690px;padding:0}
  .flow-story:not(.is-flow-cinematic) .flow-copy{position:absolute;left:3.8%;top:11%;width:28%;max-width:none;margin:0}
  .flow-story:not(.is-flow-cinematic) .flow-art{margin:0}
  .flow-story:not(.is-flow-cinematic) .flow-heading{font-size:clamp(40px,4.4vw,70px)}
  .flow-story:not(.is-flow-cinematic) .flow-description{max-width:22vw;font-size:clamp(16px,1.26vw,20px)}
}
@media(max-width:900px){
  .flow-story .flow-scene{padding-top:56px}
  .flow-story .flow-copy{max-width:540px}
  .flow-story .flow-description{max-width:470px}
  .flow-story .flow-art{width:125%;max-width:none;margin-left:-25%;margin-top:22px}
  .flow-story .flow-label{font-size:clamp(12px,1.5vw,15px)}
  .flow-story .flow-label--right{transform:translateX(-100%);text-align:right}
}
@media(max-width:600px){
  .flow-story{padding-bottom:44px}
  .flow-story .flow-scene{padding-top:44px}
  .flow-story .flow-kicker{font-size:12px;margin-bottom:20px}
  .flow-story .flow-heading{font-size:clamp(40px,11.8vw,58px)}
  .flow-story .flow-description{font-size:17px;max-width:360px;margin-top:22px}
  .flow-story .flow-copy>small{margin-top:20px;font-size:12px}
  .flow-story .flow-art{width:140%;margin-left:-40%;margin-top:24px}
  .flow-story .flow-label{font-size:clamp(11px,2.75vw,13px);max-width:30%;line-height:1.2}
  .flow-story .flow-action{display:flex;justify-content:space-between;max-width:none;min-height:56px;margin-top:24px;padding-inline:20px;font-size:15px}
  .flow-story .flow-overview{width:calc(100% - var(--gutter)*2);max-width:360px;margin:36px auto 0}
  .flow-story .flow-navigation{margin-top:32px}
  .flow-story .flow-navigation .flow-stages{gap:10px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  .flow-story .flow-line>span,.flow-story .flow-copy,.flow-story .flow-art,.flow-story .flow-leader path,.flow-story .flow-dot,.flow-story .flow-label{animation:none!important;transition:none!important}
}
@media print{
  .flow-story{overflow:visible;background:white;padding-bottom:24px}
  .flow-story.is-flow-cinematic{height:auto;min-height:0;overflow:visible}
  .flow-story.is-flow-cinematic .flow-panels{position:relative;inset:auto}
  .flow-story .flow-scene,.flow-story.is-flow-cinematic .flow-scene{position:relative;inset:auto;height:auto;min-height:0;padding:24px 0;opacity:1!important;visibility:visible!important;transform:none!important;break-inside:avoid;page-break-inside:avoid}
  .flow-story .flow-copy,.flow-story.is-flow-cinematic .flow-copy{position:relative;left:auto;top:auto;width:auto;max-width:620px;margin:0 24px;opacity:1!important;transform:none!important}
  .flow-story .flow-art,.flow-story.is-flow-cinematic .flow-art{position:relative;left:auto;top:auto;width:100%;margin:0;translate:none;opacity:1!important;transform:none!important}
  .flow-story .flow-line>span,.flow-story .flow-kicker,.flow-story .flow-description,.flow-story .flow-copy>small,.flow-story .flow-label,.flow-story .flow-leader path,.flow-story .flow-dot{opacity:1!important;transform:none!important;stroke-dashoffset:0!important}
  .flow-story .flow-navigation,.flow-story .flow-action,.flow-story .flow-focus{display:none!important}
}
