/* Intelligent Automation, "How it works": the four steps beside one order moving through three layers in depth.
   Markup: tools/ia-depth.html. Behaviour: assets/ia-depth.js. The scene itself is drawn in WebGL (three.js), black and white
   with Deep Amber on the one line that needs a person. Only opacity and transform are animated here. */
.iad{ display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(1.75rem, 4vw, 3rem) 3rem; }
@media (min-width:1024px){ .iad{ grid-template-columns:minmax(0,3fr) minmax(0,9fr); gap:2.5rem; align-items:center; } }
@media (max-width:1023px){ .iad-fig{ order:-1; } }

/* the steps: four short rows. Without the live scene all four read at full strength */
.iad-step{ padding-block:1.125rem 1.375rem; box-shadow:inset 0 1px 0 var(--line); }
.iad-step:first-child{ box-shadow:inset 0 1px 0 var(--hard); }
.iad-t{ display:flex; align-items:baseline; font-weight:500; font-size:clamp(1.375rem, 1.9vw, 1.75rem); line-height:1.15; letter-spacing:-.022em; }
.iad-n{ flex:none; width:2rem; font-size:.875rem; font-weight:500; line-height:2.1; color:var(--lab); font-variant-numeric:tabular-nums; }
.iad-p{ margin-top:.5rem; padding-left:2rem; max-width:24rem; font-size:clamp(1rem, 1.2vw, 1.125rem); line-height:1.5; color:var(--mid); }
/* with the live scene, the step it is showing stands out and the rest step back */
.iad-live .iad-step{ opacity:.34; transition:opacity .6s ease; }
.iad-live .iad-step.on{ opacity:1; }

/* the stage: the still frame first; the live scene fades in over it once its first frame is drawn */
.iad-fig{ margin:0; min-width:0; }
.iad-stage{ position:relative; aspect-ratio:3 / 2; }
@media (max-width:639px){ .iad-stage{ aspect-ratio:4 / 5; } }
.iad-still, .iad-cv{ position:absolute; inset:0; width:100%; height:100%; }
.iad-still{ object-fit:contain; transition:opacity .7s ease; }
.iad-cv{ opacity:0; transition:opacity .7s ease; }
.iad-gl .iad-cv{ opacity:1; }
.iad-gl .iad-still{ opacity:0; }
@media (max-width:639px){ .iad-stage{ margin-inline:calc(var(--px, 16px) * -1); } }

@media (prefers-reduced-motion: reduce){ .iad *, .iad-live .iad-step{ transition:none !important; } }
