{{- $footnotes := slice -}}
{{- with .Params.footnotes -}}
    {{- $footnotes = . -}}
{{- else -}}
    {{- with .Params.study.footnotes -}}
        {{- $footnotes = . -}}
    {{- end -}}
{{- end -}}

{{- if gt (len $footnotes) 0 -}}
<section id="footnotes">
    <big>Ag</big>
    <ul aria-label="Footnotes">
        {{- range $footnotes -}}
        {{- $footnote := . -}}
        <li class="footnote">
            {{- with .symbol -}}
            <span class="symbol">{{ . | safeHTML }}</span>
            {{- end -}}
            {{- with .note -}}
            <span class="note">
                {{ . | markdownify }}
                {{- with $footnote.id -}}
                <a href="#{{ . }}" class="return">⤴</a>
                {{- end -}}
            </span>
            {{- end -}}
        </li>
        {{- end -}}
    </ul>
</section>
{{- end -}}

<section id="end">
    {{ if eq (len $footnotes) 0 }}<big>Ag</big>{{ end }}
    <div class="text">
        <p>
            Product design portfolio for <a href="https://andrewgioia.com">Andrew Gioia</a>, co-founder of TeachBoost and current Principal Designer at SchoolStatus.
        </p>
        <menu>
            <li>
                <a href="/#studies">Case studies</a>
            </li>
            <li>
                <a href="https://linkedin.com/in/andrewgioia">Get in touch</a>
            </li>
            <li>
                <a href="https://github.com/andrewgioia">GitHub</a>
            </li>
        </menu>
        <p>
            Case study content licensed under {{ partial "icon.html" (dict "name" "cc") }}BY-NC-ND 4.0. Please share with attribution, but do not remix, adapt, or reuse commercially. Site design, source code, branding, and visual assets are not licensed for reuse and remain © 2026 Andrew Gioia. All rights reserved.
        </p>
    </div>
</section>