/* TrillCo. project cards and square punctuation */
.card-art { position:relative; isolation:isolate; overflow:hidden; background:var(--ink); }
.card-art figure { margin:0; }
.card-art figure::after { content:none; }
.card-art figure:first-child a { display:block; }
.card-art figure:first-child a::after { content:''; position:absolute; inset:0; z-index:2; }
.card-art .card-alternate { position:absolute; inset:0; pointer-events:none; clip-path:inset(100% 0 0 0); background:var(--ink); }
.card-art .card-alternate img { width:100%; height:100%; object-fit:cover; }
.card-art::after { content:''; position:absolute; z-index:3; right:clamp(.7rem,1.3vw,1.35rem); bottom:clamp(.7rem,1.3vw,1.35rem); width:1rem; aspect-ratio:1; background:var(--gold); pointer-events:none; }
.card-art:focus-within { outline:3px solid var(--gold); outline-offset:-3px; }
:is(.project,.sport-client):focus-within .card-alternate { clip-path:inset(0); }
    :is(.project,.sport-client):hover .card-alternate { clip-path:inset(0); }
    :is(.project,.sport-client):hover .card-art::after { transform:scale(1.35); }
.sport-client .card-art { grid-column:1/-1; grid-row:1; }
.sport-client .card-art figure { background:var(--ink); }
.sport-client .card-art .card-alternate { display:grid; place-items:center; }
.sport-client .card-art .card-alternate img { object-fit:contain; }
.invitation h2 a { display:flex; align-items:baseline; justify-content:space-between; gap:.35em; }
.invitation h2 a::after,.under a::after,.credit a::after,.action a::after {
    content:''; display:inline-block; flex:none; width:.48em; height:.48em;
    background:currentColor; border:0; margin-left:.65em; transform:none;
}
.invitation h2 a::after { width:.32em; height:.32em; margin:0; }
.invitation h2 a:is(:hover,:focus-visible)::after { transform:scale(1.3); }
.under a:hover::after,.action a:hover::after { transform:scale(1.25); }
.foot a[href="#studio-top"]::after,.foot a[href="#main"]::after { content:''; display:inline-block; background:var(--gold); width:.45em; height:.45em; margin-left:.55em; }
@media(prefers-reduced-motion:no-preference) {
    .card-alternate { transition:clip-path .36s cubic-bezier(.25,.75,.25,1); }
    .card-art::after,.invitation h2 a::after { transition:transform .2s; }
}
@media(prefers-reduced-motion:reduce) {
    .card-art img,.card-art::after,.card-alternate,.invitation h2 a::after { transition:none; }
}
.editor-styles-wrapper .card-art .card-alternate { position:static; clip-path:none; pointer-events:auto; }

/* Link decoration and portfolio titles share the same treatment throughout. */
a:any-link, a:any-link:is(:hover,:focus,:active), a:any-link .wp-block-navigation-item__label {
    text-decoration: none !important;
}
.under a,.action a { border-bottom:0; }
a:focus-visible { outline:3px solid currentColor; outline-offset:4px; }
.story p a,.lead a { font-weight:700; }
.project :is(h2,h3),.sport-client h3 {
    font-size:clamp(1.55rem,2.5vw,2.8rem);
    line-height:1.02; letter-spacing:-.05em;
}
.project > .card-art + :is(h2,h3) { margin-top:1rem; }
:is(h1,h2,h3,h4,h5,h6) a { font-family:inherit; font-weight:inherit; }
