/* The service page template (Business Websites, Ecommerce). The Studio document holds the layout, type sizes and colours.
   This file adds what a document cannot hold: hover, motion, drawn details and the visitor controls.
   Every selector starts at a section of this page. Motion applies only while a section carries data-bw-live,
   which the page script sets for visitors and removes while the page is being edited.
   Studio keeps ::before on every content element for its own overlay, so drawn details here use ::after. */

@import url("qs-title-font.css?v=1");

section[id^="bw_"] { scroll-margin-top: 90px; }

/* Titles. Everything a page asks to be set in the display font is set in the site's title font, "QS Title": the font
   of the logo, carried by qs-title-font.css (lab/title_font.py). The page title and the section headings are a size
   smaller than the documents ask for: the owner found the first sizes too large. The page script writes to the same
   style attribute, and the browser then spells it with a space after each colon: both spellings are named. */
#Form [data-qs-layout="homepage"] .qs-studio-page :is([style*="--n-font-family:Outfit"], [style*="--n-font-family: Outfit"]) { font-family: "QS Title", Outfit, system-ui, sans-serif !important; letter-spacing: -.012em !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-h1"] { font-size: clamp(34px, 4.2vw, 88px) !important; line-height: 1.04 !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-heading"] { font-size: clamp(30px, 3.1vw, 66px) !important; line-height: 1.06 !important; }

#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is([data-qs-role="bw-label"], [data-qs-role="bw-case-kind"]) { color: var(--n-color, #17212b) !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is(h1, h2) em { font-style: normal; color: #00aeef !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is([data-qs-role="bw-fact-n"], [data-qs-role="bw-amount"], [data-qs-role="bw-phone"]) { font-variant-numeric: tabular-nums; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is(a, button, summary):focus-visible { outline: 2px solid #0079a6; outline-offset: 3px; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] figure img { display: block; }

/* Buttons and the phone number */
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is([data-qs-role="bw-primary"], [data-qs-role="bw-secondary"]) { transition: background-color .25s, border-color .25s, color .25s; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-primary"] { background-color: #00aeef !important; border-color: #00aeef !important; color: #06131d !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-primary"]:is(:hover, :focus-visible) { background-color: #17212b !important; border-color: #17212b !important; color: #f6fafd !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page :is(#bw_process, #bw_price, #bw_contact) [data-qs-role="bw-primary"]:is(:hover, :focus-visible) { background-color: #f6fafd !important; border-color: #f6fafd !important; color: #06131d !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-secondary"] { background-color: transparent !important; border-color: #17212b !important; color: #17212b !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-secondary"]:is(:hover, :focus-visible) { background-color: #17212b !important; color: #f6fafd !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is([data-qs-role="bw-primary"], [data-qs-role="bw-secondary"], [data-qs-role="bw-case-link"], [data-qs-role="bw-textlink"]) .qs-studio-arrow { transition: translate .25s; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] :is([data-qs-role="bw-primary"], [data-qs-role="bw-secondary"], [data-qs-role="bw-case-link"], [data-qs-role="bw-textlink"]):is(:hover, :focus-visible) .qs-studio-arrow { translate: 3px -3px; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-phone"] { background: transparent !important; border: 0 !important; color: var(--n-color, #17212b) !important; text-decoration: none; transition: color .25s; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-phone"]:is(:hover, :focus-visible) { color: #00aeef !important; }
#Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] [data-qs-role="bw-phone"] .qs-studio-arrow { display: none; }

/* Opening: three client websites, layered. The two at the back show their top or bottom half and one side. Pointing at one brings it
   forward; choosing it (click, tap or Enter) keeps it there. The pictures themselves do not move. */
#Form #bw_top [data-qs-role="bw-stage"] { position: relative; isolation: isolate; }
#Form #bw_top [data-qs-role="bw-stage"]::after { content: ""; position: absolute; inset: 6% -6%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 174, 239, .2), rgba(0, 174, 239, .06) 60%, transparent); }
#Form #bw_top :is([data-qs-role="bw-shot-back"], [data-qs-role="bw-shot-mid"], [data-qs-role="bw-shot-front"]) { position: relative; z-index: 1; transition: translate .5s cubic-bezier(.2, .7, .2, 1), scale .5s cubic-bezier(.2, .7, .2, 1); }
#Form #bw_top [data-qs-role="bw-shot-back"] { translate: calc(var(--bw-px, 0) * -14px) calc(var(--bw-py, 0) * -10px); }
#Form #bw_top [data-qs-role="bw-shot-mid"] { translate: calc(var(--bw-px, 0) * -22px) calc(var(--bw-py, 0) * -14px); }
#Form #bw_top [data-qs-role="bw-shot-front"] { z-index: 2; translate: calc(var(--bw-px, 0) * 10px) calc(var(--bw-py, 0) * 8px); }
#Form #bw_top[data-bw-live] [data-qs-role="bw-stage"] > [data-bw-chosen] { z-index: 3; }
#Form #bw_top[data-bw-live] [data-qs-role="bw-stage"] > :is([data-qs-role="bw-shot-back"], [data-qs-role="bw-shot-mid"])[data-bw-chosen] { scale: 1.04; }
#Form #bw_top[data-bw-live] [data-qs-role="bw-stage"] > :not([data-bw-chosen]) { cursor: pointer; }
#Form #bw_top[data-bw-live] [data-qs-role="bw-stage"] > :focus-visible { outline: 2px solid #00aeef; outline-offset: 5px; }
@media (hover: hover) {
  #Form #bw_top [data-qs-role="bw-stage"] > :hover { z-index: 4; }
  #Form #bw_top :is([data-qs-role="bw-shot-back"], [data-qs-role="bw-shot-mid"]):hover { scale: 1.04; }
}
#Form #bw_top [data-qs-role="bw-shot-pic"] img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
/* Anchor each note to a feature in its own capture. The run is the horizontal
   distance from the label to the feature, measured against that capture's width. */
#Form #bw_top [data-qs-role="bw-stage"] { container: bw-opening / inline-size; }
#Form #bw_top :is([data-qs-role="bw-shot-back"], [data-qs-role="bw-shot-mid"], [data-qs-role="bw-shot-front"]) { container-type: inline-size; }
#Form #bw_top [data-qs-role="bw-call"] {
  --bw-gap: clamp(10px, 4cqw, 28px);
  --bw-run: 0px;
  --bw-bar: clamp(12px, 1.2vw, 26px);
  --bw-pic: 62.5cqw;
  --bw-rise: calc(var(--bw-gap) + var(--bw-bar) + var(--bw-fy) * var(--bw-pic));
  position: absolute; z-index: 1; bottom: calc(100% + var(--bw-gap));
  left: calc(var(--bw-fx) * 100% - var(--bw-run)); translate: calc(var(--bw-at) * -100%) 0;
  border: 1px solid #d9e0e6; border-left: 3px solid #00aeef; border-left-color: #00aeef !important;
}
#Form #bw_top [data-qs-role="bw-call"]::after {
  content: ""; position: absolute; pointer-events: none; top: 100%; left: calc(var(--bw-at) * 100%);
  height: 16px; margin-top: -8px; width: calc(hypot(var(--bw-run), var(--bw-rise)) + 8px);
  transform-origin: 0 50%; rotate: atan2(var(--bw-rise), var(--bw-run));
  background: radial-gradient(circle, #00aeef 0 3px, #fefefe 3.4px 5px, rgba(0, 174, 239, .3) 5.4px 7.4px, transparent 8px) right center / 16px 16px no-repeat,
    linear-gradient(#00aeef, #00aeef) left center / calc(100% - 8px) 1.5px no-repeat;
}
/* fx, fy: the place a note is about, as a share of its picture's width and height. run: how far to the side of that place the note
   stands (positive: to its left). gap: how far outside the picture. at: how far along the note's edge the line leaves it. */
/* The editing view, behind and top right. Its tools: the button that adds a section, the toolbar over the selected heading, and the
   list in the content panel. The last note stands in the open space on the right, clear of the window in front. */
#Form #bw_top [data-qs-node="bw_call_add"] { --bw-fx: .0113; --bw-fy: .0354; --bw-run: -6cqw; --bw-at: .3; --bw-n: 2; }
#Form #bw_top [data-qs-node="bw_call_text"] { --bw-fx: .1383; --bw-fy: .2276; --bw-run: -36cqw; --bw-gap: 14cqw; --bw-at: .1; --bw-n: 3; }
#Form #bw_top [data-qs-node="bw_call_items"] { --bw-fx: .968; --bw-fy: .459; --bw-run: 9cqw; --bw-gap: 14cqw; --bw-at: .3; --bw-n: 7; }
/* Clearwater Aviation, in front. Two notes reach into the open space top left on long lines. */
#Form #bw_top [data-qs-node="bw_call_brand"] { --bw-fx: .10; --bw-fy: .045; --bw-run: 10cqw; --bw-gap: 6cqw; --bw-at: .82; --bw-n: 0; }
#Form #bw_top [data-qs-node="bw_call_rates"] { --bw-fx: .355; --bw-fy: .044; --bw-run: 22cqw; --bw-gap: 20cqw; --bw-at: .82; --bw-n: 1; }
#Form #bw_top [data-qs-node="bw_call_words"] { --bw-fx: .60; --bw-fy: .63; --bw-run: -12cqw; --bw-at: .22; --bw-n: 6; }
/* Reliance Construction, behind and bottom left. */
#Form #bw_top [data-qs-node="bw_call_action"] { --bw-fx: .173; --bw-fy: .826; --bw-run: -10cqw; --bw-at: .18; --bw-n: 4; }
#Form #bw_top [data-qs-node="bw_call_photo"] { --bw-fx: .82; --bw-fy: .73; --bw-run: -26cqw; --bw-at: .18; --bw-n: 5; }
/* These stand below their picture, and their lines run up. */
#Form #bw_top :is([data-qs-node="bw_call_words"], [data-qs-node="bw_call_action"], [data-qs-node="bw_call_photo"], [data-qs-node="bw_call_items"]) {
  top: calc(100% + var(--bw-gap)); bottom: auto;
  --bw-rise: calc(-1 * (var(--bw-gap) + (1 - var(--bw-fy)) * var(--bw-pic)));
}
#Form #bw_top :is([data-qs-node="bw_call_words"], [data-qs-node="bw_call_action"], [data-qs-node="bw_call_photo"], [data-qs-node="bw_call_items"])::after { top: 0; }
/* Where the windows are small, fewer notes are shown so that none touch. */
@container bw-opening (max-width: 560px) {
  #Form #bw_top :is([data-qs-node="bw_call_brand"], [data-qs-node="bw_call_add"]) { display: none; }
}
@container bw-opening (max-width: 450px) {
  #Form #bw_top [data-qs-role="bw-call"] { font-size: 11px; padding: 6px 8px; }
  #Form #bw_top [data-qs-node="bw_call_items"] { display: none; }
  #Form #bw_top [data-qs-node="bw_call_text"] { --bw-run: -14cqw; --bw-gap: clamp(10px, 4cqw, 28px); --bw-at: .3; }
  #Form #bw_top [data-qs-node="bw_call_rates"] { --bw-run: 26cqw; --bw-gap: 5cqw; }
  #Form #bw_top [data-qs-node="bw_call_words"] { --bw-run: -3cqw; --bw-at: .42; }
  #Form #bw_top [data-qs-node="bw_call_photo"] { --bw-run: -23cqw; --bw-at: .24; }
  #Form #bw_top [data-qs-node="bw_call_action"] { --bw-run: -3cqw; --bw-at: .3; }
}
/* Points under the buttons */
#Form #bw_top [data-qs-role="bw-tick"] { display: flex; align-items: center; gap: .6em; }
#Form #bw_top [data-qs-role="bw-tick"]::after { content: ""; order: -1; flex: none; width: .7em; height: .38em; margin: 0 .1em .2em .15em; border: solid #00aeef; border-width: 0 0 2px 2px; rotate: -45deg; }
#Form #bw_top [data-qs-role="bw-fact"]:last-child { box-shadow: none; margin-right: 0; }
@media (max-width: 831px) {
  #Form #bw_top [data-qs-role="bw-fact"]:nth-child(even) { box-shadow: none; margin-right: 0; }
  #Form #bw_top [data-qs-role="bw-fact"]:nth-child(n+3) { box-shadow: 0 -1px 0 #d9e0e6; }
  #Form #bw_top [data-qs-role="bw-fact"]:nth-child(3) { box-shadow: 0 -1px 0 #d9e0e6, 1px 0 0 #d9e0e6; }
}

/* Client logos */
/* Client logos in their own colours, brought to a similar visible size. A wide wordmark and a round badge of the same height look
   nothing alike in size, so each logo's height follows its shape: the script sets --bw-k from the picture's proportions so that all
   cover about the same area, up to a longest width. Without the script (while editing) every logo fits one box instead.
   The strip takes the same time per logo however many there are. */
#Form #bw_clients [data-qs-role="bw-logo"] { flex: none; width: auto; height: auto; --bw-logo: clamp(52px, 4.6vw, 104px); }
#Form #bw_clients [data-qs-role="bw-logo"] img { display: block; width: auto; height: calc(var(--bw-logo) * var(--bw-k, .7)); max-width: calc(var(--bw-logo) * 2); object-fit: contain; }
#Form #bw_clients [data-qs-role="bw-logo"] img[style*="--bw-k"] { max-width: calc(var(--bw-logo) * 3.4); }
#Form #bw_clients [data-qs-role="bw-logos"][data-bw-marquee] { flex-wrap: nowrap; width: max-content; --bw-gap: clamp(34px, 4.2vw, 100px); gap: 0 var(--bw-gap); animation: bw-marquee var(--bw-time, 44s) linear infinite; }
#Form #bw_clients [data-qs-role="bw-logos-view"]:has([data-bw-marquee]) { -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
#Form #bw_clients [data-qs-role="bw-logos"][data-bw-marquee]:hover { animation-play-state: paused; }
@keyframes bw-marquee { to { transform: translateX(calc(-50% - var(--bw-gap) / 2)); } }

/* What comes with the website */
#Form #bw_included [data-qs-role="bw-kit-item"] { position: relative; overflow: hidden; transition: background-color .3s; }
#Form #bw_included [data-qs-role="bw-kit-item"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(clamp(180px, 16vw, 380px) circle at var(--bw-mx, 50%) var(--bw-my, 30%), rgba(0, 174, 239, .14), transparent 70%);
}
#Form #bw_included [data-qs-role="bw-kit-item"]:hover::after { opacity: 1; }
#Form #bw_included [data-qs-role="bw-kit-item"] > * { position: relative; z-index: 1; }
#Form #bw_included [data-qs-role="bw-kit-art"] { transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
#Form #bw_included [data-qs-role="bw-kit-item"]:hover [data-qs-role="bw-kit-art"] { scale: 1.04; }
#Form #bw_included [data-qs-role="bw-kit-art"] img, #Form #bw_process [data-qs-role="bw-step-art"] img { width: 100%; height: 100%; object-fit: contain; }

/* How a project runs */
#Form :is(#bw_process, #bw_price, #bw_contact) { position: relative; isolation: isolate; }
#Form #bw_process::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52vw 40vw at 100% 0, rgba(0, 174, 239, .1), transparent 62%), radial-gradient(36vw 30vw at 0 100%, rgba(0, 174, 239, .06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% clamp(48px, 5vw, 96px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / clamp(48px, 5vw, 96px) 100%;
}
@media (min-width: 1024px) { #Form :is(#bw_process [data-qs-role="bw-proc-aside"], #bw_questions [data-qs-role="bw-faq-side"]) { position: sticky; top: clamp(104px, 15vh, 170px); } }
#Form #bw_process [data-qs-role="bw-meter"] { padding-bottom: 17px; background-image: linear-gradient(to right, #00aeef var(--bw-progress, 0%), rgba(255, 255, 255, .16) 0); background-size: 100% 3px; background-position: left bottom; background-repeat: no-repeat; }
#Form #bw_process [data-qs-role="bw-meter"][data-bw-step] > [data-qs-text] { display: none; }
#Form #bw_process [data-qs-role="bw-meter"][data-bw-step]::after { content: "Step " attr(data-bw-step) " of " attr(data-bw-total) "  /  " attr(data-bw-name); }
#Form #bw_process [data-qs-role="bw-step"]:first-child { box-shadow: none; }
#Form #bw_process [data-qs-role="bw-step"] { position: relative; }
#Form #bw_process[data-bw-live] [data-qs-role="bw-step"]::after { content: ""; position: absolute; left: calc(clamp(14px, 1.6vw, 36px) * -1); top: 0; bottom: 0; width: 2px; background: #00aeef; transform: scaleY(0); transform-origin: top; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
#Form #bw_process[data-bw-live] [data-qs-role="bw-step"][data-bw-active]::after { transform: scaleY(1); }
#Form #bw_process[data-bw-live] :is([data-qs-role="bw-step-n"], [data-qs-role="bw-step-art"]) { transition: opacity .5s, scale .5s cubic-bezier(.2, .7, .2, 1); }
#Form #bw_process[data-bw-live] [data-qs-role="bw-step"]:not([data-bw-active]) [data-qs-role="bw-step-n"] { opacity: .38; }
#Form #bw_process[data-bw-live] [data-qs-role="bw-step"]:not([data-bw-active]) [data-qs-role="bw-step-art"] { opacity: .5; scale: .96; }

/* The row of projects from QS Related Projects stands between two parts of this page and takes the page's scale:
   the space of its sections, the size of its headings, the gap of its rows. */
#Form [data-qs-layout="homepage"] .qs-projects.qs-projects-related { --qs-projects-space: clamp(56px, 5.4vw, 118px); --qs-projects-heading-size: clamp(34px, 4.5vw, 96px); --qs-projects-gap: clamp(12px, 1.2vw, 28px); }
#Form [data-qs-layout="homepage"] .qs-projects-related .qs-projects-label { color: #17212b; }
@media (min-width: 1024px) { #Form [data-qs-layout="homepage"] .qs-projects-related .qs-projects-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); } }
@media (max-width: 831px) { #Form [data-qs-layout="homepage"] .qs-projects.qs-projects-related { --qs-projects-space: 52px; } }
/* Client websites: a row of cards on the page background; each capture scrolls through the whole page on hover */
#Form #bw_work [data-qs-role="bw-rail"] { scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
#Form #bw_work [data-qs-role="bw-rail"]::-webkit-scrollbar { display: none; }
#Form #bw_work [data-qs-role="bw-rail"][data-bw-drag] { cursor: grab; }
#Form #bw_work [data-qs-role="bw-rail"][data-bw-drag="on"] { cursor: grabbing; scroll-snap-type: none; }
#Form #bw_work [data-qs-role="bw-rail"][data-bw-drag="on"] * { pointer-events: none; }
#Form #bw_work [data-qs-role="bw-case"] { scroll-snap-align: start; }
/* Some captures carry the strip of the browser scrollbar on their right edge: the picture is 2% wider than its box, which cuts that strip off. */
#Form #bw_work [data-qs-role="bw-case-shot"] img { width: 102%; max-width: none; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 0; transition: object-position 1.4s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { #Form #bw_work [data-qs-role="bw-case"]:hover [data-qs-role="bw-case-shot"] img { object-position: 50% 100%; transition: object-position 8s linear .15s; } }
/* The line sits under the words only. On the link itself it would also be drawn under the arrow, with a gap between the two. */
#Form #bw_work [data-qs-role="bw-case-link"] { background: transparent !important; border: 0 !important; color: #17212b !important; text-decoration: none; }
#Form #bw_work [data-qs-role="bw-case-link"] [data-qs-text] { text-decoration: underline; text-decoration-color: #00aeef; text-decoration-thickness: 2px; text-underline-offset: .35em; }
#Form #bw_work [data-qs-role="bw-case-link"] .qs-studio-arrow { color: #00aeef; }
#Form #bw_work [data-qs-role="bw-case-link"]:is(:hover, :focus-visible) { color: #0079a6 !important; }
#bw_work .bw-rail-controls { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: clamp(18px, 1.6vw, 34px); }
#bw_work .bw-rail-controls[hidden] { display: none; }      /* every card fits: nothing to move */
#bw_work .bw-rail-track { flex: 1; height: 2px; background: #d9e0e6; }
#bw_work .bw-rail-fill { display: block; height: 100%; width: 100%; background: #00aeef; transform-origin: left; transform: scaleX(var(--bw-rail, .2)); transition: transform .2s linear; }
#bw_work .bw-rail-controls button { display: inline-grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid #17212b; border-radius: 0; background: transparent; color: #17212b; font: 400 20px/1 system-ui, sans-serif; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s; }
#bw_work .bw-rail-controls button:is(:hover, :focus-visible) { background: #17212b; color: #fff; }
#bw_work .bw-rail-controls button:disabled { opacity: .3; cursor: default; background: transparent; color: #17212b; }
#Form #bw_work [data-qs-role="bw-more"] { box-shadow: 0 -1px 0 #d9e0e6; padding-top: clamp(18px, 1.6vw, 34px); }

/* After launch */
#Form #bw_after [data-qs-role="bw-frame"] img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
#Form #bw_after [data-qs-role="bw-point"]:last-child { box-shadow: 0 -1px 0 #cfd9e1, 0 1px 0 #cfd9e1; }

/* Price */
#Form #bw_price::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50vw 38vw at 0 100%, rgba(0, 174, 239, .13), transparent 62%), radial-gradient(32vw 26vw at 100% 0, rgba(0, 174, 239, .06), transparent 60%); }
#Form #bw_price [data-qs-role="bw-factor"]:last-child { box-shadow: 0 -1px 0 rgba(255, 255, 255, .18), 0 1px 0 rgba(255, 255, 255, .18); }

/* Questions: numbered cards that open */
#Form #bw_questions [data-qs-role="bw-question-list"] { counter-reset: bw-question; width: 100%; max-width: none; }
#Form #bw_questions [data-qs-role="bw-question"] { position: relative; counter-increment: bw-question; transition: box-shadow .3s; box-shadow: inset 0 0 0 1px #e1e8ee; }
#Form #bw_questions [data-qs-role="bw-question"]:hover { box-shadow: inset 0 0 0 1px #9fd9f3; }
#Form #bw_questions [data-qs-role="bw-question"][open] { box-shadow: inset 3px 0 0 #00aeef, inset 0 0 0 1px #e1e8ee, 0 18px 50px rgba(12, 34, 48, .1); }
#Form #bw_questions details > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(14px, 1.4vw, 30px); list-style: none; cursor: pointer; font-family: Outfit, system-ui, sans-serif; font-weight: 600; }
#Form #bw_questions details > summary::-webkit-details-marker { display: none; }
#Form #bw_questions details > summary::before { content: counter(bw-question, decimal-leading-zero); font: 600 12px/1 var(--font-body, Inter, system-ui, sans-serif); letter-spacing: .08em; color: #0079a6; }
#Form #bw_questions details > summary::after {
  content: ""; width: clamp(32px, 2.4vw, 44px); aspect-ratio: 1; border-radius: 50%; transition: rotate .35s cubic-bezier(.2, .7, .2, 1), background-color .3s;
  background: linear-gradient(#17212b, #17212b) center / 34% 2px no-repeat, linear-gradient(#17212b, #17212b) center / 2px 34% no-repeat, #eef4f8;
}
#Form #bw_questions details > summary:hover::after { background-color: #d3effb; }
#Form #bw_questions details[open] > summary::after { rotate: 45deg; background: linear-gradient(#fff, #fff) center / 34% 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 34% no-repeat, #00aeef; }
#Form #bw_questions .qs-studio-details-body { padding: clamp(10px, .9vw, 18px) clamp(46px, 4vw, 84px) 0 calc(clamp(14px, 1.4vw, 30px) + 1.9em); max-width: 70em; }
@media (max-width: 620px) { #Form #bw_questions .qs-studio-details-body { padding: 12px 0 0; } }
@supports (interpolate-size: allow-keywords) {
  #Form #bw_questions details { interpolate-size: allow-keywords; }
  #Form #bw_questions details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2, .7, .2, 1), content-visibility .35s allow-discrete; }
  #Form #bw_questions details[open]::details-content { height: auto; }
}

/* Related services, and the pages under a service: tiles that link to another page */
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"] { position: relative; overflow: hidden; transition: background-color .3s; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"]::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: #00aeef; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"]:is(:hover, :focus-within) { background-color: #f1f9fd !important; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"]:is(:hover, :focus-within)::after { transform: scaleX(1); }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-icon"] { transition: translate .45s cubic-bezier(.2, .7, .2, 1); }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"]:is(:hover, :focus-within) [data-qs-role="bw-related-icon"] { translate: 0 -6px; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-icon"] img { width: 100%; height: 100%; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-textlink"] { background: transparent !important; border: 0 !important; text-decoration: none; gap: .4em; }
/* The link must not be positioned, transformed or filtered: any of these would keep its click area (the ::after below) inside the
   title instead of letting it cover the whole tile. Studio gives buttons a transform, and a brightness filter while pointed at;
   with the filter the area shrank under the pointer, so a press and its release landed on different things and no click followed. */
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-textlink"] { position: static; transform: none !important; filter: none !important; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-textlink"] .qs-studio-arrow { color: #00aeef; }
#Form :is(#bw_related, #bw_kinds) [data-qs-role="bw-related-item"]:is(:hover, :focus-within) [data-qs-role="bw-textlink"] { color: #0079a6 !important; }
/* For visitors the link covers its whole tile, above the icon and the description. While editing it does not, so each part can be chosen.
   Every Studio element is its own layer, so the link is lifted as a whole (z-index works on it because the tile is a flex box). */
#Form :is(#bw_related, #bw_kinds)[data-bw-live] [data-qs-role="bw-textlink"] { z-index: 2; }
#Form :is(#bw_related, #bw_kinds)[data-bw-live] [data-qs-role="bw-textlink"]::after { content: ""; position: absolute; inset: 0; cursor: pointer; }

/* Closing: what happens next, as three steps */
#Form #bw_contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48vw 40vw at 100% 100%, rgba(0, 174, 239, .16), transparent 64%), radial-gradient(34vw 28vw at 0 0, rgba(0, 174, 239, .07), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% clamp(48px, 5vw, 96px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / clamp(48px, 5vw, 96px) 100%;
}
#Form #bw_contact [data-qs-role="bw-next"] { position: relative; box-shadow: inset 3px 0 0 #00aeef; transition: translate .4s cubic-bezier(.2, .7, .2, 1); }
#Form #bw_contact [data-qs-role="bw-next"]:hover { translate: 6px 0; }
@media (min-width: 1024px) {
  #Form #bw_contact [data-qs-role="bw-next"]:nth-child(2) { margin-left: clamp(18px, 2.2vw, 56px); }
  #Form #bw_contact [data-qs-role="bw-next"]:nth-child(n+3) { margin-left: clamp(36px, 4.4vw, 112px); }
}

/* Arriving on scroll. Applies only to visitors: the script marks what to reveal and when it is in view. */
@media (prefers-reduced-motion: no-preference) {
  section[id^="bw_"][data-bw-live] [data-bw-reveal] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--bw-i, 0) * 70ms); }
  section[id^="bw_"][data-bw-live] [data-bw-reveal]:not([data-bw-in]) { opacity: 0; translate: 0 26px; }
  #Form #bw_top[data-bw-live] :is([data-qs-role="bw-shot-back"], [data-qs-role="bw-shot-mid"], [data-qs-role="bw-shot-front"]) { animation: bw-shot .9s cubic-bezier(.2, .7, .2, 1) both; }
  #Form #bw_top[data-bw-live] [data-qs-role="bw-shot-mid"] { animation-delay: .12s; }
  #Form #bw_top[data-bw-live] [data-qs-role="bw-shot-front"] { animation-delay: .24s; }
  /* The notes arrive once the websites have settled; each line is then drawn out to its dot. */
  #Form #bw_top[data-bw-live] [data-qs-role="bw-call"] { animation: bw-call .5s cubic-bezier(.2, .7, .2, 1) calc(1.1s + var(--bw-n, 0) * .18s) both; }
  #Form #bw_top[data-bw-live] [data-qs-role="bw-call"]::after { animation: bw-line .55s cubic-bezier(.3, 0, .3, 1) calc(1.4s + var(--bw-n, 0) * .18s) both; }
}
@keyframes bw-shot { from { opacity: 0; scale: .92; } }
@keyframes bw-call { from { opacity: 0; scale: .9; } }
@keyframes bw-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  #Form #bw_clients [data-qs-role="bw-logos"][data-bw-marquee] { animation: none; flex-wrap: wrap; width: auto; }
  #Form [data-qs-layout="homepage"] .qs-studio-page section[id^="bw_"] * { transition-duration: .01s !important; }
}
