/* ClearView Window Cleaning: site.css. Order: properties, elements, pieces, chrome.
   Key: --c1 ground slate, --c2 ink, --c3 white, --c4 electric blue, --c5 shadow slate (scrims, quiet strokes), --c6 pale plate (pressed plate).
        --s1..--s7 space steps from .25rem to 4rem, --s8 the block padding of a stage.
        --t1 caption and label, --t2 running text, --t3 lead, --t4 h3, --t5 section head, --t6 opening words.
        --f1 display face, --f2 text face. --d1 a quick change, --d2 a settle. */
:root {
  --c1: #797589; --c2: #080611; --c3: #FFFFFF; --c4: #003CFF; --c5: #3B384A; --c6: #E6E5EC;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2.5rem; --s7: 4rem;
  --s8: clamp(2.5rem, 9vh, 6.5rem);
  --t1: .9375rem;
  --t2: clamp(1rem, .9rem + .45vw, 1.125rem);
  --t3: clamp(1.125rem, 1rem + .6vw, 1.375rem);
  --t4: clamp(1.0625rem, .95rem + .6vw, 1.375rem);
  --t5: clamp(1.375rem, 1rem + 1.8vw, 2.625rem);
  --t6: clamp(1.8125rem, 1.1rem + 2.9vw, 4rem);
  --f1: 'Syncopate', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --f2: 'Outfit', 'Avenir Next', 'Segoe UI', Helvetica, Arial, sans-serif;
  --d1: 150ms; --d2: 180ms;
}

/* ---------- elements ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7.5rem; }
body { margin: 0; min-block-size: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--c1); color: var(--c2); font: 400 var(--t2)/1.55 var(--f2); }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
img, svg, video { display: block; max-inline-size: 100%; }
img, video { block-size: auto; }
h1, h2, h3 { margin: 0; font-family: var(--f1); font-weight: 700; line-height: 1.18; letter-spacing: 0; overflow-wrap: break-word; }
h1 { font-size: var(--t6); }
h2 { font-size: var(--t5); }
h3 { font-size: var(--t4); }
p, ul, ol, dl, dd, figure, address { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: .0625rem; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .1875rem; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: .1875rem solid var(--c2); outline-offset: .1875rem; }
::selection { background: var(--c4); color: var(--c3); }
[hidden] { display: none !important; }

/* ---------- pieces ---------- */

/* clewd (width): the page measure, centred; put it on the block inside any band */
.clewd { inline-size: min(100% - 2 * var(--s5), 78rem); margin-inline: auto; }

/* clestg (stage): one band of the visit, a stack with the site's block padding */
.clestg { display: flex; flex-direction: column; gap: var(--s6); padding-block: var(--s8); }

/* clefl (flow): a stack of running text, gaps between paragraphs */
.clefl { display: flex; flex-direction: column; gap: var(--s4); }
.clefl > p { max-inline-size: 38rem; }

/* clesd (side by side): text beside a picture or drawing; the halves wrap under each other on a phone */
.clesd { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s6); }
.clesd > * { flex: 1 1 20rem; min-inline-size: 0; }

/* clebw (blue word): the one word per headline set blue on a white backing; clewh (white heading): light lettering on slate, headings only */
.clebw { color: var(--c4); background: var(--c3); padding: .06em .22em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.clewh { color: var(--c3); }

/* clepl (plate): compact white backing for small dark text; clelk (link on a plate): blue link with its own white backing */
.clepl { background: var(--c3); color: var(--c2); padding: var(--s2) var(--s3); }
.clelk { background: var(--c3); color: var(--c4); padding: var(--s1) var(--s2); }

/* clecm (crop marks): four right-angle marks instead of a border; clecmn (crop marks, near): top-left and bottom-right only; clelt (light): white marks */
.clecm, .clecmn { position: relative; }
.clecm::before, .clecmn::before {
  content: ""; position: absolute; inset: calc(var(--s2) * -1); pointer-events: none; color: var(--c2);
  background:
    linear-gradient(currentColor, currentColor) 0 0 / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 0 0 / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 100% 0 / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 100% 0 / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 0 100% / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 0 100% / .125rem .875rem;
  background-repeat: no-repeat;
  transition: inset var(--d2), opacity var(--d2);
}
.clecmn::before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 0 0 / .125rem .875rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .875rem .125rem,
    linear-gradient(currentColor, currentColor) 100% 100% / .125rem .875rem;
  background-repeat: no-repeat;
}
.clelt::before { color: var(--c3); }

/* clepic (picture crop): a figure holding one photograph, cropped with object-fit; add clecm for the marks; clecpt (caption): the small line against it */
.clepic { display: flex; flex-direction: column; gap: var(--s3); }
.clepic > img, .clepic > video { inline-size: 100%; object-fit: cover; }
.clecpt { font-size: var(--t1); line-height: 1.4; }

/* cleact (action): the blue email or call link; clealt (alternate): the same on a white plate; add clecmn for marks */
.cleact, .clealt { position: relative; display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-block-size: 2.75rem; padding: var(--s2) var(--s5); font-size: var(--t2); line-height: 1.2; text-decoration: none; transition: background-color var(--d1), color var(--d1); }
.cleact { background: var(--c4); color: var(--c3); }
.cleact:hover { background: var(--c2); }
.clealt { background: var(--c3); color: var(--c2); }
.clealt:hover { background: var(--c2); color: var(--c3); }

/* clesw (switch): one tidy row of choices that may scroll sideways; cleopt (option): each button, .picked when chosen */
.clesw { display: flex; gap: var(--s3); padding: var(--s2); overflow-x: auto; }
.cleopt { position: relative; flex: none; min-block-size: 2.75rem; padding: var(--s2) var(--s4); background: var(--c3); color: var(--c2); font-size: var(--t1); white-space: nowrap; transition: background-color var(--d1), color var(--d1); }
.cleopt:hover { background: var(--c6); }
.cleopt.picked, .cleopt[aria-pressed="true"] { background: var(--c4); color: var(--c3); }

/* clefx (facts): a dl of div rows, each a dt on a white plate with its dd beside it, running the width */
.clefx { display: flex; flex-direction: column; gap: var(--s3); }
.clefx > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s5); }
.clefx dt { flex: 0 0 auto; min-inline-size: 11rem; background: var(--c3); padding: var(--s1) var(--s3); font-size: var(--t1); }
.clefx dd { flex: 1 1 16rem; }

/* clerl (rule): a short ink stroke that turns a right angle; use on an hr; never a full-width hairline */
.clerl { inline-size: var(--s7); block-size: var(--s3); margin: 0; border: 0; border-block-start: .125rem solid var(--c2); border-inline-start: .125rem solid var(--c2); }

/* clecr (corner): the host of the section drawing; its inline svg uses cleln (line), cleth (thin line), cleldr (leader), clend (node), clenb (number) */
.clecr { position: relative; }
.clecr svg { inline-size: 100%; block-size: auto; overflow: visible; }
.cleln { fill: none; stroke: var(--c2); stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.cleth { fill: none; stroke: var(--c2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cleldr { fill: none; stroke: var(--c2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke var(--d1), stroke-width var(--d1); }
.clend { fill: var(--c2); stroke: var(--c3); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill var(--d1); }
.clenb { fill: var(--c2); font-family: var(--f2); }
.clend.picked, .picked .clend { fill: var(--c4); }
.cleldr.picked, .picked .cleldr { stroke: var(--c4); stroke-width: 3; }

/* clent (note): text hung from a leader stub with a junction square at its head; .picked turns the junction blue */
.clent { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding-inline-start: var(--s6); }
.clent::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .75em; inline-size: var(--s5); block-size: .125rem; background: var(--c2); transform-origin: 0 50%; transition: transform var(--d2), background-color var(--d1); }
.clent::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: calc(.75em - .25rem); inline-size: .625rem; block-size: .625rem; background: var(--c2); outline: .125rem solid var(--c3); transition: background-color var(--d1); }
.clent.picked::before, .clent.picked::after { background: var(--c4); }

/* clesp (spine): the phone redraw of the section, a stepped vertical line with clent notes as its stops */
.clesp { display: flex; flex-direction: column; gap: var(--s6); border-inline-start: .1875rem solid var(--c2); }
.clesp > .clent::after { inset-inline-start: -.40625rem; }
.clesp > .clent:nth-child(even) { padding-inline-start: var(--s7); }
.clesp > .clent:nth-child(even)::before { inline-size: var(--s6); }

/* cledr (draw in): with data-glance on the same element, crop marks close in and a note's leader draws once it is seen; the content itself never moves */
.js .clecm.cledr:not(.arrived)::before, .js .clecmn.cledr:not(.arrived)::before { opacity: 0; inset: calc(var(--s5) * -1); }
.js .clent.cledr:not(.arrived)::before { transform: scaleX(0); }

/* cleop (opening): the stepped first screen; an h1 holding cleup (upper word) and cledn (lower word), a clepic between them, clemt (meeting point) for the sentence and action */
.cleop { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); padding-block: var(--s4) var(--s8); }
.cleop h1 { display: contents; }
.cleup { grid-area: 1 / 1 / 2 / 3; justify-self: start; color: var(--c3); }
.cleop > .clepic { grid-area: 2 / 1 / 3 / 3; }
.cleop > .clepic > img, .cleop > .clepic > video { block-size: clamp(12rem, 42vh, 26rem); }
.cledn { grid-area: 3 / 1 / 4 / 3; justify-self: end; color: var(--c4); background: var(--c3); padding: .08em .25em; }
.clemt { grid-area: 4 / 1 / 5 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.clemt > p { font-size: var(--t3); line-height: 1.35; max-inline-size: 30rem; }
@media (min-width: 40rem) {
  .cledn { grid-area: 3 / 2 / 4 / 3; align-self: start; }
  .clemt { grid-area: 3 / 1 / 4 / 2; }
}

/* ---------- chrome ---------- */

/* clejp (jump): the skip link, shown on focus */
.clejp { position: fixed; z-index: 50; inset-block-start: var(--s2); inset-inline-start: var(--s2); background: var(--c3); color: var(--c2); padding: var(--s3) var(--s4); transform: translateY(-200%); }
.clejp:focus { transform: none; }

/* clehd (head): the slate band that carries the path and the hung tag; pinned from tablet width up */
.clehd { position: relative; z-index: 20; display: flex; flex-direction: column; justify-content: center; background: var(--c1); padding: var(--s2) var(--s5); transition: padding var(--d2); }

/* clepth (path): name / section / page / Menu, wrapping only between whole segments; clenm (name), cleseg (segment), clesl (slash), clestail (the last segment with the disclosure kept beside it) */
.clepth { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); font-size: var(--t2); line-height: 1.2; }
.clepth a { display: inline-flex; align-items: center; min-block-size: 2.75rem; text-decoration: none; }
.clepth a:hover, .clepth a[aria-current] { text-decoration: underline; text-decoration-thickness: .125rem; }
.clenm { gap: var(--s2); white-space: nowrap; }
.clenm svg { inline-size: 1.5rem; block-size: 1.5rem; flex: none; }
.cleseg { display: inline-flex; align-items: center; gap: var(--s3); white-space: nowrap; }
.clesl { display: inline-block; transition: transform var(--d1); }
.clestail { display: inline-flex; align-items: center; gap: 0 var(--s3); min-inline-size: 0; max-inline-size: 100%; }

/* clemn (menu): the slash-shaped disclosure on its white plate; clelst (list): the pages it opens beneath the path, .opened when shown */
.clemn { display: inline-flex; align-items: center; gap: var(--s2); min-block-size: 2.75rem; padding: 0 var(--s3); background: var(--c3); color: var(--c2); }
.clemn .clesl { color: var(--c4); }
.clemn[aria-expanded="true"] .clesl { transform: scaleX(-1); }
.clelst { display: flex; flex-wrap: wrap; gap: 0 var(--s5); padding-block-end: var(--s2); }
.clelst a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.clelst a[aria-current] { text-decoration-thickness: .1875rem; }
.js .clelst { display: none; }
.js .clelst.opened { display: flex; animation: cleshow var(--d2) both; }
@keyframes cleshow { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }

/* cletg (tag): the offer, a small blue tag hung from a drawn string at the upper edge with two corner marks under it,
   a line about quoting and the email link. It hangs there from the first frame, at every width; the build's script only
   takes the [hidden] attribute away. It is away when the visitor puts it away (.cleput). cletx (tag text). */
.cletg { position: absolute; z-index: 30; inset-block-start: var(--s2); inset-inline: auto var(--s5); inline-size: min(100% - 2 * var(--s5), 20rem); display: flex; align-items: flex-start; gap: var(--s2); background: var(--c4); color: var(--c3); padding: var(--s2) var(--s1) var(--s2) var(--s3); font-size: var(--t2); line-height: 1.3; transition: transform var(--d2) cubic-bezier(.2, .8, .2, 1), opacity var(--d2), visibility var(--d2); animation: cledrop var(--d2) cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes cledrop { from { transform: translateY(-115%); opacity: 0; } }
.cletg[hidden] { display: flex !important; }
.cletg.cleput { transform: translateY(-130%); opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.cletg::before { content: ""; position: absolute; inset-block-end: 100%; inset-inline-start: 50%; inline-size: .125rem; block-size: var(--s2); background: var(--c2); }
.cletg::after {
  content: ""; position: absolute; inset: auto -.375rem -.375rem -.375rem; block-size: .75rem; pointer-events: none;
  background:
    linear-gradient(var(--c2), var(--c2)) 0 100% / .75rem .125rem,
    linear-gradient(var(--c2), var(--c2)) 0 100% / .125rem .75rem,
    linear-gradient(var(--c2), var(--c2)) 100% 100% / .75rem .125rem,
    linear-gradient(var(--c2), var(--c2)) 100% 100% / .125rem .75rem;
  background-repeat: no-repeat;
}
.cletx { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.cletx p { font-size: var(--t2); line-height: 1.3; }
.cletx a { display: inline-flex; align-items: center; min-block-size: 2.75rem; padding: 0 var(--s3); background: var(--c3); color: var(--c4); font-size: var(--t1); }
.cletg button { flex: none; min-inline-size: 2.75rem; min-block-size: 2.75rem; font-size: 1.375rem; line-height: 1; }
.cletg :focus-visible { outline-color: var(--c3); }

/* clecs (consent): a slim bottom sheet on a phone, a narrow right-edge panel on wider screens; two buttons of equal weight.
   cleidle: no optional cookies are set, so the sheet stays away until the visitor asks for it from the footer (.cleasked) */
.clecs { position: fixed; z-index: 40; inset: auto 0 0 0; display: flex; flex-direction: column; gap: var(--s2); background: var(--c3); color: var(--c2); padding: var(--s3) var(--s5); font-size: var(--t1); line-height: 1.35; }
.clecs.cleidle:not(.cleasked) { display: none !important; }
.clecs > div { display: flex; gap: var(--s2); }
.clecs button { flex: 1; min-block-size: 2.75rem; padding: var(--s1) var(--s3); background: var(--c2); color: var(--c3); line-height: 1.15; transition: background-color var(--d1); }
.clecs button:hover { background: var(--c4); }

/* cleft (foot): the closing photograph with a few captions round it; clewn (working note above the photo),
   cleat (the return link and the email at the photo's lower edge), clebase (the last line: all pages, the address and the copyright),
   cleall (the folded list of every page), clerun (a slash-separated run of small lines), cleadr (the address caption in that last line) */
.cleft { padding-block: var(--s8) var(--s7); }
.cleft > .clewd { display: flex; flex-direction: column; gap: var(--s5); }
.clewn { font-size: var(--t3); line-height: 1.4; max-inline-size: 52rem; }
.cleadr { display: flex; flex-direction: column; align-items: flex-start; font-size: var(--t1); line-height: 1.4; }
.cleadr a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.cleft .clepic > img { block-size: clamp(10rem, 36vh, 22rem); }
.cleat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s5); }
.cleat a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.clebase { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s3) var(--s6); }
.clebase > nav { flex: 1 1 18rem; min-inline-size: 0; }
.clebase > .cleadr { flex: 0 1 20rem; padding-block-start: var(--s3); }
.clebase > .clecpt { flex: 0 1 26rem; padding-block-start: var(--s3); }
.cleall > summary { display: inline-flex; align-items: center; gap: var(--s2); min-block-size: 2.75rem; padding: 0 var(--s3); background: var(--c3); color: var(--c2); font-size: var(--t1); cursor: pointer; list-style: none; }
.cleall > summary::-webkit-details-marker { display: none; }
.cleall > summary::before { content: "/"; display: inline-block; color: var(--c4); transition: transform var(--d1); }
.cleall[open] > summary::before { transform: scaleX(-1); }
.cleall > .clerun { padding-block-start: var(--s2); }
.clerun { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); font-size: var(--t1); line-height: 1.3; }
.clerun > * { display: inline-flex; align-items: center; gap: var(--s3); min-block-size: 2.75rem; }
.clerun > * + *::before { content: "/"; }
.clerun a, .clerun button { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.clerun button { text-decoration: underline; text-decoration-thickness: .0625rem; text-underline-offset: .2em; }
.clerun button:hover { text-decoration-thickness: .1875rem; }

@media (max-width: 47.99rem) {
  /* the tag hangs in the band above the path while it is there, and the path waits below it */
  body:has(.cletg) .clehd { padding-block-start: 8.25rem; }
}

@media (min-width: 48rem) {
  .clehd { position: sticky; inset-block-start: 0; min-block-size: 5.5rem; padding-inline-end: 24rem; }
  body:has(.cletg) .clehd { min-block-size: 7rem; }
  .cletg { position: fixed; inset-inline: auto var(--s5); inline-size: 21rem; }
  .cletx a { min-block-size: 1.75rem; }
  .cletg button { min-inline-size: 2.25rem; min-block-size: 2.25rem; }
  .clecs { inset: auto 0 var(--s6) auto; inline-size: 16.5rem; gap: var(--s3); padding: var(--s4); }
  .clecs::before {
    content: ""; position: absolute; inset: -.5rem auto -.5rem -.5rem; inline-size: .875rem; pointer-events: none;
    background:
      linear-gradient(var(--c2), var(--c2)) 0 0 / .875rem .125rem,
      linear-gradient(var(--c2), var(--c2)) 0 0 / .125rem .875rem,
      linear-gradient(var(--c2), var(--c2)) 0 100% / .875rem .125rem,
      linear-gradient(var(--c2), var(--c2)) 0 100% / .125rem .875rem;
    background-repeat: no-repeat;
  }
  .clecs > div { flex-direction: column; }
  .clebase > .clecpt { text-align: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
header a, header button, nav a, nav button { position: relative; z-index: 2; }
html, body { overflow-x: clip; }
