{{/* The opening of every page: a full-bleed dark band. On the left, an optional note (the eyebrow), the statement, the dek, the actions; on the right, the agent log (when `log:` is set), the layer panel (when `fit:` is set), or the field — the platform's four layers drawn as bars. `bars: false` drops the field. `logImage` sets a photo behind the whole band. */}} {{ $s := . }} {{ $visual := or $s.log $s.fit (ne $s.bars false) }}
{{ with $s.logImage }}{{ end }}
{{ with $s.eyebrow }}

{{ . }}

{{ end }}

{{ $s.title | markdownify }}

{{ with $s.subhead }}

{{ . | markdownify }}

{{ end }} {{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }}
{{ with $s.log }} {{/* An agent's activity log, typed out line by line (see the script below). Lines take `tag` + `text`; `think: true` marks a reasoning step (greyed, with a pause); `done: true` closes the run. The window keeps a fixed height and scrolls as lines arrive. `logCaption` credits the photo. */}}
{{ $s.logTitle | default "agent · your-company.federated.computer" }} Live
    {{ range . }}
  1. {{ .tag | default (cond .done "Done" (cond (.think | default false) "Thinking" "")) }} {{ .text }}
  2. {{ end }}
{{ else }} {{ with $s.fit }} {{ else }} {{ if ne $s.bars false }} {{ end }} {{ end }} {{ end }}
{{ with $s.logCaption }}

{{ . }}

{{ end }}