.nav__logo .nav__img { height: 36px; width: 36px; }
.nav__img { mix-blend-mode: multiply; }
.ground-inverse .nav__img { mix-blend-mode: normal; background: #fff; border-radius: 999px; padding: 3px; }

/* the site's own icons (img/icons.svg): thin green line drawings like the logo */
.ico { width: 1em; height: 1em; flex: none; color: var(--action); }
.ground-inverse .ico { color: #93d29c; }

.menu-col a { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--s-3); }
.menu-col a > .ico { grid-row: span 2; font-size: 24px; margin-top: 1px; }
.menu-col a > span { grid-column: 2; }

/* photo bands: a wide photograph with the section's heading on a card, like the hero */
.band { position: relative; height: clamp(300px, 40svh, 380px); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.band > img { width: 100%; height: 100%; object-fit: cover; }
.band__card { position: absolute; top: var(--s-6); left: var(--s-6); max-width: min(620px, calc(100% - 2 * var(--s-6)));
              padding: var(--s-6) var(--s-7); border-radius: var(--r-lg); background: var(--p-bg); }
.band__card h2 { margin: 0; }
@media (max-width: 639px) {
  .band { height: auto; overflow: visible; background: none; }
  .band > img { height: 200px; border-radius: var(--r-lg); }
  .band__card { position: static; max-width: none; padding: var(--s-5) 0 0; background: none; }
}

/* profile: the credentials under the band, no rules */
.profile-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); margin-top: var(--s-8); }
.profile-body > .creds { grid-column: 1 / -1; grid-row: 1; }
.profile-body > .cv { grid-column: 3; grid-row: 1; align-self: end; justify-self: start; margin-bottom: 4px; }
.creds { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-6); }
.creds > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: var(--s-4);
              font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.cred__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--p-surface); }
.cred__ic .ico { font-size: 32px; }
.creds > li:last-child { font-size: var(--t-body); line-height: 1.5; letter-spacing: 0; }
.cv { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-5) 0 var(--s-4); border-radius: 999px;
      background: var(--p-surface); font-weight: 500; white-space: nowrap; transition: background 200ms var(--ease), transform 200ms var(--ease); }
.cv .ico { font-size: 28px; }
.cv:hover { background: color-mix(in oklab, var(--p-surface) 70%, var(--p-accent) 30%); }
.cv:active { transform: scale(.98); }

/* activities: the five age groups as tiles */
.list-head { font: 500 var(--t-label)/1.3 var(--font-text); color: var(--muted); letter-spacing: 0; margin: var(--s-7) 0 var(--s-4); }
.ages { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.age { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); height: 100%; min-height: 196px; padding: var(--s-5);
       border-radius: var(--r-lg); background: var(--p-surface); color: var(--ink); transition: transform 200ms var(--ease), background 200ms var(--ease); }
.age .ico { font-size: 44px; }
.age__name { font: var(--display-weight) var(--t-card)/1.25 var(--font-display); letter-spacing: var(--display-tracking); }
.age__tag { padding: 2px 10px; border-radius: 999px; background: var(--p-bg); color: var(--action); font: 500 var(--t-label)/1.6 var(--font-text); }
.age__more { margin-top: auto; display: inline-flex; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.age__more::after { content: "→"; transition: transform 200ms var(--ease); }
@media (hover: hover) {
  .age:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--p-surface) 80%, var(--p-accent) 20%); }
  .age:hover .age__more { color: var(--action); }
  .age:hover .age__more::after { transform: translateX(4px); }
}
@media (max-width: 1023px) { .ages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .ages > li:last-child { grid-column: 1 / -1; }
  .age { min-height: 0; padding: var(--s-4); }
  .age .ico { font-size: 32px; }
}

/* services: four photo cards */
#by-service { background: var(--p-surface); }
.svc-grid { row-gap: var(--s-5); }
.svc { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg); color: var(--ink);
       transition: transform 200ms var(--ease); }
.svc__media { aspect-ratio: 2 / 1; overflow: hidden; }
.svc__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); flex: 1; }
.svc__ic .ico { font-size: 36px; }
.svc h3 { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.svc__sub { display: block; margin-top: var(--s-1); font: 400 var(--t-body)/1.5 var(--font-text); letter-spacing: 0; color: var(--muted); }
.svc p { max-width: 60ch; }
.svc__more { margin-top: auto; padding-top: var(--s-2); display: inline-flex; gap: var(--s-2); font-weight: 500; color: var(--action); }
.svc__more::after { content: "→"; transition: transform 200ms var(--ease); }
@media (hover: hover) {
  .svc:hover { transform: translateY(-2px); }
  .svc:hover .svc__media > img { transform: scale(1.03); }
  .svc:hover .svc__more::after { transform: translateX(4px); }
}
@media (max-width: 1023px) { .svc-grid > .svc { grid-column: 1 / -1; } }
@media (max-width: 639px) { .svc__body { padding: var(--s-5); } }

/* contexts: four tall photographs, each labelled on a small card */
.ctx-grid { margin-top: var(--s-7); }
.ctx { position: relative; aspect-ratio: 2 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.ctx > img { width: 100%; height: 100%; object-fit: cover; }
.ctx__label { position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4); width: max-content; max-width: calc(100% - 2 * var(--s-4));
              display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
              border-radius: var(--r-md); background: var(--p-bg); font: 500 var(--t-body)/1.3 var(--font-text); }
.ctx__label .ico { font-size: 26px; }
@media (max-width: 1023px) { .ctx-grid > .ctx { grid-column: auto / span 6; } }
@media (max-width: 639px) { .ctx { aspect-ratio: 1 / 1; } .ctx__label { left: var(--s-2); bottom: var(--s-2); max-width: calc(100% - 2 * var(--s-2)); padding: var(--s-1) var(--s-2); font-size: var(--t-small); } .ctx__label .ico { font-size: 20px; } }

/* closing: the contacts on the dark green */
.footer--dark .closing__cta h2 { margin-bottom: var(--s-7); }
.contact-list { font-style: normal; display: grid; border-top: 1px solid var(--line); }
.contact-line { display: flex; align-items: center; gap: var(--s-4); margin: 0; min-height: 64px; padding-block: var(--s-3); border-bottom: 1px solid var(--line);
                font: var(--display-weight) var(--t-h3)/1.25 var(--font-display); letter-spacing: var(--display-tracking); overflow-wrap: anywhere; }
.contact-line a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--line-strong); }
.contact-line a:hover { text-decoration-color: currentColor; }
.contact-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; font-size: 30px; }
.contact-ic .ico--brand { font-size: 22px; }
.contact-photo { height: 100%; min-height: 320px; }
.closing__links .footer__nav { margin-top: 0; padding-top: 0; border-top: 0; }
.closing__links .footer__nav .nav__logo { margin-right: auto; }
.closing__links .footer__nav a:not(.nav__logo) { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1023px) { .contact-photo { height: 280px; min-height: 0; margin-top: var(--s-7); } }

@media (max-width: 1023px) {
  .profile-body { grid-template-columns: 1fr; row-gap: var(--s-6); }
  .profile-body > .cv { grid-column: 1; grid-row: 2; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) { .ctx { aspect-ratio: 4 / 3; } }
@media (max-width: 639px) {
  .hero--photo { --photo: 30svh; }
  main > #profile, main > #activities, main > #context { height: auto; min-height: calc(var(--hm, 1) * 100lvh); }
  .profile-body { margin-top: var(--s-6); }
  .creds { grid-template-columns: 1fr; gap: var(--s-4); }
  .creds > li { grid-template-columns: 48px minmax(0, 1fr); align-items: center; font-size: 22px; }
  .cred__ic { width: 48px; height: 48px; }
  .cred__ic .ico { font-size: 28px; }

  .cv { justify-self: start; }
  .contact-photo { display: none; }
  .contact-line { font-size: 20px; }
  .contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer--dark .closing__cta h2 { margin-bottom: var(--s-5); }
  .closing__links .footer__nav .nav__logo { flex-basis: 100%; }
}

/* detail pages */
.detail .back-link { display: inline-flex; color: var(--muted); align-items: center; gap: var(--s-2); margin-bottom: var(--s-6); font-weight: 500; min-height: 44px; }
.detail .back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail h1 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); max-width: 20ch; }
.detail .detail__sub { font-size: var(--t-lead); color: var(--muted); margin-top: var(--s-3); }
.detail .detail__lead { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; margin-top: var(--s-6); }
.detail h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: var(--s-7) 0 var(--s-4); }
.detail .rows { margin-top: var(--s-6); }
.detail .rows .rows__name { font-weight: 400; }
.detail h2 + .rows { margin-top: 0; }
.detail p { max-width: 60ch; }
.section.detail { height: auto; min-height: 100svh; }
.detail .frame--fill { min-height: min(640px, calc(100svh - var(--padt) - var(--padb))); }
@media (max-width: 1023px) { .detail .frame--fill { min-height: 0; aspect-ratio: 4 / 3; height: auto; } }
.credits-ul { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.credits-ul a { text-decoration: underline; text-underline-offset: .18em; }
.detail .back-link:hover { color: var(--action); }
.detail .detail__ico { display: block; font-size: 56px; margin-bottom: var(--s-5); }
