/* Four stages sit across the connected diamonds in natural reading order. */
.service-diamond{position:relative;isolation:isolate;background:#f7f7f9;overflow:clip;--diamond-blue:#1a16c4}
/* Keep the photograph framed independently of the stacked cards on smaller screens. */
.service-diamond::before{content:'';position:absolute;inset:clamp(100px,12vw,180px) -32px auto;z-index:0;height:clamp(560px,68vw,960px);background-image:var(--case-sector-image);background-position:center;background-size:cover;background-repeat:no-repeat;filter:blur(12px);opacity:.22;mask-image:linear-gradient(transparent,#000 16% 78%,transparent);pointer-events:none}
.service-diamond>.container{position:relative;z-index:1}
.service-diamond-heading{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:var(--space-layout);align-items:end;margin-bottom:32px}
.service-page .service-diamond h2{font-size:var(--type-h2);max-width:23ch}
.service-diamond-heading>.service-page-body{max-width:44ch;margin-bottom:4px}
.service-diamond-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;align-items:center;min-height:clamp(440px,40vw,600px)}
.service-diamond-diagram{grid-area:1/1;width:120%;margin:0;justify-self:center;pointer-events:none}
.service-diamond-diagram svg{display:block;width:100%;height:auto;overflow:visible}
.diamond-track,.diamond-fill{stroke-width:3.5;stroke-linejoin:miter}
.diamond-track{stroke:#c9c9d0}
.diamond-fill{stroke:var(--diamond-blue)}
.diamond-node{fill:var(--diamond-blue);transition:fill .2s ease,stroke-width .2s ease}
.service-diamond[data-diamond-ready] .diamond-node:not([data-filled]){fill:#bdbdc6}
.diamond-hover-segment{stroke:var(--diamond-blue);stroke-width:5.6;stroke-linejoin:miter;opacity:0;transition:opacity .2s ease}
.diamond-hover-segment.is-highlighted{opacity:1}
.service-diamond[data-diamond-ready] .diamond-node.is-highlighted{fill:var(--diamond-blue);stroke:var(--diamond-blue);stroke-width:3.5}
.service-diamond-steps{grid-area:1/1;position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(24px,3vw,48px);align-items:stretch;direction:ltr;list-style:none;padding:0;margin:0}
.service-diamond-step{position:relative;min-width:0;width:100%;max-width:clamp(190px,18vw,240px);justify-self:center;padding:22px 20px;border:1px solid #e1e1e7;border-radius:18px;background:#fff;color:#050505;transition:transform .25s cubic-bezier(.22,1,.36,1),border-color .2s ease,box-shadow .25s ease}
.service-diamond-step:first-child{justify-self:start}
.service-diamond-step:last-child{justify-self:end}
.service-diamond-step.is-highlighted{z-index:2;transform:translateY(-6px);border-color:var(--diamond-blue);box-shadow:0 12px 28px #1a16c41a}
.diamond-step-number{display:block;color:var(--diamond-blue);font-size:12px;line-height:1.5;font-weight:550;letter-spacing:.06em;margin-bottom:12px;font-variant-numeric:tabular-nums}
.service-page .service-diamond-step h3{font-size:clamp(19px,1.65vw,24px);line-height:1.2;letter-spacing:-.03em;margin-bottom:10px}
.service-page .service-diamond-step h3,.service-page .service-diamond-step h3 *{background:none!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
.diamond-step-trigger{display:block;padding:0;border:0;background:none;font:inherit;letter-spacing:inherit;line-height:inherit;text-align:inherit;color:inherit;cursor:pointer}
.diamond-step-trigger::after{content:'';position:absolute;inset:0;border-radius:18px}
.diamond-step-trigger:focus-visible{outline:none}
.diamond-step-trigger:focus-visible::after{outline:3px solid #817bff;outline-offset:4px}
.service-diamond-step p{font-size:14px;line-height:1.55;color:var(--muted);text-wrap:pretty}
.service-diamond[data-diamond-ready] .service-diamond-step[data-diamond-state="upcoming"] .diamond-step-number{color:#777781}
.service-diamond[data-diamond-ready] .service-diamond-step.is-highlighted .diamond-step-number{color:var(--diamond-blue)}
/* Two close pairs, with a wider interval at the meeting point of the diamonds. */
@media screen and (min-width:1041px){
 .service-diamond-steps{grid-template-columns:repeat(2,minmax(0,1fr)) clamp(24px,2.5vw,40px) repeat(2,minmax(0,1fr));gap:clamp(16px,1.5vw,24px)}
 .service-diamond-step{max-width:none}
 .service-diamond-step:nth-child(3){grid-column:4}
 .service-diamond-step:nth-child(4){grid-column:5}
}
/* Keep full descriptions readable when the four overlay cards no longer fit. */
@media(max-width:1040px){
 .service-diamond-stage{display:block;min-height:0}
 .service-diamond-diagram{width:min(100%,760px);margin:0 auto 28px}
 .service-diamond-steps{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:20px}
 .service-diamond-step,.service-diamond-step:first-child,.service-diamond-step:last-child{max-width:none;justify-self:stretch;padding:24px}
 .service-page .service-diamond-step h3{font-size:24px}
 .service-diamond-step p{font-size:15px;line-height:1.65}
}
@media(max-width:850px){.service-diamond-heading{grid-template-columns:1fr;gap:24px}.service-diamond-heading>.service-page-body{max-width:56ch}}
@media(max-width:600px){.service-diamond-steps{grid-template-columns:1fr;gap:16px}.service-diamond-step{border-radius:16px}.diamond-step-trigger::after{border-radius:16px}.diamond-step-number{margin-bottom:8px}.diamond-track,.diamond-fill{stroke-width:4.9}.diamond-node{r:15}}
@media(prefers-reduced-motion:reduce){.diamond-node,.diamond-hover-segment,.service-diamond-step{transition:none}.service-diamond-step.is-highlighted{transform:none}}
@media print{.service-diamond::before{display:none}.service-diamond-stage{display:block;min-height:0}.service-diamond-diagram{width:70%;margin-bottom:24px}.service-diamond-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.service-diamond-step{max-width:none;break-inside:avoid;transform:none!important;box-shadow:none!important}.diamond-fill{clip-path:none}.service-diamond[data-diamond-ready] .diamond-node{fill:var(--diamond-blue)}}
