{# team override — earthen: paper ground, soft botanical cards, organic member portraits. Field reads, layout/columns control flow, the {% img %} portrait call and the social-icon <use> split preserved verbatim from the builtin; only classes/style/fonts reskinned. #}
<section data-block-override="earthen:team" class="py-12 md:py-20 bg-paper-grain text-foreground{% if class %} {{ class }}{% endif %}">
  <div class="mx-auto max-w-6xl px-4">
    {% if heading %}<h2 class="text-center text-3xl md:text-4xl font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--primary))">{{ heading }}</h2>{% endif %}
    {% if intro %}<p class="mx-auto mt-4 max-w-2xl text-center text-lg text-muted-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ intro }}</p>{% endif %}
    <div class="mt-12 {% if layout == "list" %}mx-auto max-w-3xl space-y-6{% elif layout == "single" %}mx-auto max-w-xl{% else %}grid grid-cols-1 gap-8 sm:grid-cols-2 {% if columns == 2 %}lg:grid-cols-2{% elif columns == 4 %}lg:grid-cols-4{% else %}lg:grid-cols-3{% endif %}{% endif %}">
      {% for member in members %}
      <div class="{% if layout == "list" %}earthen-panel earthen-blob-soft flex items-start gap-5 p-5{% else %}text-center{% endif %}">
        {% if member.photo %}<span class="earthen-blob {% if layout == "list" %}h-20 w-20{% else %}mx-auto h-28 w-28{% endif %} block shrink-0 overflow-hidden bg-muted">{% img member.photo alt=member.name class="h-full w-full object-cover" %}</span>{% endif %}
        <div class="{% if layout != "list" %}mt-4{% endif %}">
          {% if member.name %}<h3 class="text-lg font-semibold" style="font-family:var(--font-heading, 'Fraunces', 'Playfair Display', Georgia, serif);color:hsl(var(--foreground))">{{ member.name }}</h3>{% endif %}
          {% if member.role %}<p class="text-xs font-semibold uppercase tracking-wider" style="color:hsl(var(--primary))">{{ member.role }}</p>{% endif %}
          {% if member.bio %}<p class="mt-2 text-sm text-muted-foreground" style="font-family:var(--font-body, 'Work Sans', ui-sans-serif, system-ui, sans-serif)">{{ member.bio }}</p>{% endif %}
          {% if member.socials %}<div class="mt-3 flex gap-3 {% if layout != "list" %}justify-center{% endif %}">
            {% for social in member.socials %}{% if social.url %}<a href="{{ social.url }}" class="text-muted-foreground transition-colors hover:text-primary" aria-label="Social link"><svg width="20" height="20" class="h-5 w-5" aria-hidden="true"><use href="/icons/{{ social.icon|split:":"|first }}.svg#{{ social.icon|split:":"|last }}"></use></svg></a>{% endif %}{% endfor %}
          </div>{% endif %}
        </div>
      </div>
      {% endfor %}
    </div>
  </div>
</section>
