.home-block-hero .block-hero-grid{grid-template-columns:minmax(0,1.02fr) minmax(470px,.98fr);gap:clamp(2.5rem,4vw,5.5rem);align-items:stretch}
.home-block-hero .block-hero-visual{width:min(100%,660px);justify-self:end;align-self:stretch;margin-top:clamp(2rem,4vw,4.5rem);padding-bottom:0;display:flex;min-height:0}

/* Spatial study 02 — one connected workflow diagram, lifted into depth. */
.spatial-hero{position:relative;width:100%;height:100%;min-height:0;aspect-ratio:auto;perspective:1500px;isolation:isolate;flex:1}
/* Desktop spatial composition keeps its established stage geometry. */
.spatial-hero-scene{position:absolute;inset:calc(3% - 10px) 1% calc(13% + 10px);transform-style:preserve-3d;transform:rotateY(-8deg) rotateX(2.5deg) rotateZ(-1deg);transform-origin:50% 50%;}

/* One SVG owns every visible connection. Paths intentionally run beneath stage planes,
   so the opaque stage surfaces mask the hidden span and create mechanically clean joins. */
.spatial-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:translateZ(0);z-index:1}
.spatial-route-base,.spatial-route-accent{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:square;stroke-linejoin:miter}
.spatial-route-base{stroke:color-mix(in oklab,var(--foreground) 14%,transparent);stroke-width:3}
.spatial-route-accent{stroke:var(--accent);stroke-width:1.65;stroke-dasharray:none;stroke-dashoffset:0}

/* Decision stays outside the stretched SVG so its geometry remains a true diamond. */
.hero-decision-cluster{
  position:absolute;left:83.33%;top:60.94%;
  width:0;height:0;z-index:8;pointer-events:none;
  --hero-decision-diamond-side:26px;
  --hero-decision-clearance:6px;
}
/* The opaque diamond itself masks the connector, without a visible square plate. */
.hero-decision-diamond{
  position:absolute;left:0;top:0;
  width:var(--hero-decision-diamond-side);height:var(--hero-decision-diamond-side);
  background:var(--accent);transform:translate(-50%,-50%) rotate(45deg);
  transform-origin:50% 50%;
}
.hero-decision-label{
  position:absolute;
  /* The word begins near the diamond's centreline, just below its lower tip.
     Keeping text under the horizontal connector avoids route/text overlap. */
  left:calc(var(--hero-decision-diamond-side) * .35);
  top:calc(var(--hero-decision-diamond-side) * .708 + 6px);
  transform:none;
  white-space:nowrap;font:500 .66rem/1.25 var(--font-mono);
  letter-spacing:.04em;color:var(--accent);
}

/* Connected stages: matte, opaque diagram planes. */
.spatial-stage{position:absolute;box-sizing:border-box;background:var(--background);border:1px solid color-mix(in oklab,var(--border) 88%,var(--foreground) 12%);transform-style:preserve-3d;z-index:4;box-shadow:0 14px 34px color-mix(in oklab,var(--foreground) 7%,transparent)}
.spatial-stage-heading{display:flex;align-items:center;gap:8px;padding:11px 12px 9px;border-bottom:1px solid var(--border);font:500 .5rem/1.3 var(--font-mono);letter-spacing:.075em;color:var(--muted-foreground)}
.spatial-stage-heading span{color:var(--accent)}
.spatial-stage-heading strong{font-weight:500;color:var(--foreground)}
.spatial-lines{display:grid;gap:7px}.spatial-lines i{display:block;height:1px;background:var(--border)}.spatial-lines i:nth-child(2){width:78%}.spatial-lines i:nth-child(3){width:55%}

.spatial-stage-brief{left:1.5%;top:59%;width:25%;height:19%;transform:translateZ(12px)}
.spatial-stage-brief-body{display:grid;grid-template-columns:38% 1fr;gap:10px;padding:12px;height:calc(100% - 31px);box-sizing:border-box}
.brief-block{display:block;background:var(--card);border:1px solid var(--border)}
.brief-block-a{grid-row:1/3}.brief-block-b{height:42%;align-self:end}.spatial-stage-brief .spatial-lines{align-self:end}

.spatial-stage-structure{left:29%;top:11%;width:42%;height:37%;transform:translateZ(34px);background:var(--background)}
.structure-grid{display:grid;grid-template-columns:1.05fr .8fr;grid-template-rows:1fr .72fr;gap:12px;padding:14px;height:calc(100% - 31px);box-sizing:border-box}
.structure-source{display:grid;grid-template-columns:1fr 1fr;gap:7px}.structure-source i{display:block;background:var(--card);border:1px solid var(--border)}.structure-source i:first-child{grid-row:1/3}.structure-source i:last-child{background:color-mix(in oklab,var(--card) 72%,var(--background))}
.structure-path{display:grid;grid-template-columns:auto 1fr;gap:7px 9px;align-content:center;font:500 .43rem/1.2 var(--font-mono);letter-spacing:.06em;color:var(--muted-foreground)}.structure-path b{display:block;height:1px;background:var(--border);align-self:center}.structure-path span:last-child{color:var(--accent)}
.structure-frame{position:relative;border:1px solid var(--border);background:color-mix(in oklab,var(--card) 68%,var(--background));overflow:hidden}.structure-frame i{position:absolute;border:1px solid color-mix(in oklab,var(--foreground) 48%,transparent)}.structure-frame i:first-child{inset:18% 46% 18% 12%}.structure-frame i:last-child{inset:31% 12% 29% 58%;border-color:var(--accent)}
.structure-notes{display:grid;align-content:end;gap:7px}.structure-notes i{display:block;height:1px;background:var(--border)}.structure-notes i:nth-child(2){width:75%}.structure-notes i:nth-child(3){width:48%}.structure-notes i:last-child{width:28%;height:2px;background:var(--accent)}

.spatial-stage-review{left:54%;top:69%;width:27%;height:22%;transform:translateZ(48px)}
.review-layout{display:grid;grid-template-columns:1fr 34px;grid-template-rows:1fr auto;gap:10px;padding:12px;height:calc(100% - 31px);box-sizing:border-box}.review-candidates{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.review-candidates i{display:block;border:1px solid var(--border);background:var(--card)}.review-candidates i:nth-child(2){border-color:var(--accent);background:var(--background)}.review-decision{display:grid;place-items:center}.review-decision span{width:14px;height:14px;background:var(--accent);transform:rotate(45deg)}.spatial-stage-review .spatial-lines{grid-column:1/-1;gap:5px}

/* All desktop widths need the same protected decision zone. Tablet/mobile override below. */
.spatial-stage-output{right:1%;top:25%;width:24%;height:23%;transform:translateZ(22px)}
.output-frames{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:6px;padding:13px 12px 8px;height:52%;box-sizing:border-box}.output-frames i{display:block;border:1px solid var(--border);background:var(--card)}.output-wide{background:color-mix(in oklab,var(--card) 72%,var(--background))!important}.output-tall{margin-top:10%}.output-square{aspect-ratio:1;align-self:end;border-color:var(--accent)!important;background:var(--background)!important}.spatial-stage-output>.spatial-lines{padding:5px 12px 0;gap:5px}


@media(max-width:1000px){
  .home-block-hero .block-hero-grid{align-items:start}
  .home-block-hero .block-hero-visual{width:min(100%,780px);max-width:780px;justify-self:start;align-self:auto;margin:0;display:block}
  .spatial-hero{height:auto;aspect-ratio:5/4;flex:none}
  .spatial-hero-scene{inset:5% 0 15%;transform:rotateY(-5deg) rotateX(1.5deg) rotateZ(-.5deg)}
  .spatial-stage-structure{left:27%;top:7%;width:43%;height:42%}
  .spatial-stage-brief{left:1%;top:59%;width:27%;height:23%}
  .spatial-stage-review{left:53%;top:68%;width:28%;height:25%}
  .spatial-stage-output{right:0;top:29%;width:25%;height:28%}
}

@media(max-width:640px){
  .home-block-hero .block-hero-visual{width:100%;max-width:none}
  .spatial-hero{aspect-ratio:4/5;margin-top:.5rem}
  .spatial-hero-scene{inset:5% 0 14%;transform:rotateY(-3deg) rotateX(1deg)}
  .spatial-stage-heading{padding:8px 8px 7px;font-size:.39rem;gap:5px}
  .spatial-stage-structure{left:21%;top:7%;width:57%;height:35%}
  .spatial-stage-brief{left:0;top:54%;width:31%;height:21%}
  .spatial-stage-review{left:43%;top:69%;width:34%;height:20%}
  .spatial-stage-output{right:0;top:32%;width:30%;height:20%}
  .structure-grid{gap:7px;padding:9px}.structure-path{font-size:.34rem;gap:5px}.spatial-stage-brief-body,.review-layout{padding:8px;gap:6px}.output-frames{padding:9px 8px 5px;gap:4px}.spatial-stage-output>.spatial-lines{padding-inline:8px}
  .hero-decision-cluster{--hero-decision-diamond-side:22px;--hero-decision-clearance:5px}.hero-decision-label{left:2px;top:calc(var(--hero-decision-diamond-side) * .708 + 7px);transform:none;font-size:.55rem}
}

/* Motion remains disabled. The network is now a single SVG layer so later route animation
   can progress through the same geometry without reintroducing connector drift. */
@media(prefers-reduced-motion:no-preference){
  .spatial-hero-scene,.spatial-stage,.spatial-route-accent,.hero-decision-cluster{will-change:transform,opacity,stroke-dashoffset}
}
