/* Caption floor: no label, number or caption on the how / explore pages is set below 12px (.75rem).
   The size follows the SDK type scale (--type-metadata, themes.css) and never drops under the floor,
   the same max() Ark's own eyebrow uses. One definition; explore-story.css reads it too. */
:root { --caption-size: max(.75rem, var(--type-metadata, .75rem)); }
/* How it works is a wide three-part journey, distinct from the Overview split. */

#scene .how-path {margin:0;max-width:none;flex:0 0 auto;}
#scene .how-path :is(a,span) {min-height:22px;font-size:var(--caption-size);}

#scene .how-work-card {
  position:relative;
  z-index:1;
  box-sizing:border-box;
  min-width:0;
  min-height:0;
  padding:20px;
  display:grid;
  grid-template-rows:auto auto auto minmax(96px,1fr) auto;
  gap:12px;
  border:1px solid hsl(var(--border-default));
  border-radius:8px;
  background:linear-gradient(152deg,hsl(var(--surface) / .42),hsl(var(--canvas) / .92));
  color:hsl(var(--text));
  text-decoration:none;
  overflow:hidden;
  transition:transform 240ms cubic-bezier(.22,.72,.22,1),border-color 180ms,background-color 180ms;
}
#scene .how-work-card::before {
  content:"";
  position:absolute;
  top:0;
  left:20px;
  width:44px;
  height:2px;
  background:hsl(var(--primary));
  opacity:.82;
}
#scene .how-work-card::after {
  content:"";
  position:absolute;
  right:-8px;
  top:calc(50% - 4px);
  width:8px;
  height:8px;
  border-top:1px solid hsl(var(--reference-400));
  border-right:1px solid hsl(var(--reference-400));
  transform:rotate(45deg);
}
#scene .how-work-card:last-child::after {display:none;}
#scene .how-work-card:is(:hover,:focus-visible,[data-active="true"]) {
  border-color:hsl(var(--reference-400));
  background:linear-gradient(152deg,hsl(var(--reference-100)),hsl(var(--canvas) / .96));
  transform:translateY(-4px);
}
.how-work-card-top {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.how-work-number {font:500 var(--caption-size)/1.35 var(--font-mono,monospace);color:hsl(var(--primary));}
.how-work-signal {font:500 var(--caption-size)/1.35 var(--font-mono,monospace);letter-spacing:.1em;color:hsl(var(--text-muted));}
#scene .how-work-card h2 {
  margin:0;
  font:500 clamp(22px,1.9cqw,30px)/1.08 var(--font-sans,"Albert Sans",sans-serif);
  letter-spacing:-.032em;
  color:hsl(var(--text-strong));
}

.how-work-mesh-frame {
  min-height:96px;
  display:grid;
  grid-template-rows:minmax(72px,1fr);
  gap:7px;
  margin-top:3px;
  padding:10px;
  border-top:1px solid hsl(var(--border-subtle));
  border-bottom:1px solid hsl(var(--border-subtle));
  background:hsl(var(--surface) / .16);
  overflow:hidden;
}

.how-work-mesh {display:block;width:100%;height:100%;min-height:72px;border-radius:3px;pointer-events:none;}

.how-boundary-label {flex:0 0 auto;font:500 var(--caption-size)/1.4 var(--font-mono,monospace);letter-spacing:.08em;color:hsl(var(--primary));}

.hero-alive[data-page="deployment"] .lattice-activity {opacity:0;pointer-events:none;}
.hero-alive[data-page="deployment"] .lattice-field {opacity:.14;}

@media(min-width:901px) and (max-height:780px) {

  #scene .how-work-card {padding:16px;gap:9px;grid-template-rows:auto auto auto minmax(76px,1fr) auto;}
  #scene .how-work-card h2 {font-size:23px;}

  .how-work-mesh-frame {min-height:76px;grid-template-rows:minmax(54px,1fr);padding:8px;}
  .how-work-mesh {min-height:54px;}

}
@media(max-width:900px) {

  #scene .how-work-card::after {display:none;}
  #scene .how-work-card {min-height:300px;}

}
@media(prefers-reduced-motion:reduce) {
  #scene .how-work-card {transition:none;}
}
