/* 3.7 — editorial refinement of the existing role environments.
   This layer owns the role lens, paths, process and reading scale. */
:root{--role-index:0;--reading-body:1.125rem;--reading-small:.9375rem}
html[data-role=integrator]{--role-index:1}
html[data-role=agent]{--role-index:2}

/* One continuous optical lens; the island membrane remains in ::before. */
.role-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:340px;gap:0;isolation:isolate}
.role-switch:after{content:"";position:absolute;z-index:-1;inset:6px auto 6px 6px;width:calc((100% - 12px)/3);border-radius:999px;border:1px solid #ffffff55;background:linear-gradient(145deg,#ffffff28,#ffffff09 48%,#ffffff16);box-shadow:inset 0 1px 0 #ffffff63,inset 0 -1px 0 #0003,0 3px 10px #0003;transform:translateX(calc(var(--role-index)*100%));transition:transform 440ms var(--ease),background-color 240ms var(--ease);pointer-events:none}
.role-switch button{position:relative;width:100%;min-width:0;padding-inline:10px;white-space:nowrap;font-weight:500}
.role-switch button[aria-pressed=true]{color:var(--text);background:transparent;border-color:transparent;box-shadow:none}
.role-switch button:hover{background:#ffffff0b}
.role-switch button:active{background:#ffffff19}

/* A shared reading scale; the accepted hero and photographic masks stay intact. */
.path-scene-copy>p,.path-step-copy p,.capability-list p,.prepare-list p,.terms-list p,.terms-value>p:last-child{font-size:var(--reading-body);line-height:1.55}
.section-heading h2{letter-spacing:-.025em}
.capability-note,.prepare-note{font-size:1rem;line-height:1.55}

/* Two equal routes: each photo has its own edge, the explanation stays open. */
.relation-pair{gap:40px}
.path-scene{background:transparent;border-radius:0;overflow:visible;align-content:start;grid-template-rows:auto}
.path-scene-copy{display:grid;grid-template-rows:auto auto 1fr auto;gap:20px;padding:0;text-align:start;align-items:start}
.path-scene-copy h3{justify-content:flex-start;font-size:1.875rem;line-height:1.22;gap:12px}
.path-scene-copy>p{max-width:56ch;justify-self:start}
.path-scene-copy .path-icon{width:30px;height:30px}
.path-action{justify-self:start;align-self:end;font-size:1rem;min-height:48px;padding:11px 18px}
.relationship-flow{align-self:center;min-height:118px;padding-block:8px}
.relationship-flow>li{padding-top:30px}
.relationship-flow>li:before{width:14px;height:14px;top:5px;background:var(--bg)}
.relationship-flow>li:not(:last-child):after{top:12px}
.relationship-flow strong{font-size:1rem;line-height:1.4}
.relationship-flow span{font-size:var(--reading-small);line-height:1.45;max-width:18ch}
.collaboration-flow{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);min-height:140px;gap:16px;padding-block:8px}
.collab-business{gap:12px}
.collab-business .icon{width:36px;height:36px}
.collab-business strong{font-size:1rem;line-height:1.4}
.collab-streams{gap:20px}
.collab-streams p{font-size:var(--reading-small);line-height:1.4;gap:10px}
.collab-arrow{height:2px;opacity:.9;overflow:visible}
.collab-arrow:after{width:7px;height:7px;top:-3px;border-width:2px}
.collab-arrow:before{content:"";position:absolute;inset:-2px auto -2px 0;width:20%;border-radius:2px;background:var(--text);opacity:0;transform:translateX(0)}
.is-flow-active .collab-arrow:before{animation:recommendation-pass 1050ms var(--ease) 1}
.is-flow-active .is-return:before{animation-delay:260ms}
@keyframes recommendation-pass{0%{opacity:0;transform:translateX(0)}20%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(400%)}}

/* The process is a visible path, with distinct semantic icons at every stop. */
.process-toolbar{padding-bottom:36px}
.step-path{gap:32px}
.step-path>li:not(:last-child):after{right:-32px;transform-origin:left center}
.path-number{width:48px;height:48px;font-size:1.375rem;margin-bottom:26px}
.step-icon{display:block;width:30px;height:30px;color:var(--accent);margin-bottom:16px}
.path-step-copy h3{font-size:1.5rem;line-height:1.25;margin-bottom:12px;max-width:20ch}
.path-step-copy p{max-width:35ch}
.is-path-active>li:not(:last-child):after{animation:path-connect 760ms var(--ease) 1 both}
.is-path-active>li:nth-child(2):after{animation-delay:120ms}
.is-path-active>li:nth-child(3):after{animation-delay:240ms}
@keyframes path-connect{from{transform:scaleX(.16);opacity:.25}to{transform:scaleX(1);opacity:.65}}

/* Explanations and form fine print have a readable, deliberate lower level. */
.terms-value.glass{padding:30px;background:rgb(var(--role-rgb)/.72)}
.big-value{font-size:6.5rem;line-height:1;letter-spacing:-.04em;height:auto;margin-top:20px}
.big-value.value-word{font-size:clamp(2.25rem,3.2vw,3.25rem);letter-spacing:-.025em}
.terms-value h3{font-size:1.5rem;line-height:1.25;min-height:0;margin-block:16px 14px}
.allocation{height:auto;min-height:154px}
.allocation-source{font-size:1rem}
.allocation-branches li{font-size:.9375rem}
.allocation-branches span{font-size:.875rem;line-height:1.5}
.terms-list h3{font-size:1.5rem;line-height:1.25}
.terms-list article{padding-block:24px}
.field label{font-size:1rem}
.field input{font-size:1.125rem}
.consent{font-size:.875rem;line-height:1.6;min-height:44px;align-items:flex-start}
.consent input{margin-top:3px;flex-shrink:0}
.form-note{font-size:.875rem;line-height:1.55;height:auto;min-height:0}
.field-error,.form-notice{font-size:.875rem;line-height:1.5}
.footer-layout>div a{display:inline-flex;align-items:center;min-height:44px;font-size:.9375rem}
.apply-panel>[data-roles]{display:flex;flex-direction:column;justify-content:flex-end}
.apply-panel .section-heading{display:flex;flex-direction:column;justify-content:flex-end;gap:0;margin-bottom:26px}
.apply-panel .section-heading>p{margin-top:18px}

@media(min-width:768px) and (max-width:1199px){
 .role-switch{width:310px}.role-switch button{font-size:.875rem;padding-inline:6px}
 .relation-pair{gap:28px}.path-scene-copy h3{font-size:1.625rem}
 .step-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 32px}
 .step-path>li:nth-child(2):after{display:none}
 .path-step-copy h3{max-width:26ch}
 .collaboration-flow{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr)}
 .collab-business strong,.relationship-flow strong{font-size:.9375rem}
 .collab-streams p,.relationship-flow span{font-size:.875rem}
}
@media(max-width:767px){
 :root{--reading-body:1.0625rem;--reading-small:.875rem}
 .header-shell>.role-switch{width:calc(276px - 36px*var(--join));padding:3px;gap:0}
 .role-switch:after{inset:3px auto 3px 3px;width:calc((100% - 6px)/3)}
 .role-switch button{font-size:calc(13px - var(--split)*1px);padding:10px 3px}
 .paths .section-heading{display:flex;flex-direction:column;justify-content:flex-end;gap:0;margin-bottom:28px}
 .relation-pair{gap:40px}
 .path-scene-copy{gap:18px;padding-top:0}
 .path-scene-copy h3{font-size:1.625rem}
 .path-action{font-size:.9375rem;min-height:48px}
 .relationship-flow{min-height:116px;padding-block:6px}
 .relationship-flow strong{font-size:.9375rem}
 .relationship-flow span{font-size:.875rem}
 .collaboration-flow{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:10px;min-height:150px}
 .collab-business .icon{width:32px;height:32px}
 .collab-business strong{font-size:.875rem}
 .collab-streams p{font-size:.875rem}
 .collab-streams{gap:18px}
 .process-toolbar{padding-bottom:28px}
 .step-path{display:flex;gap:0}
 .step-path>li{grid-template-columns:44px minmax(0,1fr);gap:18px;padding-bottom:32px}
 .step-path>li:not(:last-child):after{right:auto;transform-origin:center top}
 .path-number{width:44px;height:44px;font-size:1.25rem;margin:0}
 .path-step-copy{position:relative;padding-top:3px}
 .step-icon{width:26px;height:26px;margin-bottom:12px}
 .path-step-copy h3{font-size:1.4375rem;max-width:none;margin:0 0 10px}
 .path-step-copy p{max-width:none}
 .is-path-active>li:not(:last-child):after{animation-name:path-connect-mobile}
 .terms-value.glass{padding:26px 22px}
 .big-value{font-size:6rem;margin-top:22px}
 .big-value.value-word{font-size:2.5rem}
 .allocation{min-height:160px}
 .allocation-branches li{font-size:.875rem;padding-inline:2px}
 .allocation-branches span{font-size:.875rem}
 .terms-list{margin-top:8px}
 .terms-list article{padding-block:24px}
 .terms-list h3{font-size:1.4375rem}
 .consent,.form-note{font-size:.875rem}
 .apply-panel.glass{padding:26px 20px}
 .footer-layout>div{flex-wrap:wrap;gap:12px 22px}
 .site-footer{padding-bottom:calc(144px + env(safe-area-inset-bottom))}
}
@keyframes path-connect-mobile{from{transform:scaleY(.16);opacity:.25}to{transform:scaleY(1);opacity:.65}}
@media(max-width:359px){
 .header-shell>.role-switch{width:calc(266px - 36px*var(--join))}
 .collaboration-flow{gap:7px;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr)}
 .collab-business strong{font-size:.8125rem}
 .path-scene-copy h3{font-size:1.5rem}
 .relationship-flow strong{font-size:.875rem}
 .relationship-flow{grid-template-columns:minmax(0,1fr);gap:18px;text-align:start;min-height:0;padding-block:6px}
 .relationship-flow>li{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:0 0 0 27px;align-items:start}
 .relationship-flow>li:before{left:7px;top:4px;transform:none}
 .relationship-flow>li:not(:last-child):after{left:14px;top:18px;width:1px;height:calc(100% + 4px)}
 .relationship-flow span{font-size:.875rem;margin:0;max-width:none}
 .allocation-branches li,.allocation-branches span{font-size:.8125rem}
 .terms-value.glass{padding-inline:18px}
 .apply-panel.glass{padding-inline:18px}
}
/* A short landscape scene uses the assembled header at the leading edge. */
@media(max-width:767px) and (max-height:600px) and (orientation:landscape){
 .header-shell{width:360px;max-width:100%;height:60px;margin-left:0;margin-right:auto}
 .header-shell:before{opacity:1;height:60px}
 .header-shell>.brand{left:8px;top:8px;transform:none}
 .header-shell>.role-switch{left:204px;top:5px;width:276px;transform:translateX(-50%);background:transparent;border-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
 .role-switch button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
 .role-switch:after{transition:none}
 .is-flow-active .collab-arrow:before{animation:none;opacity:0}
 .is-path-active>li:not(:last-child):after{animation:none;transform:none;opacity:.65}
}

/* 3.8 — a stable contact dock. It never fades as content moves past it. */
.floating-tools{opacity:1;visibility:visible;transition:none}
.floating-tools .phone-link .icon,.floating-tools .telegram-link .icon{width:23px;height:23px}
.floating-tools .float-button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:767px){
 .floating-tools{flex-direction:row;gap:8px;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));padding:5px;border:1px solid #ffffff26;border-radius:999px;background:rgb(var(--role-rgb)/.92);backdrop-filter:blur(18px)}
 .floating-tools .float-button{width:44px;height:44px;box-shadow:none;background:transparent;border-color:#ffffff45}
 .site-footer{padding-bottom:calc(112px + env(safe-area-inset-bottom))}
 .direct-contacts a{flex:1 1 130px}
}

.submit-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}
.submit-button:disabled:hover{transform:none;box-shadow:none}

/* A permanent utility edge keeps fixed actions outside the reading grid. */
.floating-tools{right:max(12px,env(safe-area-inset-right));gap:8px;flex-direction:column;padding:0;border:0;background:transparent;backdrop-filter:none}
.floating-tools .float-button{width:44px;height:44px;background:rgb(var(--role-rgb)/.93);border:1px solid #ffffff65;box-shadow:0 5px 16px #0003;backdrop-filter:blur(18px)}
main>.section:not(.apply)>.container,.site-footer>.container{width:min(1320px,calc(100% - max(var(--gutter),calc((100% - 1320px)/2)) - 72px));margin-left:max(var(--gutter),calc((100% - 1320px)/2));margin-right:auto}
@media(max-width:767px){
 .floating-tools{right:max(8px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
 main>.section:not(.apply)>.container,.site-footer>.container{width:calc(100% - 22px - 68px);margin-left:22px;margin-right:68px}
 .site-footer{padding-bottom:calc(172px + env(safe-area-inset-bottom))}
}
@media(max-width:359px){
 main>.section:not(.apply)>.container,.site-footer>.container{width:calc(100% - 18px - 68px);margin-left:18px}
}
@media(max-width:359px){
 html[data-role=company] .terms-value.glass{padding-inline:12px}
 html[data-role=company] .allocation-branches{width:calc(100% + 12px);margin-inline:-6px;grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-role=company] .allocation-branches li{font-size:13px;padding-inline:0}
}

/* Keep the form clear of the permanent contact rail. */
@media(max-width:767px){.apply-panel.glass{padding-right:46px}}
