/* Portfolio page: the services layout (artists.css): the portrait, the name, the roles and two figures. */
/* name and alias on equal terms: one line, one colour, sized to the text column (min(): never wider than it) */
#me h1 { white-space: nowrap; font-size: min(3.4rem, 3.8vw); }
@media (max-width: 1100px) { #me h1 { font-size: 4.4vw; } }
@media (max-width: 760px) { #me h1 { font-size: 8.3vw; } }
.service .roles { color: var(--muted); font-size: 1.125rem; font-stretch: 112%; margin-top: -8px; }
/* the figures: four across the page, big number over its meaning */
.figures-band { width: min(100% - 2 * var(--margin), 1360px); margin: clamp(56px, 8vh, 96px) auto 0; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.figures dt { font-size: clamp(2.2rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1; font-weight: 650; font-stretch: 112%; letter-spacing: -0.03em; }
.figures dd { margin: 12px 0 0; color: var(--muted); max-width: 24ch; }
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .figures-band { width: auto; margin-inline: 16px; } }

/* who he worked with: the names in the display face, a thin dot between them */
.worked { display: grid; gap: 10px; }
.worked .label { color: var(--muted); font-size: var(--step-small); }
.worked .names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; font-size: 1.25rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.01em; }
.worked .names .more { font-size: 1rem; font-weight: 400; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }

/* the first screen sits clear of the bar and does not drift with the scroll */
.service#me { margin-top: clamp(100px, 11vh, 160px); align-items: center; }
#me h1, #me .lead { animation: none; translate: none; }

/* work samples: a heading, then one column per kind of work */
.works { width: min(100% - 2 * var(--margin), 1360px); margin: var(--gap-section) auto 0; display: grid; gap: 40px; }
.works h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.works-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.works-groups > div { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.works-groups h3 { font-size: 1.375rem; font-weight: 650; font-stretch: 112%; }
.works .soon { color: var(--muted); }
/* released tracks: the cover, the title over the artist; the artist in small spaced caps like the site's
   engraved labels. A press on the row plays its excerpt (portfolio.js): the cover carries a play sign (a pause
   while it sounds), the thin line under the row fills with the position. */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; }
.tracks li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; column-gap: 20px;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); cursor: pointer; }
.tracks li:last-child { border-bottom: 0; }
.tracks audio { display: none; }
.tracks .play { position: relative; display: block; width: 64px; height: 64px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.04);
  overflow: hidden; cursor: pointer; color: #fff; }
.tracks .play img { width: 100%; height: 100%; display: block; opacity: 0.62; transition: opacity 250ms ease; }
.tracks .play svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  transition: opacity 200ms ease, transform 250ms var(--ease-out); filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5)); }
.tracks .i-play { fill: currentColor; }
.tracks .i-pause { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: scale(0.9); }
.tracks .playing .i-play { opacity: 0; transform: scale(0.9); }
.tracks .playing .i-pause { opacity: 1; transform: none; }
.tracks .playing .play img { opacity: 0.45; }
.tracks .loading .i-pause { animation: track-wait 900ms ease-in-out infinite alternate; }
@keyframes track-wait { to { opacity: 0.35; } }
.tracks .line { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.tracks .name { display: grid; gap: 6px; min-width: 0; }
.tracks .title { font-size: 1.125rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; transition: color 200ms ease; }
.tracks .playing .title { color: #fff; }
.tracks .artist { color: var(--muted); font-size: 0.75rem; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .tracks li:hover .play img { opacity: 0.8; }
  .tracks li:hover:not(.playing) .i-play { transform: scale(1.08); }
  .tracks li:hover .title { color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .tracks .loading .i-pause { animation: none; } }
@media (max-width: 760px) {
  .works { width: auto; margin-inline: 16px; }
  .works-groups { grid-template-columns: 1fr; }
}
