/* AS Training | unused.css

   Styles for section types and variations no page on this site uses
   yet. Linked on every page ahead of the others, so a section added
   later is styled straight away - move its rules into sections.css
   then, if you like, to keep them together. */

/* Contents

     The building blocks - headings, pictures, bands, lists and buttons
     Set pieces - cards, steps, options and the rest
     Dark pages
     The call-to-action banner
     Wider and narrower screens
     Contact pieces
     More set pieces: the pull quote, the icon row, the number feature, questions and the picture pair
     Section trims
     Fluid page width
     Where the keyboard is
     Page builder settings - framed pictures, cards on hover, card colours
     Pictures that move - a slideshow, and a before and after
     Parts: lines set as a tag, a figure, a quote, a name ( a blank section's parts, outside the set pieces' own cards )
     Columns: a picture first on a phone, and text set across
     Fonts - Adobe Fonts: aptos-slab headings; H1 in capitals, H2 in capitals, H3 in the body font ( Montserrat ), as typed ( never forced into capitals ), H4 in capitals ( the Font choice step )
     Skin - Paladin: corporate and polished
     Paladin, through every section
     The buttons - Paladin: the badge pill
     The banner's button - Paladin */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The building blocks - headings, pictures, bands, lists and buttons */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - a picture inside a piece - - - */

.piece-shot-wide
{
    aspect-ratio: 16 / 9;
}

.piece-shot-tall
{
    aspect-ratio: 4 / 5;
}

.piece-shot-square
{
    aspect-ratio: 1 / 1;
}

@media( min-width: 768px )
{
    .piece-split-fill > .element:not( .a4 ) > .piece-media
    {
        display: grid;
    }
}

/* - - - bands - - - */

.piece-band
{
    padding: 64px 0;

    background-color: var( --ink );
}

.piece-band :is( h1, h2, h3, h4, p, li, b, blockquote )
{
    color: var( --on-ink );
}

.piece-band-image
{
    padding: 64px 0;

    background-color: var( --ink );
    background-image: linear-gradient( var( --shade-deep ), var( --shade-deep ) ), url( "../img/src/band.jpg" );
    background-position: center center;
    background-size: cover;
}

.piece-band-image :is( h1, h2, h3, h4, p, li, b, blockquote )
{
    color: var( --on-ink );
}

/* - - - coloured sections meet flush - - - */

#page-content > section.piece-dark-alt + section.piece-dark,
#page-content > section.piece-dark + section.piece-dark-alt
{
    margin-top: calc( var( --page-gap, 32px ) * -1 );
}

/* - - - boxes - - - */

.piece-box
{
    align-content: start;
    padding: 32px;
    box-sizing: border-box;

    background-color: var( --paper );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 4px 16px var( --shade-light );

    transition: ease all .3s;
}

.piece-box:hover
{
    transform: translateY( -6px );
}

.piece-box :is( h2, h3, h4, p, li )
{
    color: var( --text );
}

.piece-box h3
{
    color: var( --accent-text );
}

/* - the dark box, for a band - */
.piece-box-dark
{
    background-color: var( --ink );
    box-shadow: 0 4px 16px var( --shade );
}

.piece-box-dark :is( h2, h4, p, li )
{
    color: var( --on-ink );
}

.piece-box-dark h3
{
    color: var( --accent-dark );
}

.piece-band .piece-box-dark,
.piece-band-image .piece-box-dark
{
    background-color: var( --shade-deep );
}

/* - - - a bullet list - - - */

.piece-list
{
    display: grid;
    grid-gap: 8px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.piece-list li
{
    position: relative;
    display: block;
    padding-left: 28px;
}

.piece-list li::before
{
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;

    font-weight: 700;
    color: var( --accent );
}

/* - */
.piece-list-chevron li::before
{
    content: "\203A";
    top: .05em;

    font-size: 1.4em;
    line-height: 1;
}

/* on a band or a dark page the mark takes the accent as it reads on the dark */
:is( .piece-band, .piece-band-image, .piece-dark ) div.list > p::before
{
    color: var( --accent-dark );
}

/* - - - a pulled-out quote - - - */

.piece-quote
{
    align-content: start;
    margin: 0;
    padding: 24px 24px 24px 28px;
    box-sizing: border-box;

    border-left: solid 3px var( --accent );
    border-radius: 0 15px 15px 0;
    background-color: var( --shade-faint );
}

.piece-quote p
{
    font-style: italic;
}

.piece-quote-who
{
    font-style: normal;
    font-weight: 600;
    opacity: .8;
}

.piece-band .piece-quote,
.piece-band-image .piece-quote
{
    background-color: var( --glow-faint );
}

/* - - - buttons - - - */

/* - */
.piece-btn-alt
{
    background-color: transparent;
}

.piece-btn-alt :is( h4, p, span )
{
    color: var( --accent-text );
}

/* - inside a band, the solid one turns white so it cannot vanish - */
:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn
{
    background-color: var( --paper );
    border-color: var( --paper );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn :is( h4, p, span )
{
    color: var( --ink );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --on-ink-muted );
}

:is( .piece-band, .piece-band-image, .piece-cover ) .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

/* - - - a row of logos - accreditations, trade bodies - - - */

.piece-logos img
{
    max-height: 96px;
    max-width: 100%;
    justify-self: center;
    align-self: center;
}

/* - - - a divider, for pages with no bands - - - */

.piece-rule
{
    width: 100%;
    height: 1px;
    margin: 0;

    background-color: var( --shade-light );
    border: 0;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Set pieces - cards, steps, options and the rest */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - hierarchy - - - */

.piece-second
{
    color: var( --accent-text );
}

.piece-second::before
{
    content: "\A";
    white-space: pre;
}

/* - - - imagery - - - */

.piece-media
{
    position: relative;
    display: grid;
    width: 100%;
}

.piece-media > *
{
    position: relative;
    z-index: 1;
}

.piece-float
{
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: 20px;

    display: grid;
    grid-gap: 4px;
    max-width: 240px;
    padding: 18px 22px;
    box-sizing: border-box;

    background-color: var( --paper );
    border-radius: var( --piece-radius-card, 14px );
}

.piece-float b
{
    font-size: 30px;
    line-height: 1;
    color: var( --accent );
}

.piece-float p
{
    font-size: 14px;
    line-height: 1.4;
    color: var( --text );
}

.piece-media-left .piece-float
{
    right: 20px;
    left: auto;
}

/* - three or more pictures together: one large, the rest beside it - */
.piece-mosaic
{
    display: grid;
    grid-gap: 16px;
}

.piece-mosaic .piece-shot
{
    border-radius: var( --piece-radius-media, 14px );
}

/* - - - numbers and steps - - - */

.piece-steps
{
    display: grid;
    grid-gap: 24px;

    counter-reset: piece-step;
}

.piece-step
{
    display: grid;
    grid-gap: 10px;
    align-content: start;
    padding: 28px;
    box-sizing: border-box;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );

    counter-increment: piece-step;
}

.piece-step::before
{
    content: counter( piece-step, decimal-leading-zero );

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var( --accent-text );
}

.piece-step-mark
{
    order: -1;

    color: var( --accent );
}

.piece-stat-mark
{
    color: var( --accent );
}

:is( .piece-step-mark, .piece-stat-mark ) :is( i, svg )
{
    display: block;

    width: 34px;
    height: 34px;

    font-size: 34px;
}

:is( .piece-step-mark, .piece-stat-mark ) svg.piece-decal
{
    width: 80px;
    height: 80px;
}

.piece-dark :is( .piece-step-mark, .piece-stat-mark )
{
    color: var( --accent-dark );
}

.piece-step :is( h3, p, li )
{
    color: var( --text );
}

/* - - - cards - - - */

/* - a card with its picture on top, edge to edge - */
.piece-card-image
{
    padding-top: 0;
}

.piece-card-image > .piece-shot
{
    margin: 0 -28px 8px;
    border-radius: 0;
}

/* - - - option cards - - - */

.piece-options
{
    align-items: stretch;
}

.piece-option
{
    position: relative;
    display: grid;
    grid-gap: 14px;
    align-content: start;
    padding: 40px 32px 36px;
    box-sizing: border-box;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 20px );

    transition: ease all .3s;
}

.piece-option:hover
{
    transform: translateY( -4px );
    box-shadow: 0 24px 48px -28px var( --shade );
}

.piece-option :is( h3, h4 )
{
    color: var( --ink );
}

.piece-option :is( p, li )
{
    color: var( --text-soft );
}

/* - the price or the headline figure of an option - */
.piece-option-price
{
    font-size: 15px;
}

.piece-option-price b
{
    font-size: clamp( 30px, 3.4vw, 42px );
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var( --ink );
}

/* - the small pill on top - */
.piece-option-tag
{
    position: absolute;
    top: 0;
    left: 32px;
    transform: translateY( -50% );

    padding: 6px 14px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var( --on-accent );

    background-color: var( --accent );
    border-radius: var( --piece-radius-btn, 20px );
}

/* - the featured one: dark, lifted - */
section .piece-option.piece-option-featured
{
    background-color: var( --ink );
    border-color: var( --ink );
    box-shadow: 0 32px 64px -32px var( --shade-deep );
}

section .piece-option.piece-option-featured :is( h3, h4, b, .piece-option-price b )
{
    color: var( --on-ink );
}

section .piece-option.piece-option-featured :is( p, li )
{
    color: var( --on-ink-soft );
}

section .piece-option.piece-option-featured .piece-option-tag
{
    color: var( --on-accent-dark );

    background-color: var( --accent-dark );
}

section .piece-option.piece-option-featured .piece-list li::before
{
    color: var( --accent-dark );
}

section .piece-option.piece-option-featured .piece-btn
{
    background-color: var( --accent-dark );
    border-color: var( --accent-dark );
}

section .piece-option.piece-option-featured .piece-btn :is( h4, p, span )
{
    color: var( --on-accent-dark );
}

/* - - - more on the cards - - - */

/* - the shared surface of the newer cards - */
:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat )
{
    position: relative;
    display: grid;
    align-content: start;
    box-sizing: border-box;
    overflow: hidden;

    text-align: left;
    text-decoration: none;

    background-color: var( --paper );
    border: solid 1px var( --shade-light );
    border-radius: var( --piece-radius-card, 16px );
    box-shadow: 0 1px 2px var( --shade-faint );

    transition: ease all .3s;
}

/* the ones that are links lift a little */
:is( a.piece-category, a.piece-article, .piece-product ):hover
{
    transform: translateY( -4px );
    box-shadow: 0 24px 48px -26px var( --shade );
}

:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article ) :is( h3, h4 )
{
    margin: 0;

    color: var( --ink );
}

:is( .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article ) p
{
    margin: 0;

    color: var( --text-soft );
}

/* a picture across the top of a card, edge to edge */
:is( .piece-product, .piece-member, .piece-category, .piece-article ) > .piece-shot
{
    width: 100%;
    border-radius: 0;
}

/* - a price on a card - */
.piece-card-price
{
    margin-top: 4px;

    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var( --ink );
}

/* - - - service cards: icons, prices, links, dark and tinted - - - */

:is( .piece-card, :where( .piece-stats-cards ) > .piece-stat ) > svg.piece-decal
{
    width: 38px;
    height: 38px;
    padding: 7px;
}

.piece-card-image > .piece-shot + :is( i, svg )
{
    position: relative;
    z-index: 1;
    margin-top: -42px;

    box-shadow: 0 6px 16px -8px var( --shade );
}

/* the dark card - one in a row, to pick out the lead service */
section .piece-card.piece-card-dark
{
    background-color: var( --ink );
    border-color: var( --ink );
}

section .piece-card.piece-card-dark :is( h3, h4, .piece-card-price )
{
    color: var( --on-ink );
}

section .piece-card.piece-card-dark :is( p, li )
{
    color: var( --on-ink-soft );
}

section .piece-card.piece-card-dark .piece-card-link
{
    color: var( --accent-dark );
}

section .piece-card.piece-card-dark > :is( i, svg )
{
    color: var( --accent-dark );

    background-color: var( --glow-faint );
}

section .piece-card.piece-card-dark::before
{
    background-color: var( --accent-dark );
}

section .piece-card.piece-card-tint
{
    background-color: color-mix( in srgb, var( --accent ) 13%, #fff );
    border-color: transparent;
}

/* - - - price cards: the price per period, ticks, an outline button - - - */

.piece-option-price span
{
    font-size: 15px;
    opacity: .75;
}

.piece-option .piece-checklist
{
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 10px;
    margin-top: 4px;
}

.piece-option .piece-checklist > :is( li, p )
{
    min-height: 20px;
    padding-left: 30px;

    font-size: 15px;
}

.piece-option .piece-checklist > :is( li, p )::before
{
    width: 20px;
    height: 20px;

    font-size: 11px;
}

.piece-option > .piece-btn
{
    justify-self: stretch;
    margin-top: 10px;
}

.piece-option:not( .piece-option-featured ) > .piece-btn
{
    background-color: transparent;
    border-color: var( --accent );
}

.piece-option:not( .piece-option-featured ) > .piece-btn :is( h4, p, span )
{
    color: var( --accent-text );
}

section .piece-option.piece-option-featured .piece-checklist > :is( li, p )::before
{
    color: var( --on-accent-dark );

    background-color: var( --accent-dark );
}

/* - - - info / stat cards - - - */

.piece-stats.piece-stats-cards
{
    grid-gap: 24px;
    padding: 0;

    border: 0;
}

.piece-stats-cards > .piece-stat
{
    grid-gap: 8px;
    justify-items: start;
    padding: 28px 26px;

    text-align: left;
}

.piece-stats-cards > .piece-stat > :is( i, svg )
{
    margin-bottom: 6px;
}

.piece-stats-cards .piece-stat b
{
    color: var( --ink );
}

.piece-stats-cards .piece-stat p
{
    justify-self: start;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var( --ink );
    opacity: 1;
}

.piece-stats-cards .piece-stat p.piece-stat-note
{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: var( --text-soft );
}

@media( min-width: 900px )
{
    .piece-stats.piece-stats-cards
    {
        grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) );
    }
}

/* - - - product cards - - - */

.piece-product > .piece-shot
{
    aspect-ratio: 5 / 4;
}

.piece-product-tag
{
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 5px 10px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var( --on-ink ) !important;

    background-color: var( --ink );
    border-radius: var( --piece-radius-btn, 20px );
}

.piece-product-body
{
    display: grid;
    grid-gap: 8px;
    align-content: start;
    padding: 20px 22px 24px;
}

.piece-product-body h3
{
    font-size: 18px;
}

.piece-product-body p
{
    font-size: 14.5px;
    line-height: 1.55;
}

/* - - - team cards - - - */

.piece-member > .piece-shot
{
    aspect-ratio: 1 / 1;
}

.piece-member-body
{
    display: grid;
    grid-gap: 6px;
    align-content: start;
    padding: 20px 22px 24px;
}

.piece-member-body h3
{
    font-size: 19px;
}

.piece-member-body p.piece-member-role
{
    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 600;
    color: var( --accent-text );
}

.piece-member-body p
{
    font-size: 14.5px;
    line-height: 1.55;
}

.piece-member-links
{
    display: grid;
    grid-auto-flow: column;
    grid-gap: 14px;
    justify-content: start;
    margin-top: 10px;
}

.piece-member-links a
{
    font-size: 17px;
    color: var( --text-muted );
    text-decoration: none;
}

.piece-member-links a:hover
{
    color: var( --accent-text );
}

/* - - - testimonial cards - - - */

.piece-testimonial
{
    grid-gap: 18px;
    padding: 64px 28px 28px;
}

.piece-testimonial::before
{
    content: "\201C";
    position: absolute;
    top: 14px;
    left: 24px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    line-height: 1;
    color: var( --accent );
}

.piece-testimonial > p
{
    font-size: 16px;
    line-height: 1.65;
}

.piece-testimonial-who
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 2px 14px;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.piece-testimonial-who:has( > img )
{
    grid-template-columns: 48px minmax( 0, 1fr );
}

.piece-testimonial-who > img
{
    grid-row: span 3;
    width: 48px;
    height: 48px;

    object-fit: cover;
    border-radius: 50%;
}

.piece-testimonial-who b
{
    font-size: 15px;
    color: var( --ink );
}

.piece-testimonial-who span
{
    font-size: 13px;
    color: var( --text-muted );
}

.piece-stars
{
    font-size: 15px;
    letter-spacing: .12em;
    color: var( --accent );
}

section .piece-testimonial.piece-testimonial-dark
{
    background-color: var( --ink );
    border-color: var( --ink );
}

section .piece-testimonial.piece-testimonial-dark :is( p, b )
{
    color: var( --on-ink );
}

section .piece-testimonial.piece-testimonial-dark span
{
    color: var( --on-ink-muted );
}

section .piece-testimonial.piece-testimonial-dark::before
{
    color: var( --accent-dark );
}

section .piece-testimonial.piece-testimonial-tint
{
    background-color: color-mix( in srgb, var( --accent ) 13%, #fff );
    border-color: transparent;
}

/* - - - category cards - - - */

.piece-category > .piece-shot
{
    aspect-ratio: 16 / 11;
}

.piece-category-body
{
    display: grid;
    grid-gap: 6px;
    align-content: start;
    padding: 16px 20px 44px;
}

.piece-category-body > :is( i, svg )
{
    width: 22px;
    height: 22px;
    margin-bottom: 4px;

    font-size: 22px;
    color: var( --accent );
}

.piece-category-body h3
{
    font-size: 17px;
}

.piece-category-body p
{
    font-size: 13.5px;
    color: var( --text-muted );
}

:is( .piece-category-body, .piece-article-body )
{
    position: relative;
}

:is( .piece-category-body, .piece-article-body )::after
{
    content: "\2192";
    position: absolute;
    right: 20px;
    bottom: 16px;

    font-size: 18px;
    line-height: 1;
    color: var( --ink );

    transition: ease transform .3s;
}

:is( .piece-category, .piece-article ):hover :is( .piece-category-body, .piece-article-body )::after
{
    transform: translateX( 4px );
}

/* - - - article cards - - - */

.piece-article > .piece-shot
{
    aspect-ratio: 16 / 9;
}

.piece-article-body
{
    display: grid;
    grid-gap: 8px;
    align-content: start;
    padding: 18px 22px 48px;
}

.piece-article-body p.piece-article-label
{
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --accent-text );
}

.piece-article-body h3
{
    font-size: 18px;
    line-height: 1.3;
}

.piece-article-body p
{
    font-size: 13px;
    color: var( --text-muted );
}

/* - - - the tinted band - - - */

/* the dark bands get a touch more air in the designed layer */
.piece-band.piece-roomy,
.piece-band-image.piece-roomy
{
    padding: 96px 0;
}

/* - - - lists - - - */

/* a two-column checklist for a run of short benefits */
.piece-checklist
{
    display: grid;
    grid-gap: 14px 32px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.piece-checklist > :is( li, p )
{
    position: relative;
    display: block;
    min-height: 28px;
    padding-left: 40px;
}

.piece-centre .piece-checklist
{
    justify-self: center;
    justify-content: center;
}

.piece-centre .piece-checklist > :is( li, p )
{
    justify-self: start;

    text-align: left;
}

/* in the padding, not a grid column - see .piece-list li::before */
.piece-checklist > :is( li, p )::before
{
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: var( --on-accent );

    background-color: var( --accent );
    border-radius: var( --piece-radius-icon, 50% );
}

/* - - - opening hours - - - */

.piece-hours
{
    display: grid;
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.piece-hours > div
{
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 16px;
    justify-content: space-between;
    padding: 14px 0;

    border-bottom: solid 1px var( --shade-light );
}

.piece-hours dt
{
    font-weight: 600;
    color: var( --ink );
}

.piece-hours dd
{
    margin: 0;

    text-align: right;
    color: var( --text-soft );
}

.piece-centre .piece-hours,
.piece-intro + .piece-hours
{
    justify-self: center;
}

/* - - - a price list - - - */

.piece-prices
{
    display: grid;
    grid-gap: 56px;
    width: 100%;
}

.piece-price-group
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 24px;
}

.piece-price-group > .piece-shot
{
    aspect-ratio: 16 / 7;
    width: 100%;
}

@media( min-width: 900px )
{
    .piece-price-group
    {
        grid-template-columns: minmax( 0, 1fr ) minmax( 0, 3fr );
        grid-gap: 48px;
        align-items: stretch;
    }

    .piece-price-group > .piece-shot
    {
        aspect-ratio: auto;
        height: 100%;
        min-height: 260px;
        max-height: 560px;
    }
}

.piece-price-group:not( :has( > .piece-shot ) )
{
    grid-template-columns: minmax( 0, 1fr );
    width: 100%;
}

@media( min-width: 900px )
{
    .piece-prices:not( :has( .piece-shot ) ):has( > .piece-price-group:nth-child( 2 ) )
    {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
        grid-gap: 56px 72px;
        align-items: start;
    }
}

.piece-price-list
{
    display: grid;
    grid-gap: 0;
    align-content: start;
}

.piece-price-head
{
    display: grid;
    grid-template-columns: auto minmax( 0, 1fr );
    grid-gap: 0 24px;
    align-items: end;
    padding-bottom: 8px;
}

.piece-price-head::after
{
    content: "";
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    height: 1px;
    margin-bottom: .55em;

    background-color: var( --accent );
    opacity: .45;
}

.piece-price-head h3
{
    grid-column: 1;
    grid-row: 1;

    font-size: clamp( 28px, 3vw, 40px );
    line-height: 1.1;
    color: var( --ink );
}

.piece-price-tag
{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    margin-bottom: calc( .55em + 10px );

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: right;
    color: var( --accent-text );
}

/* - one row: what it is, how long, how much - */
.piece-price-item
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr ) auto minmax( 64px, auto );
    grid-gap: 0 28px;
    align-items: center;
    padding: 18px 0;

    border-bottom: solid 1px var( --tint-line );
}

.piece-price-item:last-child
{
    border-bottom: none;
}

.piece-price-what
{
    display: grid;
    grid-gap: 4px;
}

.piece-price-what p
{
    font-size: 14px;
    line-height: 1.5;
    color: var( --text-muted );
}

.piece-price-what .piece-price-name
{
    font-size: 17px;
    line-height: 1.35;
    color: var( --ink );
}

.piece-price-time
{
    font-size: 13px;
    color: var( --text-muted );
    white-space: nowrap;
}

.piece-price-cost
{
    grid-column: 3;
    justify-self: end;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var( --ink );
}

@media( max-width: 599px )
{
    .piece-price-head
    {
        grid-template-columns: minmax( 0, 1fr );
    }

    /* on a phone the rule runs under the heading, and the tag line goes */
    .piece-price-head::after
    {
        grid-column: 1;
        grid-row: 2;
        margin: 10px 0 0;
    }

    .piece-price-tag
    {
        display: none;
    }

    /* the time tucks under the price, so the words get the width */
    .piece-price-item
    {
        grid-template-columns: minmax( 0, 1fr ) auto;
        grid-gap: 2px 16px;
        align-items: start;
        padding: 14px 0;
    }

    .piece-price-what
    {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .piece-price-cost
    {
        grid-column: 2;
        grid-row: 1;
        font-size: 18px;
    }

    .piece-price-time
    {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-size: 12px;
    }
}

/* - - - a price menu - - - */

.piece-menu
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 48px;
    width: 100%;
}

@media( min-width: 900px )
{
    .piece-menu:has( > .piece-menu-group:nth-child( 2 ) ):not( :has( > .piece-menu-group:nth-child( 3 ) ) )
    {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
        grid-gap: 56px 72px;
    }

    .piece-menu:has( > .piece-menu-group:nth-child( 3 ) )
    {
        display: block;
        max-width: none;
        column-count: 2;
        column-gap: 72px;
    }

    .piece-menu:has( > .piece-menu-group:nth-child( 3 ) ) > .piece-menu-group
    {
        margin-bottom: 52px;
        break-inside: avoid;
    }
}

.piece-menu-group
{
    display: grid;
    grid-gap: 4px;
    align-content: start;
}

.piece-menu-head
{
    display: grid;
    grid-template-columns: auto minmax( 24px, 1fr );
    grid-gap: 16px;
    align-items: center;
    margin-bottom: 10px;
}

.piece-menu-head:has( > :is( i, svg ) )
{
    grid-template-columns: auto auto minmax( 24px, 1fr );
}

.piece-menu-head::after
{
    content: "";
    height: 1px;

    background-color: var( --accent );
    opacity: .45;
}

.piece-menu-head :is( i, svg )
{
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 12px;

    font-size: 20px;
    color: var( --accent );

    border: solid 1.5px var( --accent );
    border-radius: var( --piece-radius-icon, 50% );
}

.piece-menu-head svg.piece-decal
{
    width: 30px;
    height: 30px;
    padding: 7px;
}

.piece-menu-head h3
{
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var( --accent-text );
}

/* the heading font is for display headings - not these small capitals */
html body .piece-menu-head h3
{
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* - a row: name, a dotted leader, the price - */
.piece-menu-item
{
    display: grid;
    grid-template-columns: auto minmax( 20px, 1fr ) auto;
    grid-gap: 0 10px;
    align-items: baseline;
    padding: 7px 0;
}

.piece-menu-item::after
{
    content: "";
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: .4em;

    border-bottom: dotted 1.5px var( --shade );
}

.piece-menu-name
{
    grid-column: 1;
    grid-row: 1;

    font-size: 16px;
    line-height: 1.45;
    color: var( --ink );
}

.piece-menu-cost
{
    grid-column: 3;
    grid-row: 1;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var( --ink );
}

@media( max-width: 599px )
{
    .piece-menu-head h3
    {
        font-size: 14px;
        letter-spacing: .14em;
    }
}

/* with an icon, the rows line up under the heading's words */
@media( min-width: 600px )
{
    .piece-menu-group:has( > .piece-menu-head > :is( i, svg ) ) > .piece-menu-item
    {
        margin-left: 62px;
    }
}

/* - - - featured services - - - */

.piece-features
{
    display: grid;
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 24px;
    width: 100%;
}

@media( min-width: 600px )
{
    .piece-features
    {
        grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    }
}

@media( min-width: 1100px )
{
    .piece-features:has( > .piece-feature:nth-child( 3 ) )
    {
        grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
    }

    .piece-features:has( > .piece-feature:nth-child( 4 ) )
    {
        grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
    }

    /* two side by side would be too wide - keep them to a pair */
    .piece-features:not( :has( > .piece-feature:nth-child( 3 ) ) )
    {
        max-width: 820px;
        justify-self: center;
    }
}

.piece-feature
{
    display: grid;
    grid-template-rows: auto auto 1fr;
    grid-gap: 0;
    overflow: hidden;

    text-align: center;

    background-color: var( --paper );
    border: solid 1px var( --tint-line );
    border-radius: var( --piece-radius-card, 10px );
}

.piece-feature > .piece-shot,
.piece-feature > .piece-shot img
{
    border-radius: 0;
}

.piece-feature > .piece-shot
{
    aspect-ratio: 4 / 3;
}

/* the icon sits on the photo's lower edge, half over it */
.piece-feature > :is( i, svg )
{
    position: relative;
    z-index: 1;
    justify-self: center;
    box-sizing: content-box;
    width: 26px;
    height: 26px;
    margin-top: -32px;
    padding: 18px;

    font-size: 26px;
    color: var( --accent );

    background-color: var( --paper );
    border: solid 1.5px var( --accent );
    border-radius: var( --piece-radius-icon, 50% );
}

.piece-feature-body
{
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    grid-gap: 10px;
    justify-items: center;
    padding: 24px 28px 28px;
}

.piece-feature > :is( i, svg ) + .piece-feature-body
{
    padding-top: 14px;
}

/* centred whatever the template does with headings and paragraphs */
.piece-feature .piece-feature-body > :is( h3, p )
{
    justify-self: center;
    text-align: center;
}

.piece-feature-body h3
{
    font-size: clamp( 22px, 2vw, 28px );
    line-height: 1.15;
    text-align: center;
    color: var( --ink );
}

.piece-feature-body p
{
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: var( --text-muted );
}

.piece-feature-body .piece-feature-kind
{
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var( --text-muted );
}

/* no kind line: the description takes the row that would grow */
.piece-feature-body:not( :has( > .piece-feature-kind ) )
{
    grid-template-rows: auto 1fr auto auto;
}

.piece-feature-body .piece-feature-cost
{
    align-self: end;
    width: 100%;
    margin-top: 8px;
    padding-top: 18px;

    font-size: 30px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var( --accent-text );

    border-top: solid 1px var( --tint-line );
}

.piece-feature-body .piece-btn
{
    justify-self: stretch;
    justify-content: center;
    margin-top: 6px;
}

/* - - - reviews - - - */

/* a review on a card, with a large quote mark */
.piece-review
{
    position: relative;
    display: grid;
    grid-gap: 16px;
    align-content: start;
    margin: 0;
    padding: 56px 32px 32px;
    box-sizing: border-box;

    background-color: var( --paper );
    border-radius: var( --piece-radius-card, 18px );
    box-shadow: 0 24px 48px -28px var( --shade );
}

.piece-review::before
{
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 26px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 84px;
    line-height: 1;
    color: var( --accent );
}

.piece-review :is( p, h3 )
{
    color: var( --text );
}

.piece-review p
{
    font-size: 16px;
    line-height: 1.65;
}

.piece-review-who
{
    display: grid;
    grid-gap: 2px;
    padding-top: 16px;

    border-top: solid 1px var( --shade-light );
}

.piece-review-who b
{
    color: var( --ink );
}

/* - - - photo covers - - - */

.piece-cover
{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 112px 0;

    background-color: var( --ink );
}

.piece-cover-img
{
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.piece-cover::before
{
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
}

.piece-cover::before
{
    background-image: linear-gradient( 180deg, color-mix( in srgb, var( --cover-tone, var( --ink ) ) var( --cover-tint, 80% ), transparent ) 0%, color-mix( in srgb, var( --cover-tone, var( --ink ) ) var( --cover-tint-2, 90% ), transparent ) 100% );
}

.piece-cover-left::before
{
    background-image: linear-gradient( 90deg, color-mix( in srgb, var( --cover-tone, var( --ink ) ) var( --cover-tint-2, 95% ), transparent ) 0%, color-mix( in srgb, var( --cover-tone, var( --ink ) ) var( --cover-tint, 85% ), transparent ) 45%, color-mix( in srgb, var( --cover-tone, var( --ink ) ) var( --cover-tint-3, 35% ), transparent ) 100% );
}

.piece-cover-toned
{
    background-color: var( --cover-tone );
}

.piece-cover :is( h1, h2, h3, h4, b )
{
    color: var( --on-ink );
}

.piece-cover :is( p, li )
{
    color: var( --on-ink-soft );
}

.piece-cover .piece-eyebrow,
.piece-cover :is( .piece-accent, .piece-second ),
.piece-band :is( .piece-accent, .piece-second ),
.piece-band-image :is( .piece-accent, .piece-second )
{
    color: var( --accent-dark );
}

.piece-cover .piece-eyebrow::before
{
    background-color: var( --accent-dark );
}

/* a taller one, for an opening */
.piece-cover-tall
{
    display: grid;
    align-items: center;
    min-height: 560px;
}

/* - - - the ornament before the close - - - */

.piece-divider svg.piece-decal
{
    width: calc( var( --piece-mark, 34px ) * 1.6 );
    height: calc( var( --piece-mark, 34px ) * 1.6 );
}

.piece-divider .piece-divider-dot
{
    font-size: calc( var( --piece-mark, 34px ) * .32 );
    width: calc( var( --piece-mark, 34px ) * .32 );
    height: calc( var( --piece-mark, 34px ) * .32 );
}

.piece-dark .piece-divider-mark.is-tinted
{
    background-color: var( --accent-dark );
}

.piece-divider:is( [ style*="--divider-len" ], .has-divider-len )
{
    grid-template-columns: var( --divider-len ) auto var( --divider-len ) !important;
    justify-content: center;
}

.piece-divider:is( [ style*="--divider-thick" ], .has-divider-thick )::before,
.piece-divider:is( [ style*="--divider-thick" ], .has-divider-thick )::after
{
    height: var( --divider-thick ) !important;
    border-width: 0 !important;
}

.piece-divider:is( [ style*="--divider-mark" ], .has-divider-mark ) :is( i, svg ),
.piece-dark .piece-divider:is( [ style*="--divider-mark" ], .has-divider-mark ) :is( i, svg )
{
    color: var( --divider-mark ) !important;
}

.piece-divider:is( [ style*="--divider-mark" ], .has-divider-mark ) .piece-divider-mark.is-tinted
{
    background-color: var( --divider-mark ) !important;
}

.piece-divider:is( [ style*="--divider-colour" ], .has-divider-colour )::before,
.piece-divider:is( [ style*="--divider-colour" ], .has-divider-colour )::after
{
    background: var( --divider-colour ) !important;
}

.piece-dark .piece-divider,
.piece-dark .piece-divider :is( i, svg )
{
    color: var( --accent-dark );
}

.piece-dark .piece-divider::before,
.piece-dark .piece-divider::after
{
    background-color: var( --accent-dark );
}

/* - - - the close - - - */

.piece-close .piece-narrow
{
    display: grid;
    grid-gap: 16px;
    justify-items: center;
}

/* 64px under the heading in all - the grid's 16px plus this */
.piece-close .piece-btn-row
{
    margin-top: 48px;
}

.piece-close h3
{
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.piece-cta-panel
{
    position: relative;
    display: grid;
    grid-gap: 20px;
    justify-items: center;
    padding: 64px 32px;
    box-sizing: border-box;
    overflow: hidden;

    text-align: center;

    background-color: var( --ink );
    background-image: radial-gradient( circle at 85% 15%, color-mix( in srgb, var( --accent-dark ) 40%, transparent ), transparent 55% ),
                      radial-gradient( circle at 10% 100%, color-mix( in srgb, var( --accent-dark ) 20%, transparent ), transparent 45% );
    border-radius: 24px;
}

.piece-cta-panel :is( h1, h2, h3, p )
{
    justify-self: center;
    max-width: 680px;

    text-align: center;
    color: var( --on-ink );
}

.piece-cta-panel .piece-eyebrow
{
    color: var( --on-ink );
}

.piece-cta-panel .piece-eyebrow::before
{
    background-color: var( --paper );
}

.piece-cta-panel .piece-btn
{
    justify-self: center;

    background-color: var( --paper );
    border-color: var( --paper );
}

.piece-cta-panel .piece-btn :is( h4, p, span )
{
    color: var( --ink );
}

.piece-cta-panel .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --on-ink-muted );
}

.piece-cta-panel .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

.piece-cta-panel .piece-btn-row
{
    justify-content: center;
    justify-self: center;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Dark pages */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

section.piece-dark
{
    padding: 88px 0;

    background-color: var( --ink );
}

section.piece-dark-alt
{
    background-color: var( --ink-soft );
}

section.piece-divide.piece-dark
{
    padding: 0;
}

/* type */
.piece-dark :is( h1, h2, h3, h4, b, strong )
{
    color: var( --on-ink );
}

.piece-dark :is( p, li, dd )
{
    color: var( --on-ink-soft );
}

.piece-dark a:not( .piece-btn )
{
    color: var( --on-ink );
}

.piece-dark :is( .piece-eyebrow, .piece-accent, .piece-second, .piece-heading h3 ),
.piece-dark .piece-step::before
{
    color: var( --accent-dark );
}

.piece-dark .piece-eyebrow::before,
.piece-dark .piece-card::before
{
    background-color: var( --accent-dark );
}

.piece-dark .piece-heading
{
    border-bottom-color: var( --glow-line );
}

.piece-dark .piece-list li::before,
.piece-dark .piece-review::before,
.piece-dark .piece-stat b
{
    color: var( --accent-dark );
}

.piece-dark .piece-checklist > :is( li, p )::before
{
    color: var( --on-accent-dark );

    background-color: var( --accent-dark );
}

.piece-dark :is( .piece-stats, .piece-hours > div )
{
    border-color: var( --glow-line );
}

.piece-dark .piece-hours dt
{
    color: var( --on-ink );
}

.piece-dark :is( .piece-price-head h3, .piece-price-name, .piece-price-cost )
{
    color: var( --on-ink );
}

.piece-dark :is( .piece-price-what p:not( .piece-price-name ), .piece-price-time )
{
    color: var( --on-ink-muted );
}

.piece-dark .piece-price-tag
{
    color: var( --accent-dark );
}

.piece-dark .piece-price-head::after
{
    background-color: var( --accent-dark );
}

.piece-dark .piece-price-item
{
    border-color: var( --glow-line );
}

.piece-dark :is( .piece-menu-name, .piece-menu-cost )
{
    color: var( --on-ink );
}

.piece-dark .piece-menu-head h3,
.piece-dark .piece-menu-head :is( i, svg )
{
    color: var( --accent-dark );
}

.piece-dark .piece-menu-head :is( i, svg )
{
    border-color: var( --accent-dark );
}

.piece-dark .piece-menu-head::after
{
    background-color: var( --accent-dark );
}

.piece-dark .piece-menu-item::after
{
    border-color: var( --glow );
}

.piece-dark .piece-feature
{
    background-color: var( --glow-faint );
    border-color: var( --glow-line );
}

.piece-dark .piece-feature > :is( i, svg )
{
    color: var( --accent-dark );

    background-color: var( --ink );
    border-color: var( --accent-dark );
}

.piece-dark .piece-feature-body h3
{
    color: var( --on-ink );
}

.piece-dark .piece-feature-body :is( p, .piece-feature-kind )
{
    color: var( --on-ink-muted );
}

.piece-dark .piece-feature-body .piece-feature-cost
{
    color: var( --accent-dark );
    border-color: var( --glow-line );
}

/* faint panels instead of white cards */
.piece-dark :is( .piece-card, .piece-step, .piece-option, .piece-review, .piece-box, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat )
{
    background-color: var( --glow-faint );
    border: solid 1px var( --glow-line );
    box-shadow: none;
}

.piece-dark :is( .piece-card, .piece-step, .piece-option, .piece-review, .piece-box, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat ) :is( h3, h4, b )
{
    color: var( --on-ink );
}

.piece-dark :is( .piece-card, .piece-step, .piece-option, .piece-review, .piece-box, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, :where( .piece-stats-cards ) > .piece-stat ) :is( p, li )
{
    color: var( --on-ink-soft );
}

.piece-dark .piece-review-who
{
    border-top-color: var( --glow-line );
}

.piece-dark .piece-quote
{
    background-color: var( --glow-faint );
    border-left-color: var( --accent-dark );
}

/* the featured option and the floating card stay white, so they lift */
section.piece-dark .piece-option.piece-option-featured
{
    background-color: var( --paper );
    border-color: var( --paper );
}

section.piece-dark .piece-option.piece-option-featured :is( h3, h4, b, .piece-option-price b )
{
    color: var( --ink );
}

section.piece-dark .piece-option.piece-option-featured :is( p, li )
{
    color: var( --text-soft );
}

section.piece-dark .piece-option.piece-option-featured .piece-option-tag
{
    color: var( --on-accent );

    background-color: var( --accent );
}

section.piece-dark .piece-option.piece-option-featured .piece-btn
{
    background-color: var( --ink );
    border-color: var( --ink );
}

section.piece-dark .piece-option.piece-option-featured .piece-btn :is( h4, p, span )
{
    color: var( --on-ink );
}

.piece-dark .piece-float b
{
    color: var( --ink );
}

.piece-dark .piece-float p
{
    color: var( --text );
}

/* buttons */
.piece-dark .piece-btn
{
    background-color: var( --accent-dark );
    border-color: var( --accent-dark );
}

.piece-dark .piece-btn :is( h4, p, span )
{
    color: var( --on-accent-dark );
}

.piece-dark .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --glow-edge );
}

.piece-dark .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

.piece-dark .piece-option:not( .piece-option-featured ) > .piece-btn
{
    background-color: transparent;
    border-color: var( --glow-edge );
}

.piece-dark .piece-option:not( .piece-option-featured ) > .piece-btn :is( h4, p, span )
{
    color: var( --on-ink );
}

/* the panel and the tint band, set a shade apart from the dark around them */
.piece-dark .piece-cta-panel
{
    background-color: var( --ink-soft );
    border: solid 1px var( --glow-line );
}

.piece-dark-alt .piece-cta-panel
{
    background-color: var( --ink );
}

.piece-dark .piece-cta-panel .piece-btn
{
    background-color: var( --paper );
    border-color: var( --paper );
}

.piece-dark .piece-cta-panel .piece-btn :is( h4, p, span )
{
    color: var( --ink );
}

.piece-dark .piece-cta-panel .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --glow-edge );
}

.piece-dark .piece-cta-panel .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The call-to-action banner */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.piece-cta-band
{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 56px 0;

    background-color: var( --ink );
}

.piece-cta-band > .workspace
{
    grid-template-columns: minmax( 0, 1fr );
    grid-gap: 24px;
    align-items: center;
    justify-items: start;

    text-align: left;
}

/* the words and buttons sit over the picture's faded edge */
.piece-cta-band > .workspace > .element:not( .piece-cta-band-media )
{
    position: relative;
    z-index: 1;
}

.piece-cta-band-text
{
    display: grid;
    grid-gap: 10px;
    max-width: 640px;
}

.piece-cta-band :is( h2, h3, p )
{
    margin: 0;

    color: var( --on-ink );
}

.piece-cta-band h2
{
    font-size: clamp( 26px, 2.6vw, 36px );
    line-height: 1.15;
}

.piece-cta-band p
{
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    opacity: .92;
}

.piece-cta-band .piece-accent
{
    color: var( --accent-dark );
}

.piece-cta-band .piece-second
{
    color: inherit;

    opacity: .85;
}

.piece-cta-band .piece-btn-row
{
    justify-content: start;
    margin-top: 0;
}

.piece-cta-band .piece-btn
{
    justify-self: start;

    background-color: var( --paper );
    border-color: var( --paper );
}

.piece-cta-band .piece-btn :is( h4, p, span )
{
    color: var( --ink );
    opacity: 1;
}

.piece-cta-band .piece-btn :is( h4, span )::after
{
    content: "\2192";
    margin-left: 10px;
}

.piece-cta-band .piece-btn-alt
{
    background-color: transparent;
    border-color: var( --on-ink-muted );
}

.piece-cta-band .piece-btn-alt :is( h4, p, span )
{
    color: var( --on-ink );
}

.piece-cta-band .piece-btn-alt :is( h4, span )::after
{
    content: none;
}

.piece-cta-band-media
{
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: -56px calc( 50% - 50vw ) 0;
    aspect-ratio: 16 / 7;
    overflow: hidden;

    -webkit-mask-image: linear-gradient( to bottom, #000 55%, transparent );
    mask-image: linear-gradient( to bottom, #000 55%, transparent );
}

.piece-cta-band-media img
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media( min-width: 900px )
{
    .piece-cta-band
    {
        padding: 64px 0;
    }

    .piece-cta-band > .workspace
    {
        grid-template-columns: minmax( 0, 1fr ) auto;
        grid-gap: 48px;
    }

    .piece-cta-band .piece-btn-row
    {
        justify-self: end;
    }

    .piece-cta-band-photo
    {
        padding: 80px 0;
    }

    .piece-cta-band-photo > .workspace
    {
        grid-template-columns: minmax( 0, calc( 50% - 48px ) );
        grid-gap: 28px;
        align-content: center;
        min-height: 200px;
    }

    .piece-cta-band-photo .piece-btn-row
    {
        justify-self: start;
    }

    .piece-cta-band-media
    {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 50%;
        margin: 0;
        aspect-ratio: auto;

        -webkit-mask-image: linear-gradient( to right, transparent 0%, #000 38% );
        mask-image: linear-gradient( to right, transparent 0%, #000 38% );
    }
}

/* - on a dark page the dark band would vanish - it steps up a shade - */
.piece-cta-band.piece-dark
{
    background-color: var( --ink-soft );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Wider and narrower screens */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

@media( min-width: 768px )
{
    .piece-checklist
    {
        grid-template-columns: repeat( 2, 1fr );
    }

    .piece-centre .piece-checklist
    {
        grid-template-columns: repeat( 2, max-content );
    }

    .piece-mosaic
    {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .piece-mosaic > :first-child
    {
        grid-row: 1 / span 2;
    }

    .piece-mosaic > :first-child .piece-shot
    {
        height: 100%;
        aspect-ratio: auto;
    }

    .piece-cta-panel
    {
        padding: 80px 64px;
    }

    .piece-cover
    {
        padding: 140px 0;
    }
}

@media( min-width: 992px )
{
    .piece-steps
    {
        grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
    }

    .piece-option-featured
    {
        transform: scale( 1.04 );
    }

    .piece-option-featured:hover
    {
        transform: scale( 1.04 ) translateY( -4px );
    }
}

@media( max-width: 767px )
{
    .piece-float,
    .piece-media-left .piece-float
    {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: none;
        margin: -32px 16px 0;
    }

    section.piece-dark
    {
        padding: 64px 0;
    }

    .piece-cover
    {
        padding: 88px 0;
    }

    .piece-options
    {
        grid-gap: 40px;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Contact pieces */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - the cards - - - */

.piece-contact-card
{
    justify-items: start;
}

.piece-contact-card p
{
    overflow-wrap: anywhere;
}

.piece-contact-card a
{
    color: inherit;
    text-decoration: none;
}

.piece-contact-card a:hover
{
    color: var( --accent-text );
}

.piece-contact-note
{
    justify-self: center;
}

/* - - - the lines - - - */

/* a decal in the icon's place - the same tile, more of it drawing */
.piece-contact-line > svg.piece-decal
{
    width: 30px;
    height: 30px;
    padding: 7px;
}

.piece-contact-decal
{
    display: flex;
    justify-content: center;
    margin-bottom: 8px;

    color: var( --accent );
}

/* kept with the heading under it, whatever the section's spacing */
.gap-48 > .piece-contact-decal
{
    margin-bottom: -28px;
}

.gap-32 > .piece-contact-decal
{
    margin-bottom: -16px;
}

:is( .piece-contact-copy, .piece-contact-side ) .piece-contact-decal
{
    justify-content: flex-start;
}

.piece-contact-decal svg.piece-decal
{
    width: 72px;
    height: 72px;
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-decal
{
    color: var( --accent-dark );
}

/* - - - details + form - - - */

.piece-contact-form #contact #contact-submit
{
    justify-self: start;
    padding: 12px 32px;

    font-family: inherit;
    font-size: 16px;
    font-weight: var( --heading-strong, 700 );
    color: var( --on-accent );

    background-color: var( --accent );
    border-radius: var( --piece-radius-btn, 32px );
}

.piece-contact-form #contact #contact-submit:disabled
{
    opacity: .45;
    cursor: not-allowed;
}

/* - - - the contact block: the lines in a row - - - */

.piece-contact-row
{
    grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
    grid-gap: 24px 32px;
}

@media( min-width: 768px )
{
    .piece-contact-row
    {
        justify-items: center;
    }
}

/* - - - the socials: a row of round marks under the details - - - */

.piece-contact-socials
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.piece-contact-socials.piece-centre
{
    justify-content: center;
    margin-top: 0;
}

.piece-contact-copy > .piece-contact-socials
{
    margin-top: 8px;
}

.piece-contact-social
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;

    font-size: 18px;
    color: var( --accent );
    text-decoration: none;

    background-color: var( --tint );
    border-radius: var( --piece-radius-icon, 50% );

    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.piece-contact-social:hover,
.piece-contact-social:focus-visible
{
    color: var( --on-accent );
    background-color: var( --accent );
    transform: translateY( -2px );
}

/* - - - on the dark, and on a dark band - - - */

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-social
{
    color: var( --accent-dark );
    background-color: var( --glow-faint );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-social:is( :hover, :focus-visible )
{
    color: var( --on-accent-dark );
    background-color: var( --accent-dark );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line-words b
{
    color: var( --on-ink-muted );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line-words :is( a, span )
{
    color: var( --on-ink );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-line > :is( i, svg )
{
    color: var( --accent-dark );
    background-color: var( --glow-faint );
}

:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-panel
{
    background-color: var( --glow-faint );
    border-color: var( --glow-line );
    box-shadow: none;
}

/* the form stays a light panel, so its fields read */
:is( .piece-dark, .piece-band, .piece-band-image ) .piece-contact-form :is( h3, p, label )
{
    color: var( --ink );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* More set pieces: the pull quote, the icon row, the number feature, questions and the picture pair */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - a pull quote: one strong line of the copy, large - - - */

.piece-pull
{
    display: grid;
    grid-gap: 18px;
    justify-items: center;
    width: 100%;
    max-width: 860px;
    justify-self: center;

    text-align: center;
}

.piece-pull-mark
{
    color: var( --accent );
}

.piece-pull-mark :is( i, svg )
{
    display: block;

    width: 40px;
    height: 40px;

    font-size: 40px;
    line-height: 1;
}

.piece-pull-mark svg.piece-decal
{
    width: 96px;
    height: 96px;
}

.piece-pull .piece-pull-line
{
    font-size: clamp( 24px, 3vw, 38px );
    font-weight: var( --heading-regular, 400 );
    font-style: var( --heading-italic, italic );
    line-height: 1.3;
    letter-spacing: -.01em;
    text-wrap: balance;
    color: var( --text );
}

.piece-pull > p
{
    justify-self: center;

    text-align: center;
}

.piece-pull-left > p
{
    justify-self: start;

    text-align: left;
}

.piece-pull-quote
{
    position: relative;

    /* as wide as the line, so the marks sit at its corners */
    width: fit-content;
    max-width: 100%;
    padding: 26px 44px;
    box-sizing: border-box;
}

.piece-pull-quote > .piece-pull-line
{
    text-align: center;

    /* the words fill the box the marks sit at the corners of - balanced,
       the lines came out narrower than it, leaving the marks adrift */
    text-wrap: pretty;
}

.piece-pull-left .piece-pull-quote > .piece-pull-line
{
    text-align: left;
}

.piece-pull-open,
.piece-pull-close
{
    position: absolute;
    line-height: 1;
}

.piece-pull-open
{
    top: 0;
    left: 0;
}

.piece-pull-close
{
    right: 0;
    bottom: 0;
}

.piece-pull-quoted .piece-pull-mark :is( i, svg )
{
    width: 28px;
    height: 28px;

    font-size: 28px;
    opacity: .85;
}

@media( min-width: 768px )
{
    .piece-pull-quote
    {
        padding: 30px 60px;
    }

    .piece-pull-quoted .piece-pull-mark :is( i, svg )
    {
        width: 38px;
        height: 38px;

        font-size: 38px;
    }
}

.piece-pull .piece-pull-cite
{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --accent-text );
}

/* - left, with a rule down the side - */
.piece-pull-left
{
    justify-items: start;
    justify-self: start;
    padding-left: 32px;

    text-align: left;

    border-left: solid 4px var( --accent );
}

.piece-dark .piece-pull-mark,
.piece-dark .piece-pull .piece-pull-cite
{
    color: var( --accent-dark );
}

:is( .piece-band, .piece-band-image ) .piece-pull-mark,
:is( .piece-band, .piece-band-image ) .piece-pull .piece-pull-cite
{
    color: var( --on-ink-soft );
}

:is( .piece-band, .piece-band-image ) .piece-pull-left
{
    border-left-color: var( --on-ink-soft );
}

.piece-dark .piece-pull .piece-pull-line,
.piece-band .piece-pull .piece-pull-line,
.piece-band-image .piece-pull .piece-pull-line
{
    color: var( --on-ink );
}

.piece-dark .piece-pull-left
{
    border-left-color: var( --accent-dark );
}

/* - - - an icon row: short points, an icon or a decal each - - - */

.piece-iconrow
{
    display: grid;
    grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    grid-gap: 32px 24px;
}

.piece-iconrow-item
{
    display: grid;
    grid-gap: 8px;
    justify-items: center;
    align-content: start;

    text-align: center;
}

.piece-iconrow-mark
{
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 6px;

    color: var( --accent );
    background-color: var( --tint );
    border-radius: var( --piece-radius-icon, 50% );
}

.piece-iconrow-mark :is( i, svg )
{
    display: block;

    width: 28px;
    height: 28px;

    font-size: 28px;
}

/* a decal is a drawing: no tile behind it, and big enough to read */
.piece-iconrow-mark:has( svg.piece-decal )
{
    width: auto;
    height: auto;

    background: none;
}

.piece-iconrow-mark svg.piece-decal
{
    width: 64px;
    height: 64px;
}

.piece-iconrow-item > :is( h3, p )
{
    justify-self: center;

    text-align: center;
}

.piece-iconrow-item h3
{
    font-size: 18px;
    line-height: 1.3;
}

.piece-iconrow-item p
{
    font-size: 15px;
    line-height: 1.5;
    color: var( --text-soft );
}

.piece-band-tint .piece-iconrow-mark
{
    background-color: var( --paper );
}

.piece-dark .piece-iconrow-mark,
.piece-band .piece-iconrow-mark,
.piece-band-image .piece-iconrow-mark
{
    color: var( --accent-dark );
    background-color: var( --glow-faint );
}

.piece-dark .piece-iconrow-mark:has( svg.piece-decal ),
.piece-band .piece-iconrow-mark:has( svg.piece-decal )
{
    background: none;
}

@media( min-width: 768px )
{
    .piece-iconrow-3
    { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }

    .piece-iconrow-4
    { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }

    .piece-iconrow-5
    { grid-template-columns: repeat( 5, minmax( 0, 1fr ) ); }

    .piece-iconrow-6
    { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }
}

@media( min-width: 992px )
{
    .piece-iconrow-6
    { grid-template-columns: repeat( 6, minmax( 0, 1fr ) ); }
}

/* - - - how many to a row: the page builder's Per row on the grids the stylesheet lays out by itself ( steps, figures, featured services ) - two a row on a tablet, the number chosen on a wide screen; a phone keeps each grid's own - - - */

@media( min-width: 992px )
{
    #page-content .piece-per-3
    { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); }

    #page-content .piece-per-4
    { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }

    #page-content .piece-per-5
    { grid-template-columns: repeat( 5, minmax( 0, 1fr ) ); }
}

/* - - - an editorial wrap: the words flowing round an area of a photo - - - */

#page-content section.piece-wrap
{
    display: block;
    padding: 0 !important;
}

.piece-wrap-stage
{
    position: relative;
    isolation: isolate;
    width: 100%;
}

.piece-wrap-img
{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var( --wrap-ratio, 1.5 );

    object-fit: cover;
}

.piece-wrap-flow
{
    padding: 48px max( 24px, 6% ) 64px;
}

.piece-wrap-shape,
.piece-wrap-guide
{
    display: none;
}

.piece-wrap-flow > :not( .piece-wrap-shape )
{
    position: relative;
    z-index: 1;
    display: block;
    justify-self: stretch;
    max-width: none;
    margin: 0 0 20px;
}

.piece-wrap-flow .piece-eyebrow::before
{
    content: "";
    display: inline-block;
    width: 32px;
    margin-right: 12px;
    vertical-align: middle;
}

.piece-wrap-flow .piece-btn-row
{
    margin-top: 32px;
}

.piece-wrap-flow .piece-btn-row > .piece-btn
{
    margin: 0 12px 12px 0;
}

.piece-wrap-justify .piece-wrap-flow p
{
    text-align: justify;
    hyphens: auto;
}

@media( min-width: 768px )
{
    .piece-wrap-stage
    {
        background-color: var( --wrap-tone, var( --ink ) );
    }

    .piece-wrap-dark .piece-wrap-stage
    {
        background-color: var( --wrap-tone, var( --paper, #fff ) );
    }

    .piece-wrap-img
    {
        position: absolute;
        z-index: -2;
        top: 0;
        left: 0;
    }

    /* the tint over the photo */
    .piece-wrap-stage::before
    {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;

        background-color: color-mix( in srgb, var( --wrap-tone, var( --ink ) ) var( --wrap-tint, 30% ), transparent );
    }

    .piece-wrap-dark .piece-wrap-stage::before
    {
        background-color: color-mix( in srgb, var( --wrap-tone, var( --paper, #fff ) ) var( --wrap-tint, 30% ), transparent );
    }

    .piece-wrap-flow
    {
        display: flow-root;
        padding: 0;
    }

    /* room under the words, should they run past the photo's foot */
    .piece-wrap-flow > :last-child
    {
        margin-bottom: clamp( 32px, 5%, 80px );
    }

    .piece-wrap-shape
    {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var( --wrap-ratio, 1.5 );
    }

    /* the words on the left: the shape holds them off from the right */
    .piece-wrap-words-left .piece-wrap-shape
    {
        float: right;
    }

    .piece-wrap-words-right .piece-wrap-shape
    {
        float: left;
    }

    .piece-wrap-flow > :not( .piece-wrap-shape )
    {
        margin-left: clamp( 32px, 6%, 112px );
        margin-right: clamp( 32px, 6%, 112px );
    }

    .piece-wrap-flow > :not( .piece-wrap-shape ):nth-child( 2 )
    {
        margin-top: clamp( 48px, 8%, 128px );
    }

    .piece-wrap-placed .piece-wrap-flow > :not( .piece-wrap-shape )
    {
        max-width: var( --wrap-w, none );
        margin-left: var( --wrap-x, 6% );
        margin-right: 0;
    }

    .piece-wrap-placed .piece-wrap-flow > :not( .piece-wrap-shape ):nth-child( 2 )
    {
        margin-top: calc( var( --wrap-y, 8% ) / var( --wrap-ratio, 1.5 ) );
    }

    .piece-wrap-flow > :is( .piece-eyebrow, .piece-heading )
    {
        width: fit-content;
    }

    .piece-wrap-light .piece-wrap-flow :is( h1, h2, h3, h4, b )
    {
        color: var( --on-ink );
    }

    .piece-wrap-light .piece-wrap-flow p
    {
        color: var( --on-ink-soft );
    }

    .piece-wrap-light .piece-wrap-flow :is( .piece-eyebrow, .piece-accent, .piece-second )
    {
        color: var( --accent-dark );
    }

    .piece-wrap-light .piece-wrap-flow .piece-eyebrow::before
    {
        background-color: var( --accent-dark );
    }

    .piece-wrap-dark .piece-wrap-flow :is( h1, h2, h3, h4, b )
    {
        color: var( --ink );
    }

    .piece-wrap-dark .piece-wrap-flow p
    {
        color: var( --ink );
    }

    /* the builder's faint outline of the area */
    .piece-wrap-guide
    {
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: var( --wrap-ratio, 1.5 );

        pointer-events: none;
    }

    .piece-wrap-guide :is( polygon, path )
    {
        fill: rgba( 63, 129, 150, .12 );
        stroke: rgba( 255, 255, 255, .8 );
        stroke-width: 1.5px;
        stroke-dasharray: 6 5;
        vector-effect: non-scaling-stroke;
    }
}

/* - - - a slanted trio: three pictures in a row, cut apart on a slant - - - */

#page-content .element.piece-slants
{
    --slant: 64px;
    --slant-gap: 8px;

    display: flex;
    width: 100%;
    max-width: none;
    aspect-ratio: 3;
    overflow: hidden;

    border-radius: var( --piece-radius-media, 12px );
}

#page-content .element.piece-slants-gentle
{ --slant: 32px; }

#page-content .element.piece-slants-steep
{ --slant: 112px; }

#page-content .element.piece-slants-wide
{ --slant-gap: 20px; }

#page-content .element.piece-slants-none
{ --slant-gap: 0px; }

#page-content .element.piece-slants-short
{ aspect-ratio: 4.2; }

#page-content .element.piece-slants-tall
{ aspect-ratio: 2; }

#page-content .piece-slants-item
{
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
}

#page-content .piece-slants-item + .piece-slants-item
{
    margin-left: calc( var( --slant-gap ) - var( --slant ) );
}

#page-content .piece-slants .piece-slants-img
{
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;

    object-fit: cover;
    border-radius: 0;
}

/* leaning forward: each edge further right at the top */
.piece-slants-forward .piece-slants-item:first-child
{ clip-path: polygon( 0 0, 100% 0, calc( 100% - var( --slant ) ) 100%, 0 100% ); }

.piece-slants-forward .piece-slants-item:nth-child( 2 )
{ clip-path: polygon( var( --slant ) 0, 100% 0, calc( 100% - var( --slant ) ) 100%, 0 100% ); }

.piece-slants-forward .piece-slants-item:last-child
{ clip-path: polygon( var( --slant ) 0, 100% 0, 100% 100%, 0 100% ); }

/* leaning back: each edge further right at the foot */
.piece-slants-back .piece-slants-item:first-child
{ clip-path: polygon( 0 0, calc( 100% - var( --slant ) ) 0, 100% 100%, 0 100% ); }

.piece-slants-back .piece-slants-item:nth-child( 2 )
{ clip-path: polygon( 0 0, calc( 100% - var( --slant ) ) 0, 100% 100%, var( --slant ) 100% ); }

.piece-slants-back .piece-slants-item:last-child
{ clip-path: polygon( 0 0, 100% 0, 100% 100%, var( --slant ) 100% ); }

/* on a phone: taller for its width, the slant halved */
@media( max-width: 767px )
{
    #page-content .element.piece-slants
    { --slant: 32px; aspect-ratio: 1.6; }

    #page-content .element.piece-slants-gentle
    { --slant: 16px; }

    #page-content .element.piece-slants-steep
    { --slant: 56px; }

    #page-content .element.piece-slants-wide
    { --slant-gap: 12px; }

    #page-content .element.piece-slants-short
    { aspect-ratio: 2.4; }

    #page-content .element.piece-slants-tall
    { aspect-ratio: 1.1; }
}

/* - - - the home hero as an editorial wrap - - - */

.hero-wrap
{
    display: none;
}

@media( min-width: 992px )
{
    .hero-wrap
    {
        position: absolute;
        z-index: 5;
        inset: 0;
        display: block;
        grid-area: 1 / 1 / -1 / -1;

        text-align: left;
        pointer-events: none;
    }

    /* its own block, so the floats and the words share one flow */
    .hero-wrap-flow
    {
        display: flow-root;
        height: 100%;
    }

    /* the hero's size, so the outline lies where it was drawn */
    .hero-wrap-shape
    {
        width: 100%;
        height: 100%;
    }

    .hero-wrap-words-left .hero-wrap-shape
    {
        float: right;
    }

    .hero-wrap-words-right .hero-wrap-shape
    {
        float: left;
    }

    .hero-wrap-drop
    {
        display: block;
        height: var( --hw-y, 24% );
    }

    html body .hero-wrap-flow > :is( .hero-wrap-heading, .hero-wrap-line, .hero-wrap-buttons )
    {
        position: relative;
        display: block;
        justify-self: stretch !important;
        width: auto !important;
        max-width: var( --hw-w, 44% ) !important;
        margin: 0 0 20px var( --hw-x, 8% ) !important;
        padding: 0 !important;

        text-align: left !important;
        pointer-events: auto;
    }

    html body .hero-wrap .hero-wrap-heading
    {
        font-size: clamp( 36px, 4.6vw, 72px ) !important;
        line-height: 1.05 !important;
        letter-spacing: -.02em;
        text-transform: none;
        overflow-wrap: break-word;

        color: #fff;
    }

    html body .hero-wrap .hero-wrap-line
    {
        font-size: clamp( 17px, 1.4vw, 22px ) !important;
        line-height: 1.5 !important;
        letter-spacing: normal;
        text-transform: none;

        color: rgba( 255, 255, 255, .88 );
    }

    html body .hero-wrap-flow > .hero-wrap-buttons
    {
        margin-top: 32px !important;
    }

    .hero-wrap-buttons > .piece-btn
    {
        display: inline-flex;
    }
}

/* - - - a split's picture with its edge cut to a shape, and a decal - - - */

@media( min-width: 768px )
{
    .piece-edge-slant.piece-edge-right
    { clip-path: polygon( 0 0, 100% 0, 80% 100%, 0 100% ) !important; }

    .piece-edge-slant.piece-edge-left
    { clip-path: polygon( 0 0, 100% 0, 100% 100%, 20% 100% ) !important; }

    .piece-edge-slant-in.piece-edge-right
    { clip-path: polygon( 0 0, 80% 0, 100% 100%, 0 100% ) !important; }

    .piece-edge-slant-in.piece-edge-left
    { clip-path: polygon( 20% 0, 100% 0, 100% 100%, 0 100% ) !important; }

    .piece-edge-curve.piece-edge-right
    { clip-path: ellipse( 100% 90% at 0 50% ) !important; }

    .piece-edge-curve.piece-edge-left
    { clip-path: ellipse( 100% 90% at 100% 50% ) !important; }

    .piece-edge-wave
    {
        clip-path: none !important;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    .piece-edge-wave.piece-edge-right
    {
        -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H92C84 12 100 26 92 38S84 62 92 75 84 90 92 100H0Z'/%3E%3C/svg%3E" );
        mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H92C84 12 100 26 92 38S84 62 92 75 84 90 92 100H0Z'/%3E%3C/svg%3E" );
    }

    .piece-edge-wave.piece-edge-left
    {
        -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0H8C16 12 0 26 8 38S16 62 8 75 16 90 8 100H100Z'/%3E%3C/svg%3E" );
        mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0H8C16 12 0 26 8 38S16 62 8 75 16 90 8 100H100Z'/%3E%3C/svg%3E" );
    }

    /* a cut edge looks best clean: no rounded corner or shadow to fight it */
    .piece-shot.piece-edge
    {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .piece-shot.piece-edge::after
    {
        display: none;
    }
}

.piece-split-follow
{
    display: none;
}

@media( min-width: 768px )
{
    .piece-split > .element.a4.piece-split-follows
    {
        display: flow-root;
        align-self: stretch;
    }

    .piece-split-follows-left
    {
        margin-left: calc( var( --follow-pull, 0% ) * -1 );
    }

    .piece-split-follows-right
    {
        margin-right: calc( var( --follow-pull, 0% ) * -1 );
    }

    .piece-split-follow
    {
        display: block;
        width: var( --follow-w, 0% );
        height: 100%;
    }

    .piece-split-follows-left > .piece-split-follow
    {
        float: left;
    }

    .piece-split-follows-right > .piece-split-follow
    {
        float: right;
    }

    .piece-split-follows > :is( .piece-heading, .piece-btn-row, .piece-eyebrow )
    {
        display: block;
    }

    /* and the space the grid gave between them, as margins */
    .piece-split-follows > :not( .piece-split-follow ) ~ :not( .piece-split-follow )
    {
        margin-top: var( --element-gap, 20px );
    }

    .piece-split-follows .piece-display::after
    {
        display: flow-root;
    }

    .piece-split-follows > :is( .piece-heading, .piece-display )
    {
        display: flow-root;

        /* as wide as there is room beside the shape - a full width would
           not fit beside it, and drop the group below the picture */
        width: auto;
    }

    .piece-split-follows .piece-eyebrow
    {
        white-space: nowrap;
    }

    .piece-split-follows .piece-eyebrow::before
    {
        content: "";
        display: inline-block;
        width: var( --eyebrow-rule, 32px );
        margin-right: 12px;
        vertical-align: middle;
    }

    .piece-split-follows > :not( .piece-split-follow )
    {
        max-width: none;
        margin-bottom: 0;

        /* the templates set their copy to start ( for the grid ) - which a
           browser also reads in a block, shrinking a short line to its own
           width and wrapping it early beside the shape */
        justify-self: stretch;
    }

    .piece-split-follows > .piece-eyebrow
    {
        display: flow-root;
        width: fit-content;
        max-width: 100%;
        justify-self: start;
    }
}

/* the decal: a drawing in the accent, under the words by default */
.piece-split-decal
{
    display: block;
    width: clamp( 64px, 9vw, 112px );
    height: clamp( 64px, 9vw, 112px );
    margin: 24px 0 0 auto;

    color: var( --accent );

    pointer-events: none;
}

.piece-split-decal :is( svg, i )
{
    display: block;
    width: 100%;
    height: 100%;
}

.piece-dark .piece-split-decal,
.piece-band .piece-split-decal,
.piece-band-image .piece-split-decal
{
    color: var( --accent-dark );
}

.piece-split-holds-decal
{
    position: relative;
}

/* over the words, at their top right - above the heading, clear of it */
.piece-split-decal-words-top
{
    margin: 0 0 12px auto;
}

/* on the picture's corner by the words, half over its edge */
.piece-split-decal-picture
{
    position: absolute;
    z-index: 2;
    bottom: 16px;
    margin: 0;
}

.piece-split-decal-picture.piece-split-decal-from-left
{
    right: -24px;
}

.piece-split-decal-picture:not( .piece-split-decal-from-left )
{
    left: -24px;
}

/* a phone: the picture is the page's width - the decal sits inside it */
@media( max-width: 767px )
{
    .piece-split-decal-picture.piece-split-decal-picture
    {
        right: 12px;
        left: auto;
    }
}

/* - - - a number feature: one big figure beside its words - - - */

.piece-number
{
    display: grid;
    grid-gap: 8px;
    justify-items: center;
    align-content: center;
    padding: 40px 24px;
    box-sizing: border-box;

    text-align: center;

    background-color: var( --tint );
    border-radius: var( --piece-radius-card, 16px );
}

.piece-number b
{
    font-size: clamp( 72px, 10vw, 132px );
    font-weight: var( --heading-strong, 700 );
    line-height: .95;
    letter-spacing: -.04em;
    color: var( --accent );
}

.piece-number p
{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --text-soft );
}

.piece-band-tint .piece-number
{
    background-color: var( --paper );
}

.piece-dark .piece-number,
.piece-band .piece-number,
.piece-band-image .piece-number
{
    background-color: var( --glow-faint );
}

.piece-dark .piece-number b,
.piece-band .piece-number b,
.piece-band-image .piece-number b
{
    color: var( --accent-dark );
}

@media( min-width: 768px )
{
    .piece-number
    {
        min-width: 260px;
        padding: 56px 40px;
    }
}

/* - - - questions: each folds open - - - */

.piece-faq
{
    display: grid;
    width: 100%;
    max-width: 820px;
    justify-self: center;

    border-top: solid 1px var( --shade-light );
}

.piece-faq > .piece-faq-item
{
    border-bottom: solid 1px var( --shade-light );
}

.piece-faq-item summary
{
    position: relative;
    display: block;
    padding: 22px 48px 22px 0;

    font-size: 18px;
    font-weight: var( --heading-strong, 600 );
    line-height: 1.4;
    color: var( --text );

    cursor: pointer;
    list-style: none;
}

.piece-faq-item summary::-webkit-details-marker
{
    display: none;
}

/* the plus that turns to a minus */
.piece-faq-item summary::before,
.piece-faq-item summary::after
{
    content: "";

    position: absolute;
    top: 50%;
    right: 8px;
    width: 16px;
    height: 2px;
    margin-top: -1px;

    background-color: var( --accent );
    border-radius: 2px;

    transition: transform .25s ease;
}

.piece-faq-item summary::after
{
    transform: rotate( 90deg );
}

.piece-faq-item[ open ] summary::after
{
    transform: rotate( 0deg );
}

.piece-faq-item summary:focus-visible
{
    outline: solid 2px var( --accent );
    outline-offset: 4px;
}

.piece-faq-item > p
{
    padding: 0 48px 24px 0;

    color: var( --text-soft );
}

.piece-dark .piece-faq,
.piece-dark .piece-faq > .piece-faq-item,
.piece-band .piece-faq,
.piece-band .piece-faq > .piece-faq-item
{
    border-color: var( --glow-line );
}

.piece-dark .piece-faq-item summary,
.piece-band .piece-faq-item summary
{
    color: var( --on-ink );
}

.piece-dark .piece-faq-item summary::before,
.piece-dark .piece-faq-item summary::after,
.piece-band .piece-faq-item summary::before,
.piece-band .piece-faq-item summary::after
{
    background-color: var( --accent-dark );
}

.piece-dark .piece-faq-item > p,
.piece-band .piece-faq-item > p
{
    color: var( --on-ink-soft );
}

/* - - - a picture pair: before and after, a line each - - - */

.piece-pair-item
{
    display: grid;
    grid-gap: 16px;
    align-content: start;
}

.piece-pair-words
{
    display: grid;
    grid-gap: 4px;
}

.piece-pair-words b
{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var( --accent-text );
}

.piece-dark .piece-pair-words b,
.piece-band .piece-pair-words b
{
    color: var( --accent-dark );
}

/* - - - the gallery section in masonry mode - - - */

.gallery-masonry
{
    display: block;
    columns: 1;
    column-gap: 32px;
}

.gallery-masonry > .gallery-thmb
{
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 32px;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.gallery-masonry > .gallery-thmb:hover
{
    width: 100%;
}

@media( min-width: 480px )
{
    .gallery-masonry
    {
        columns: 2;
    }
}

@media( min-width: 992px )
{
    .gallery-masonry-3
    {
        columns: 3;
    }

    .gallery-masonry-4
    {
        columns: 4;
        column-gap: 24px;
    }

    .gallery-masonry-4 > .gallery-thmb
    {
        margin-bottom: 24px;
    }
}

/* - - - a masonry wall: pictures and short words, staggered - - - */

.piece-masonry
{
    display: block;
    columns: 1;
    column-gap: 24px;
}

.piece-masonry-tile
{
    display: grid;
    grid-gap: 12px;
    margin: 0 0 24px;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.piece-masonry-tile :is( h3, p )
{
    margin: 0;
}

.piece-masonry-tile h3
{
    font-size: 19px;
    line-height: 1.25;
}

.piece-masonry-tile p
{
    font-size: 15px;
    line-height: 1.55;
}

.piece-masonry-words
{
    display: grid;
    grid-gap: 4px;
}

/* - words over the picture, on a shade along its foot - */
.piece-masonry-over
{
    position: relative;
}

.piece-masonry-over > .piece-masonry-words
{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 48px 20px 18px;

    background: linear-gradient( to top, var( --shade-deep, rgba( 0, 0, 0, .7 ) ), transparent );
    border-radius: 0 0 var( --piece-radius-media, 12px ) var( --piece-radius-media, 12px );
}

.piece-masonry-over > .piece-masonry-words :is( h3, p )
{
    color: var( --on-ink, #fff );
}

/* - a tile of words, in a tone - */
.piece-masonry-note
{
    align-content: start;
    padding: 28px 26px;

    border-radius: var( --piece-radius-card, 14px );
}

.piece-masonry-mark
{
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;

    border-radius: var( --piece-radius-icon, 50% );
}

.piece-masonry-mark :is( i, svg )
{
    display: block;
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.piece-masonry-tint
{
    background-color: var( --tint );
}

.piece-masonry-tint .piece-masonry-mark
{
    color: var( --accent );
    background-color: var( --paper );
}

.piece-masonry-accent
{
    background-color: var( --accent );
}

.piece-masonry-accent :is( h3, p, .piece-masonry-mark )
{
    color: var( --on-accent );
}

.piece-masonry-accent .piece-masonry-mark
{
    background-color: color-mix( in srgb, var( --on-accent ) 16%, transparent );
}

.piece-masonry-dark
{
    background-color: var( --ink );
}

.piece-masonry-dark :is( h3, p )
{
    color: var( --on-ink );
}

.piece-masonry-dark .piece-masonry-mark
{
    color: var( --accent-dark );
    background-color: var( --glow-line, rgba( 255, 255, 255, .12 ) );
}

.piece-masonry-plain
{
    background-color: var( --paper );
    border: solid 1px var( --tint-line );
}

.piece-masonry-plain .piece-masonry-mark
{
    color: var( --accent );
    background-color: var( --tint );
}

.piece-band-tint .piece-masonry-tint
{
    background-color: var( --paper );
}

.piece-band-tint .piece-masonry-tint .piece-masonry-mark
{
    background-color: var( --tint );
}

:is( .piece-dark, .piece-band ) .piece-masonry-dark
{
    background-color: var( --ink-soft, rgba( 255, 255, 255, .06 ) );
    box-shadow: inset 0 0 0 1px var( --glow-line, rgba( 255, 255, 255, .12 ) );
}

:is( .piece-dark, .piece-band ) .piece-masonry-tint h3
{
    color: var( --ink );
}

:is( .piece-dark, .piece-band ) .piece-masonry-tint p
{
    color: var( --text );
}

/* an accent as dark as the band still shows its edge */
:is( .piece-dark, .piece-band ) .piece-masonry-accent
{
    box-shadow: inset 0 0 0 1px var( --glow-line, rgba( 255, 255, 255, .12 ) );
}

:is( .piece-dark, .piece-band ) .piece-masonry-plain
{
    background-color: transparent;
    border-color: var( --glow-line, rgba( 255, 255, 255, .2 ) );
}

:is( .piece-dark, .piece-band ) .piece-masonry-plain :is( h3, p )
{
    color: var( --on-ink );
}

:is( .piece-dark, .piece-band ) .piece-masonry-shot > .piece-masonry-words :is( h3, p )
{
    color: var( --on-ink );
}

@media( min-width: 576px )
{
    .piece-masonry
    {
        columns: 2;
    }
}

@media( min-width: 992px )
{
    .piece-masonry-3
    {
        columns: 3;
    }

    .piece-masonry-4
    {
        columns: 4;
        column-gap: 20px;
    }

    .piece-masonry-4 > .piece-masonry-tile
    {
        margin-bottom: 20px;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Section trims */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.piece-trimmed
{
    position: relative;
    z-index: 2;
}

.piece-trim
{
    position: absolute;
    left: 0;
    right: 0;
    height: var( --trim-h, 56px );

    background-color: inherit;
    pointer-events: none;

    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
}

.piece-trim-top
{
    bottom: calc( 100% - 1px );
}

.piece-trim-bottom
{
    top: calc( 100% - 1px );
}

.piece-trim-s
{ --trim-h: var( --trim-room-s ); }

.piece-trim-m
{ --trim-h: var( --trim-room-m ); }

.piece-trim-l
{ --trim-h: var( --trim-room-l ); }

.piece-room
{
    grid-column: 1 / -1;
    pointer-events: none;
}

.piece-room-top
{
    height: var( --room-t );
}

.piece-room-bottom
{
    height: var( --room-b );
}

@media( min-width: 768px )
{
    .piece-room-top
    {
        grid-row: 1;
    }

    .piece-room-t > .workspace
    {
        grid-row: 2;
    }

    .piece-room-bottom
    {
        grid-row: 3;
    }
}

.piece-room-mt
{
    margin-top: var( --room-mt );
}

.piece-room-mb
{
    margin-bottom: var( --room-mb );
}

/* a white section: the page's colour */
.piece-trimmed:not( .piece-band, .piece-band-tint, .piece-band-image, .piece-dark, .piece-cover, .piece-cta-band ) > .piece-trim
{
    background-color: var( --trim-page, var( --paper ) );
}

/* a photo cover keeps its picture to itself, but lets its trims out */
.piece-cover.piece-trimmed
{
    overflow: visible;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Fluid page width */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

@media( max-width: 767px )
{
    a[ href^="mailto:" ]
    {
        overflow-wrap: anywhere;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Where the keyboard is */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#page-content :is( .piece-dark, .piece-band, .piece-band-image, .piece-cover, .piece-cta-band ) :is( a, summary, button ):focus-visible
{
    outline-color: var( --accent-dark );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Page builder settings - framed pictures, cards on hover, card colours */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - what a section's cards do on hover ( the page builder's "Cards on hover" ) - - - */

#page-content section[class*="piece-hover-"] :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat )
{
    transition: transform .4s cubic-bezier( .2, .7, .2, 1 ), box-shadow .4s ease;
}

#page-content section.piece-hover-none :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover,
#page-content section:is( .piece-hover-photo, .piece-hover-ring ) :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: none;
}

#page-content section.piece-hover-none :is( .piece-option, .piece-product, a.piece-category, a.piece-article ):hover
{
    box-shadow: none;
}

#page-content section.piece-hover-none .piece-card:hover
{
    box-shadow: 0 1px 2px var( --shade-faint );
}

#page-content section.piece-hover-rise :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: translateY( -6px );
}

#page-content section.piece-hover-grow :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: scale( 1.03 );
}

#page-content section.piece-hover-float :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    transform: translateY( -6px );
    box-shadow: 0 24px 44px -20px color-mix( in srgb, var( --ink, #000 ) 38%, transparent );
}

/* the picture inside zooms, its frame stays put */
#page-content section.piece-hover-photo :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item ) .piece-shot img
{
    transition: transform .6s cubic-bezier( .2, .7, .2, 1 );
}

#page-content section.piece-hover-photo :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item ):hover .piece-shot img
{
    transform: scale( 1.06 );
}

#page-content section.piece-hover-ring :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover
{
    box-shadow: 0 0 0 2px var( --accent );
}

@media( prefers-reduced-motion: reduce )
{
    #page-content section[class*="piece-hover-"] :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ),
    #page-content section.piece-hover-photo .piece-shot img
    {
        transition: none;
    }

    #page-content section:is( .piece-hover-rise, .piece-hover-grow, .piece-hover-float ) :is( .piece-card, .piece-feature, .piece-option, .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-tile, .piece-pair-item, :where( .piece-stats-cards ) > .piece-stat ):hover,
    #page-content section.piece-hover-photo .piece-shot img
    {
        transform: none;
    }
}

/* - - - a section's cards in colours of their own ( the page builder's Card background, headings, text, icons, border, shadow ) - - - */

#page-content section:is( [ style*="--card-bg" ], .has-card-bg ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    background-color: var( --card-bg ) !important;
    background-image: none !important;
}

#page-content section:is( [ style*="--card-head" ], .has-card-head ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( h2, h3, h4, h5, .piece-option-price, .piece-option-price *, .piece-stat > b, .piece-feature-cost )
{
    color: var( --card-head ) !important;
}

#page-content section:is( [ style*="--card-text" ], .has-card-text ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( p, li, dd, blockquote, .piece-stat-note )
{
    color: var( --card-text ) !important;
}

#page-content section:is( [ style*="--card-icon" ], .has-card-icon ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat ) :is( i, svg.svg-inline--fa, svg.piece-decal, .piece-stat-mark, .piece-step-num, .piece-card-mark )
{
    color: var( --card-icon ) !important;
}

#page-content section:is( [ style*="--card-line" ], .has-card-line ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    border: solid 1px var( --card-line ) !important;
}

#page-content section:is( [ style*="--card-shadow" ], .has-card-shadow ) :is( .piece-card, .piece-feature, .piece-option:not( .piece-option-featured ), .piece-product, .piece-member, .piece-testimonial, .piece-category, .piece-article, .piece-step, .piece-masonry-note, :where( .piece-stats-cards ) > .piece-stat )
{
    box-shadow: var( --card-shadow );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Pictures that move - a slideshow, and a before and after */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.piece-media-side
{
    align-items: center;
}

.piece-media-alone
{
    width: 100%;
}

:is( .piece-slides, .piece-ba )
{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;

    background-color: var( --tint, #eef1f4 );
    border-radius: var( --piece-radius-card, 16px );
}

:is( .piece-slides, .piece-ba ).piece-media-wide
{ aspect-ratio: 16 / 9; }

:is( .piece-slides, .piece-ba ).piece-media-square
{ aspect-ratio: 1 / 1; }

:is( .piece-slides, .piece-ba ).piece-media-tall
{ aspect-ratio: 4 / 5; }

/* - - - the slideshow - - - */

.piece-slides-track
{
    position: absolute;
    inset: 0;
}

.piece-slide
{
    position: absolute;
    inset: 0;
    margin: 0;

    opacity: 0;
    pointer-events: none;

    transition: opacity .9s ease;
}

.piece-slide.is-on
{
    z-index: 1;

    opacity: 1;
    pointer-events: auto;
}

.piece-slide img
{
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* sliding across: the pictures in a row, the row moved along */
.piece-slides-slide .piece-slides-track
{
    display: flex;

    transform: translateX( calc( var( --at, 0 ) * -100% ) );
    transition: transform .8s cubic-bezier( .65, 0, .35, 1 );
}

.piece-slides-slide .piece-slide
{
    position: relative;
    flex: 0 0 100%;

    opacity: 1;
    pointer-events: auto;
}

.piece-slide figcaption
{
    position: absolute;
    left: 16px;
    bottom: 16px;
    max-width: calc( 100% - 32px );
    padding: 6px 12px;
    box-sizing: border-box;

    font-size: 14px;
    line-height: 1.4;
    color: #fff;

    background-color: rgba( 0, 0, 0, .55 );
    border-radius: 8px;
}

.piece-slides.has-dots .piece-slide figcaption
{
    bottom: 40px;
}

.piece-slides-arrow
{
    position: absolute;
    z-index: 3;
    top: 50%;

    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;

    font-size: 16px;
    color: var( --ink, #111 );

    background-color: rgba( 255, 255, 255, .88 );
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px -8px rgba( 0, 0, 0, .45 );
    cursor: pointer;

    transition: background-color .25s ease, transform .25s ease;
}

.piece-slides-arrow:hover,
.piece-slides-arrow:focus-visible
{
    background-color: #fff;
    transform: scale( 1.06 );
}

.piece-slides-arrow:focus-visible
{
    outline: 3px solid var( --accent, #3f8196 );
    outline-offset: 2px;
}

.piece-slides-prev
{ left: 12px; }

.piece-slides-next
{ right: 12px; }

.piece-slides-dots
{
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 14px;

    display: flex;
    justify-content: center;
    gap: 8px;
}

.piece-slides-dots button
{
    width: 10px;
    height: 10px;
    padding: 0;

    background-color: rgba( 255, 255, 255, .6 );
    border: none;
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba( 0, 0, 0, .3 );
    cursor: pointer;

    transition: width .3s ease, background-color .3s ease;
}

.piece-slides-dots button.is-on
{
    width: 26px;

    background-color: #fff;
}

.piece-slides-dots button:focus-visible
{
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* - - - the before and after - - - */

.piece-ba
{
    --ba: 50%;

    user-select: none;
    touch-action: pan-y;
}

.piece-ba img
{
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* the before, over the after, shown up to the line */
.piece-ba-before
{
    position: absolute;
    z-index: 1;
    inset: 0;

    clip-path: inset( 0 calc( 100% - var( --ba ) ) 0 0 );
}

.piece-ba-line
{
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var( --ba );

    width: 3px;
    margin-left: -1.5px;

    background-color: #fff;
    box-shadow: 0 0 12px rgba( 0, 0, 0, .35 );
    pointer-events: none;
}

.piece-ba-knob
{
    position: absolute;
    z-index: 3;
    top: 50%;
    left: var( --ba );

    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;

    font-size: 16px;
    color: var( --ink, #111 );

    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px -6px rgba( 0, 0, 0, .5 );
    pointer-events: none;

    transition: transform .2s ease;
}

.piece-ba:hover .piece-ba-knob
{
    transform: scale( 1.06 );
}

.piece-ba:has( .piece-ba-range:focus-visible ) .piece-ba-knob
{
    outline: 3px solid var( --accent, #3f8196 );
    outline-offset: 2px;
}

.piece-ba-label
{
    position: absolute;
    z-index: 2;
    top: 14px;

    padding: 4px 10px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;

    background-color: rgba( 0, 0, 0, .55 );
    border-radius: 6px;
    pointer-events: none;
}

.piece-ba-label-before
{ left: 14px; }

.piece-ba-label-after
{ right: 14px; }

.piece-ba-range
{
    position: absolute;
    z-index: 4;
    inset: 0;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    opacity: 0;
    cursor: ew-resize;

    -webkit-appearance: none;
    appearance: none;
    background: none;
}

.piece-ba-range::-webkit-slider-thumb
{
    -webkit-appearance: none;
    width: 46px;
    height: 100vh;
}

.piece-ba-range::-moz-range-thumb
{
    width: 46px;
    height: 100vh;
    border: none;
}

@media( prefers-reduced-motion: reduce )
{
    .piece-slide,
    .piece-slides-slide .piece-slides-track
    {
        transition: none;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Parts: lines set as a tag, a figure, a quote, a name ( a blank section's parts, outside the set pieces' own cards ) */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.piece-inline
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}

.piece-inline > *
{
    margin-top: 0;
    margin-bottom: 0;
}

.piece-inline > :is( p, h1, h2, h3, h4, ul, ol, dl, .element )
{
    flex: 1 1 12em;
    min-width: 0;
}

/* a column on the line holding only an icon or buttons: as wide as they are */
.piece-inline > .element.piece-inline-fit
{
    flex: none;
}

.piece-text-centre > .piece-inline,
.piece-text-centre .piece-inline
{
    justify-content: center;
}

.piece-text-right > .piece-inline,
.piece-text-right .piece-inline
{
    justify-content: flex-end;
}

.piece-inline > .piece-icon
{
    flex: none;
}

/* its size, set in the page builder */
.piece-icon-s
{ --icon: 20px; }

.piece-icon-l
{ --icon: 40px; }

.piece-icon-xl
{ --icon: 56px; }

.piece-icon-xxl
{ --icon: 80px; }

svg.piece-decal.piece-icon
{
    display: block;
    width: calc( var( --icon ) * 2.3 );
    height: calc( var( --icon ) * 2.3 );
}

.piece-figure
{
    font-size: clamp( 34px, 4vw, 48px );
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var( --accent );
}

.piece-small
{
    font-size: 13px;
    opacity: .8;
}

.piece-tag
{
    justify-self: start;
    padding: 6px 14px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var( --on-accent, #fff );

    background-color: var( --accent );
    border-radius: 999px;
}

.piece-quote
{
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
}

.piece-cite
{
    font-size: 15px;
    font-weight: 700;
    color: var( --ink );
}

.piece-dark .piece-cite
{
    color: inherit;
}

.piece-cta-band > .workspace > .element:is( .col-2, .col-2a, .col-2b )
{
    justify-self: stretch;
    align-items: center;
}

/* a widget part fills its column */
.piece-widget
{
    width: 100%;
}

/* a price card's tag over its top edge needs its card to hold it */
.piece-option
{
    position: relative;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Columns: a picture first on a phone, and text set across */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#page-content .piece-text-centre
{
    justify-items: center;

    text-align: center;
}

#page-content .piece-text-right
{
    justify-items: end;

    text-align: right;
}

#page-content :is( .piece-text-centre, .piece-text-right ) > :is( h1, h2, h3, h4, h5, p )
{
    justify-self: auto;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Fonts - Adobe Fonts: aptos-slab headings; H1 in capitals, H2 in capitals, H3 in the body font ( Montserrat ), as typed ( never forced into capitals ), H4 in capitals ( the Font choice step ) */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

html body .piece-float b,
html body .piece-feature-cost
{
    font-family: "aptos-slab", sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Skin - Paladin: corporate and polished */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* price heading rules in the accent, full strength */
:is( .piece-price-head, .piece-menu-head )::after
{
    opacity: 1;
}

/* - - - cards: polished - - - */

/* Pill tags, and the links sit on a soft pill of the tint. */
.piece-product-tag
{
    background-color: var( --accent );
}

.piece-dark .piece-card-link,
section .piece-card.piece-card-dark .piece-card-link
{
    background-color: var( --glow-faint );
}

/* - - - the call-to-action banner: the polished dark band - - - */

.piece-cta-band
{
    background-image: radial-gradient( ellipse at 0% 100%, color-mix( in srgb, var( --accent ) 38%, transparent ) 0%, transparent 55% );
}

.piece-cta-band h2
{
    font-weight: var( --heading-strong );
    letter-spacing: -.02em;
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* Paladin, through every section */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* - - - the caption box - - - */

.piece-pull-quote
{
    padding: 44px 72px;

    background-color: var( --ink );
    border-bottom: solid 3px var( --accent );
    box-shadow: 0 2px 2px var( --shade-faint ), 0 8px 8px var( --shade-faint ), 0 24px 32px -12px var( --shade );
}

.piece-pull-quote > .piece-pull-line
{
    color: var( --on-ink );
}

.piece-pull-quoted .piece-pull-mark
{
    color: var( --accent-dark );
}

.piece-pull-open
{
    top: 20px;
    left: 24px;
}

.piece-pull-close
{
    right: 24px;
    bottom: 20px;
}

/* on the dark, a step lighter than the section, with a hairline */
.piece-dark .piece-pull-quote
{
    background-color: var( --glow-faint );
    border: solid 1px var( --glow-line );
    border-bottom: solid 3px var( --accent-dark );
    box-shadow: none;
}

/* the card beside a photo, on a light page */
section:not( .piece-dark ) .piece-float
{
    background-color: var( --ink );
    border-bottom: solid 3px var( --accent );
}

section:not( .piece-dark ) .piece-float b
{
    color: var( --accent-dark );
}

section:not( .piece-dark ) .piece-float p
{
    color: var( --on-ink-soft );
}

/* - - - the action strip's top edge - - - */

:is( .piece-option, .piece-testimonial, .piece-step )
{
    border-top: solid 4px var( --accent );
}

.piece-dark :is( .piece-option, .piece-testimonial, .piece-step )
{
    border-top-color: var( --accent-dark );
}

/* - - - the phone badge: the secondary in a circle - - - */

.piece-iconrow-mark
{
    color: var( --on-colour2 );

    background-color: var( --colour2 );
    border-color: var( --colour2 );
}

section .piece-card.piece-card-dark > :is( i, svg ),
:is( .piece-dark, .piece-band, .piece-band-image ) .piece-iconrow-mark
{
    color: var( --on-accent-dark );

    background-color: var( --accent-dark );
}

/* the steps counted in filled accent circles */
.piece-step::before
{
    display: grid;
    place-items: center;
    justify-self: start;
    width: 40px;
    height: 40px;

    font-size: 14px;
    letter-spacing: 0;
    color: var( --on-accent );

    background-color: var( --accent );
    border-radius: 50%;
}

.piece-dark .piece-step::before
{
    color: var( --on-accent-dark );

    background-color: var( --accent-dark );
}

/* - - - the soft panels - - - */

.piece-dark .piece-stats
{
    background-color: var( --glow-faint );
    box-shadow: none;
}

.piece-faq
{
    padding: 0 28px;
    box-sizing: border-box;

    background-color: var( --paper );
    border-top: none;
    border-radius: var( --piece-radius-card );
    box-shadow: 0 1px 1px var( --shade-faint ), 0 2px 2px var( --shade-faint ), 0 4px 4px var( --shade-faint ), 0 8px 8px var( --shade-faint ), 0 16px 16px var( --shade-faint );
}

.piece-faq > .piece-faq-item:last-child
{
    border-bottom: none;
}

.piece-dark .piece-faq
{
    background-color: var( --glow-faint );
    box-shadow: none;
}

/* a phone: the caption box with less room inside */
@media( max-width: 599px )
{
    .piece-pull-quote
    {
        padding: 52px 24px;
    }
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The buttons - Paladin: the badge pill */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#page-content :is( .piece-dark, .piece-band, .piece-band-image, .piece-cover, .piece-option-featured, .piece-cta-band ) .piece-btn
{
    --b-fill: var( --accent-dark );
    --b-on: var( --on-accent-dark );
    --b-line: var( --glow-edge );
    --b-text: var( --on-ink );
    --b-hov: var( --paper );
    --b-on-hov: var( --ink );
    --b-plain: var( --on-ink );
    --b-ground: var( --ink );
    --b-sec: var( --paper );
    --b-on-sec: var( --ink );
}

/* the featured card is white on a dark page */
#page-content .piece-dark .piece-option-featured .piece-btn
{
    --b-fill: var( --accent );
    --b-on: var( --on-accent );
    --b-line: var( --accent );
    --b-text: var( --accent-text );
    --b-hov: var( --ink );
    --b-on-hov: var( --on-ink );
    --b-plain: var( --ink );
    --b-ground: var( --paper );
    --b-sec: var( --colour2 );
    --b-on-sec: var( --on-colour2 );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn )
{
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var( --b-line );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ) :is( h4, p, span )
{
    color: var( --b-text );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn )::before
{
    background-color: transparent;
    box-shadow: inset 0 0 0 1.5px var( --b-line );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn )::after
{
    background-color: var( --b-text );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ):is( :hover, :focus-visible )::before
{
    background-color: var( --b-hov );
    box-shadow: none;
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ):is( :hover, :focus-visible )::after
{
    background-color: var( --b-on-hov );
}

#page-content :is( .piece-btn-alt, .piece-option:not( .piece-option-featured ) > .piece-btn ):is( :hover, :focus-visible ) :is( h4, p, span )
{
    color: var( --b-on-hov );
}

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

/* The banner's button - Paladin */

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

html body .hero-wrap .hero-wrap-heading
{ color: #ffffff !important; }
