/* Hintling 4.0.0, page group "work": /work/ and the case studies (/work/<client>/) in V4, Powder & Slate, Lively motion.
   Replaces assets/css/case-study.css on those pages (inc/v4-work.php dequeues that file there; body .v4-cs on all of
   them, plus .v4-wk on /work/). Layout only, no words.
   The stored pages are unchanged: inc/v4-work.php adds, at render, a class to each top-level section (v4-cs-top, -text,
   -built, -how, -details, -time, -more, -cta, -notes; v4-cs-field for a former soft band) and the data-v4 motion marks.
   Real work: the screens sit in frames, never under a chip, label or gradient; every caption stays visible. */

/* ---------- page frame: the header's width and gutters ---------- */
body.v4-cs {
	--wp--style--root--padding-left: var(--gut);
	--wp--style--root--padding-right: var(--gut);
	--wp--style--global--wide-size: var(--wrap);
	--cs-pad: clamp(22px, 4.4vw, 64px);
	--cs-field: linear-gradient(168deg, var(--wash) 0%, var(--wash-2) 100%);
	/* three grey dots for a small browser bar 22px high (background-origin: border-box) */
	--cs-dots: radial-gradient(circle at 4px 4px, #D5DBE5 3.5px, transparent 4px) 10px 7px / 8px 8px no-repeat, radial-gradient(circle at 4px 4px, #D5DBE5 3.5px, transparent 4px) 23px 7px / 8px 8px no-repeat, radial-gradient(circle at 4px 4px, #D5DBE5 3.5px, transparent 4px) 36px 7px / 8px 8px no-repeat;
	--cs-glow: radial-gradient(60% 70% at 78% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), radial-gradient(45% 60% at 8% 100%, rgba(var(--glow), .15), rgba(var(--glow), 0) 70%), radial-gradient(42% 55% at 100% 100%, rgba(var(--glow-2), .3), rgba(var(--glow-2), 0) 70%);
}
.v4-cs .v4-cs-sec { margin-block: 0 !important; padding-top: calc(var(--sec) / 2) !important; padding-bottom: calc(var(--sec) / 2) !important; }
.v4-cs .v4-cs-sec:not(.v4-cs-field, .v4-cs-top, .v4-cs-cta) + .v4-cs-sec:not(.v4-cs-field, .v4-cs-top, .v4-cs-cta) { padding-top: calc(var(--sec) / 4) !important; }

/* stages: the hero and each former soft band become rounded colour fields inside the page margin (the closing call is
   the site-wide one in style.css) */
.v4-cs :is(.v4-cs-top, .v4-cs-field) {
	position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
	max-width: var(--wrap); margin: var(--gap) auto !important; padding: var(--cs-pad) !important;
	border-radius: var(--r-xl); background: var(--cs-field) !important;
}
.v4-cs :is(.v4-cs-top, .v4-cs-field)::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--cs-glow);
}
.v4-cs :is(.v4-cs-text, .v4-cs-more).v4-cs-field { background: var(--mist) !important; }
.v4-cs :is(.v4-cs-text, .v4-cs-more).v4-cs-field::before { background: radial-gradient(60% 70% at 78% 30%, #fff, rgba(255, 255, 255, 0) 70%); }

/* screen-reader words in the stored markup (3.x case-study.css held this rule) */
.v4-cs .hs-cs-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* section headings */
.v4-cs main h2.wp-block-heading { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.5rem); line-height: 1.04; letter-spacing: -.04em; margin: 0; }
.v4-cs main :where(.wp-block-group, .wp-block-column) > h2.wp-block-heading + p { margin-top: 18px !important; }

/* heading-and-words sections (the brief, running it, the timeline, the details): heading left, words right */
.v4-cs .v4-cs-sec .wp-block-columns { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 80px) !important; align-items: start; margin: 0 auto !important; }
.v4-cs .v4-cs-sec .wp-block-column { flex-basis: auto !important; min-width: 0; margin: 0 !important; }
.v4-cs .v4-cs-sec .wp-block-column > * { margin-top: 0; margin-bottom: 0; }
.v4-cs .v4-cs-sec .wp-block-column > p + p { margin-top: 1em !important; }
.v4-cs .v4-cs-text .wp-block-column:last-child > p:first-child { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.v4-cs .v4-cs-text .wp-block-column:last-child > p { max-width: 38em; }
.v4-cs .v4-cs-text .wp-block-column:last-child > p:first-child + p { margin-top: 1.1em !important; }

/* ---------- hero: one stage with the words, the facts and the real site in its frames ---------- */
.v4-cs .v4-cs-top { padding: clamp(36px, 6vw, 88px) var(--cs-pad) clamp(28px, 4vw, 56px) !important; text-align: center; }
.v4-cs .hs-cs-hero { display: grid; justify-items: center; }
.v4-cs .hs-cs-hero > * { margin: 0 !important; }
.v4-cs .hs-cs-hero .hs-eyebrow { background: var(--paper); box-shadow: var(--sh-1); color: var(--ink) !important; }
.v4-cs .hs-cs-hero h1 { margin-top: 22px !important; max-width: 14em; font-size: clamp(2.375rem, 1.1rem + 4.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; }
.v4-cs .hs-cs-hero .hs-cs-lede { margin-top: 22px !important; max-width: 38em; font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem) !important; line-height: 1.5; color: var(--body) !important; }

/* the facts: a glass strip of small cells on the field (real facts only, as the page states them) */
.v4-cs .hs-cs-facts {
	box-sizing: border-box; width: 100%; max-width: 1080px; margin: clamp(28px, 4vw, 44px) 0 0 !important; padding: 6px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), auto)); gap: 6px; text-align: left;
	background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
	border-radius: var(--r-l); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.v4-cs .hs-cs-facts > div { min-width: 0; padding: 14px 18px 15px; border: 0; border-radius: calc(var(--r-l) - 6px); background: rgba(255, 255, 255, .86); }
.v4-cs .hs-cs-facts dt { margin: 0 0 4px; font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--mute); }
.v4-cs .hs-cs-facts dd { margin: 0; font-size: .9688rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.v4-cs .hs-cs-facts a { color: var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: normal; }
.v4-cs .hs-cs-facts a:hover { color: var(--ink); }

/* the rig: the laptop frame, the phone over its lower right corner (never over the client's heading, logo or menu) */
.v4-cs .v4-cs-top .hs-cs-devices { box-sizing: border-box; width: min(940px, 88%); max-width: none; margin: clamp(40px, 6vw, 72px) auto 0 !important; padding: 0; }
.v4-cs .hs-cs-devices .hs-cs-stage { position: relative; padding: 0 0 17% 0; } /* the phone sits low: clear of the client's logo, menu, search bar and the logos on its product photos */
.v4-cs .hs-cs-devices .hs-cs-desk { width: 100%; }
.v4-cs .hs-cs-devices .hs-cs-stage > .hs-cs-phone { position: absolute; z-index: 2; right: -6%; bottom: 0; width: 21%; }
.v4-cs .hs-cs-devices figcaption { max-width: 44em; margin: clamp(26px, 4vw, 44px) auto 0; font-size: .875rem; line-height: 1.55; color: var(--mute); text-align: center; text-wrap: balance; }

/* ---------- frames (both the hero's and the steps') ---------- */
.v4-cs :is(.hs-cs-devices, .hs-cs-fig) .hs-shell { position: relative; box-sizing: border-box; padding: 0; border-radius: 18px; background: var(--paper); box-shadow: var(--sh-3); overflow: hidden; }
.v4-cs :is(.hs-cs-devices, .hs-cs-fig) .hs-shell::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 32, 51, .08); pointer-events: none; }
.v4-cs :is(.hs-cs-devices, .hs-cs-fig) .hs-core { border-radius: 0; box-shadow: none; background: var(--paper); overflow: hidden; }
.v4-cs :is(.hs-cs-devices, .hs-cs-fig) .hs-core img { display: block; width: 100%; height: auto; transform-origin: 50% 0; }
.v4-cs .hs-browser-bar { display: flex; align-items: center; gap: 6px; box-sizing: border-box; height: 40px; padding: 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.v4-cs .hs-browser-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #D5DBE5; }
.v4-cs .hs-browser-bar::after { content: ""; flex: 0 1 300px; height: 22px; margin: 0 auto; border-radius: var(--pill); background: var(--mist); }
/* phones */
.v4-cs :is(.hs-cs-devices .hs-cs-phone, .hs-cs-fig--phone .hs-shell) { padding: 7px; border-radius: 30px; box-shadow: var(--sh-2), 0 30px 60px -30px rgba(var(--glow), .7); }
.v4-cs :is(.hs-cs-devices .hs-cs-phone, .hs-cs-fig--phone .hs-shell) .hs-core { border-radius: 23px; }

/* ---------- what we built: an uneven bento, numbered ---------- */
.v4-cs .v4-cs-built > .alignwide { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.v4-cs .v4-cs-built > .alignwide > * { grid-column: 1 / -1; margin: 0 !important; }
.v4-cs .v4-cs-built > .alignwide > h2 { grid-column: 1 / span 7; }
.v4-cs .v4-cs-built > .alignwide > .hs-cs-features { margin-top: clamp(32px, 4.5vw, 56px) !important; }
.v4-cs .v4-cs-built > .alignwide > h2 + p { grid-column: 8 / span 5; margin: 0 0 .35em !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; }
.v4-cs .hs-cs-features { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin: clamp(32px, 4.5vw, 56px) 0 0 !important; padding: 0; list-style: none; }
.v4-cs .hs-cs-features > li {
	grid-column: span 12; position: relative; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; min-width: 0; margin: 0;
	padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-l); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.v4-cs .hs-cs-features > li:is(:nth-child(4n+1), :nth-child(4n+4)) { background: var(--cs-field); box-shadow: none; overflow: hidden; isolation: isolate; }
.v4-cs .hs-cs-features > li:is(:nth-child(4n+1), :nth-child(4n+4))::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 80% at 85% 10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
.v4-cs .hs-cs-features .hs-cs-n { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 10px; border-radius: 16px; background: var(--wash); color: var(--accent-deep); font: 800 1.0625rem/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.v4-cs .hs-cs-features > li:is(:nth-child(4n+1), :nth-child(4n+4)) .hs-cs-n { background: var(--paper); box-shadow: var(--sh-1); }
.v4-cs .hs-cs-features h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .55vw, 1.5rem); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.v4-cs .hs-cs-features p { margin: 0; max-width: 36em; font-size: 1rem; line-height: 1.6; color: var(--body); }
@media (min-width: 760px) {
	.v4-cs .hs-cs-features > li:is(:nth-child(4n+1), :nth-child(4n+4)) { grid-column: span 7; }
	.v4-cs .hs-cs-features > li:is(:nth-child(4n+2), :nth-child(4n+3)) { grid-column: span 5; }
	.v4-cs .hs-cs-features > li:last-child:nth-child(odd) { grid-column: span 12; }
}

/* ---------- how it works: each page on its own stage, words beside the real screens ---------- */
.v4-cs .v4-cs-how > .alignwide > h2 { margin-bottom: clamp(32px, 4.5vw, 56px) !important; }
.v4-cs .hs-cs-steps { display: grid; gap: var(--gap); }
.v4-cs .hs-cs-split {
	position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
	padding: var(--cs-pad); border-radius: var(--r-xl); background: var(--cs-field);
}
.v4-cs .hs-cs-split::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--cs-glow); }
.v4-cs .hs-cs-split:nth-child(even) { background: var(--mist); }
.v4-cs .hs-cs-split:nth-child(even)::before { background: radial-gradient(60% 70% at 22% 30%, #fff, rgba(255, 255, 255, 0) 70%); }
.v4-cs .hs-cs-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.v4-cs .hs-cs-split--flip > .hs-cs-split-text { order: 2; }
.v4-cs .hs-cs-split-text { display: grid; gap: 14px; justify-items: start; align-content: center; min-width: 0; }
.v4-cs .hs-cs-split-text > * { margin: 0 !important; }
.v4-cs .hs-cs-split-text .hs-cs-k {
	display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; width: fit-content; max-width: 100%; min-height: 32px; padding: 5px 14px 5px 12px;
	border-radius: var(--pill); background: var(--paper); box-shadow: var(--sh-1); color: var(--accent-deep);
	font: 700 .8125rem/1.3 var(--font); letter-spacing: -.005em;
}
.v4-cs .hs-cs-split-text .hs-cs-k::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }
.v4-cs .hs-cs-split-text h3 { margin-top: 4px !important; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.v4-cs .hs-cs-split-text p:not(.hs-cs-k) { max-width: 32em; color: var(--body); }
.v4-cs .hs-cs-split-fig { min-width: 0; }
.v4-cs .hs-cs-fig { margin: 0; min-width: 0; }
.v4-cs .hs-cs-fig figcaption { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--mute); }
.v4-cs .hs-cs-fig--phone { max-width: 300px; margin-inline: auto; }
.v4-cs .hs-cs-split-fig > .hs-cs-fig--phone { max-width: 280px; }
.v4-cs .hs-cs-fig--narrow { max-width: 400px; margin-inline: auto; }
.v4-cs .hs-cs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .36fr); gap: clamp(14px, 2vw, 24px); align-items: end; }
.v4-cs .hs-cs-duo > .hs-cs-fig--phone { max-width: none; margin: 0; }

/* ---------- the details that matter: words on the field, the list on a white card ---------- */
.v4-cs .v4-cs-details .wp-block-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; }
.v4-cs .v4-cs-details .hs-ticks { gap: 14px; margin: 0 !important; padding: clamp(22px, 2.6vw, 34px) !important; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh-2); }
.v4-cs .hs-ticks li { margin: 0; padding-left: 32px; line-height: 1.55; color: var(--body); }
.v4-cs .hs-ticks li strong { color: var(--ink); }
.v4-cs .hs-ticks li::before { left: 0; top: .17em; border: 0; transform: none; }

/* ---------- timeline: dates on a line of dots ---------- */
.v4-cs .hs-cs-timeline { display: grid; margin: 0 !important; padding: 0; list-style: none; }
.v4-cs .hs-cs-timeline li { position: relative; display: grid; grid-template-columns: minmax(8.5rem, .3fr) minmax(0, 1fr); gap: 4px 24px; padding: 0 0 26px 34px; border: 0; }
.v4-cs .hs-cs-timeline li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3.5px var(--mark); }
.v4-cs .hs-cs-timeline li::after { content: ""; position: absolute; left: 6px; top: calc(.42em + 20px); bottom: 2px; width: 2px; border-radius: 2px; background: var(--wash-2); }
.v4-cs .hs-cs-timeline li:last-child { padding-bottom: 0; }
.v4-cs .hs-cs-timeline li:last-child::after { display: none; }
.v4-cs .hs-cs-timeline :is(time, .hs-cs-when) { padding-top: .1em; font-family: var(--font); font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; color: var(--accent-deep); }
.v4-cs .hs-cs-timeline li > span:last-child { color: var(--body); }
.v4-cs .v4-cs-time .hs-cs-timeline + p { margin-top: 28px !important; padding-left: 34px; }

/* ---------- more of our work: the other case studies on a quiet field ---------- */
.v4-cs .v4-cs-more .hs-eyebrow { margin: 0 0 18px !important; background: var(--paper); box-shadow: var(--sh-1); }
.v4-cs .hs-cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: var(--gap); margin: clamp(28px, 4vw, 48px) 0 0 !important; padding: 0; list-style: none; }
.v4-cs .hs-cs-cards > li { margin: 0; min-width: 0; }
.v4-cs .hs-cs-card {
	position: relative; display: flex; flex-direction: column; box-sizing: border-box; height: 100%; padding: 8px 8px 26px;
	border-radius: var(--r-l); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
	transition: transform 320ms var(--e-soft), box-shadow 320ms var(--e-soft);
}
.v4-cs .hs-cs-card .hs-cs-thumb { position: relative; display: block; overflow: hidden; isolation: isolate; box-sizing: border-box; aspect-ratio: 16 / 10; padding: 6.5% 7% 0; border-radius: calc(var(--r-l) - 8px); background: var(--cs-field); }
.v4-cs .hs-cs-card .hs-cs-thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 70% at 80% 10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); }
/* the real screen in a small browser frame (the top bar is the picture's own transparent top border, painted white with three dots), standing on the field: its top, where the client's logo and menu are, always shows */
.v4-cs .hs-cs-card .hs-cs-thumb img {
	display: block; box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; object-position: top center;
	border-top: 22px solid transparent; border-radius: 12px 12px 0 0;
	background: var(--cs-dots), var(--paper); background-origin: border-box;
	box-shadow: var(--sh-3), 0 0 0 1px rgba(20, 32, 51, .07); transform-origin: 50% 100%;
}
.v4-cs .hs-cs-card .hs-cs-kind { margin: 20px 18px 6px; font-size: .875rem; font-weight: 600; line-height: 1.45; color: var(--mute); }
.v4-cs .hs-cs-card h3 { margin: 0 18px 8px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.2; letter-spacing: -.03em; }
.v4-cs .hs-cs-card h3 a { color: var(--ink); text-decoration: none; }
.v4-cs .hs-cs-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
@supports selector(:has(a)) {
.v4-cs .hs-cs-card h3 a:focus-visible { outline: none; }
.v4-cs .hs-cs-card:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
}
.v4-cs .hs-cs-card p { margin: 0 18px; color: var(--body); font-size: 1rem; line-height: 1.6; }
.v4-cs .hs-cs-card .hs-cs-more { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--accent-text); }
.v4-cs .hs-cs-card .hs-cs-more::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform 320ms var(--spring); }
@media (hover: hover) {
	.v4-cs .hs-cs-card:has(a:hover) { transform: translateY(-4px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
	.v4-cs .hs-cs-card:has(a:hover) .hs-cs-more::after { transform: translateX(3px); }
}
@media (min-width: 900px) {
	/* one card on its own: picture and words side by side */
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: clamp(20px, 3vw, 44px); padding: 8px; }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-thumb { grid-column: 1; grid-row: 1 / -1; }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-card > :not(.hs-cs-thumb) { grid-column: 2; margin-left: 0; margin-right: clamp(16px, 2.5vw, 36px); }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-kind { grid-row: 2; margin-top: 0; }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-card h3 { grid-row: 3; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-card > p:not(.hs-cs-kind, .hs-cs-more) { grid-row: 4; }
	.v4-cs .hs-cs-cards > li:only-child .hs-cs-more { grid-row: 5; padding-top: 22px; }
}
.v4-cs .v4-cs-more .hs-text-link { margin: clamp(22px, 3vw, 32px) 0 0 !important; }

/* ---------- notes: the site-wide look (v4.css); the section adds no space of its own ---------- */
.v4-cs .v4-cs-notes.v4-cs-sec { padding: 0 !important; }

/* ---------- /work/ (body .v4-wk): client projects as wide cards, then the example sites ---------- */
/* section heads: label and heading left, the line right, bottom-aligned */
.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > * { grid-column: 1 / -1; margin: 0 !important; }
.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > .hs-eyebrow { grid-column: 1 / span 7; margin-bottom: 18px !important; }
.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > h2 { grid-column: 1 / span 7; }
.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > h2 + p { grid-column: 8 / span 5; margin-bottom: .35em !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; }
.v4-wk .v4-cs-more:not(.v4-cs-field) .hs-eyebrow { background: var(--wash); box-shadow: none; }
.v4-wk .v4-cs-more > .alignwide:first-child > .hs-cs-cards { margin-top: clamp(32px, 4.5vw, 56px) !important; }

/* client projects: one wide card each, the real screen on its field beside the words, sides alternating */
.v4-wk .hs-cs-cards { grid-template-columns: minmax(0, 1fr); }
.v4-wk .hs-cs-card { padding: 10px 10px 28px; border-radius: var(--r-xl); }
.v4-wk .hs-cs-card .hs-cs-thumb { border-radius: calc(var(--r-xl) - 10px); }
.v4-wk .hs-cs-card .hs-cs-kind { margin: 22px 20px 8px; }
.v4-wk .hs-cs-card h3 { margin: 0 20px 10px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.035em; }
.v4-wk .hs-cs-card p { margin-inline: 20px; }
.v4-wk .hs-cs-card > p:not(.hs-cs-kind, .hs-cs-more) { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); }
@media (min-width: 900px) {
	.v4-wk .hs-cs-cards > li .hs-cs-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: clamp(28px, 4vw, 64px); padding: 10px; }
	.v4-wk .hs-cs-cards > li .hs-cs-thumb { grid-column: 1; grid-row: 1 / -1; }
	.v4-wk .hs-cs-cards > li .hs-cs-card > :not(.hs-cs-thumb) { grid-column: 2; margin-left: 0; margin-right: clamp(20px, 3vw, 48px); }
	.v4-wk .hs-cs-cards > li:nth-child(even) .hs-cs-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.v4-wk .hs-cs-cards > li:nth-child(even) .hs-cs-thumb { grid-column: 2; }
	.v4-wk .hs-cs-cards > li:nth-child(even) .hs-cs-card > :not(.hs-cs-thumb) { grid-column: 1; margin-left: clamp(20px, 3vw, 48px); margin-right: 0; }
	.v4-wk .hs-cs-cards > li .hs-cs-kind { grid-row: 2; margin-top: 0; }
	.v4-wk .hs-cs-cards > li .hs-cs-card h3 { grid-row: 3; }
	.v4-wk .hs-cs-cards > li .hs-cs-card > p:not(.hs-cs-kind, .hs-cs-more) { grid-row: 4; }
	.v4-wk .hs-cs-cards > li .hs-cs-more { grid-row: 5; padding-top: 24px; }
}

/* the example sites: a card each, the made-up business's screen in a small frame on a quiet field */
.v4-wk .v4-cs-examples > .alignwide + .alignwide { margin-top: clamp(32px, 4.5vw, 56px) !important; }
.v4-wk .v4-cs-examples .is-layout-grid { gap: var(--gap) !important; }
.v4-wk .v4-cs-examples .hs-card { display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; height: 100%; padding: 10px 10px 24px !important; border-radius: var(--r-l) !important; }
.v4-wk .v4-cs-examples .hs-card > * { margin-block: 0 !important; }
.v4-wk .v4-cs-examples .hs-card > :not(figure) { margin-inline: 16px !important; }
.v4-wk .v4-cs-examples .hs-card > figure.wp-block-image { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 8px !important; padding: 18px 18px 0; border-radius: calc(var(--r-l) - 10px); background: var(--mist); }
.v4-wk .v4-cs-examples .hs-card > figure.wp-block-image::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 80% at 85% 0%, #fff, rgba(255, 255, 255, 0) 70%); }
.v4-wk .v4-cs-examples .hs-card > figure.wp-block-image a { display: block; border-radius: 10px 10px 0 0; }
.v4-wk .v4-cs-examples .hs-card > figure.wp-block-image img {
	display: block; box-sizing: border-box; width: 100%; height: auto; border-top: 20px solid transparent; border-radius: 10px 10px 0 0 !important;
	background: radial-gradient(circle at 3.5px 3.5px, #D5DBE5 3px, transparent 3.5px) 9px 6.5px / 7px 7px no-repeat, radial-gradient(circle at 3.5px 3.5px, #D5DBE5 3px, transparent 3.5px) 21px 6.5px / 7px 7px no-repeat, radial-gradient(circle at 3.5px 3.5px, #D5DBE5 3px, transparent 3.5px) 33px 6.5px / 7px 7px no-repeat, var(--paper);
	background-origin: border-box; box-shadow: var(--sh-2), 0 0 0 1px rgba(20, 32, 51, .07); transform-origin: 50% 100%;
}
.v4-wk .v4-cs-examples .hs-card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.2; letter-spacing: -.03em; }
.v4-wk .v4-cs-examples .hs-card h3 a { color: var(--ink); text-decoration: none; }
.v4-wk .v4-cs-examples .hs-card h3 a:hover { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.v4-wk .v4-cs-examples .hs-card > p.has-muted-color { color: var(--body) !important; font-size: .9688rem; line-height: 1.6; }
.v4-wk .v4-cs-examples .hs-card > .hs-work-package { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; box-sizing: border-box; margin-top: auto !important; padding: 4px 12px; border-radius: var(--pill); background: var(--mist); color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.3; }
.v4-wk .v4-cs-examples .hs-card > .hs-work-trade { font-size: .9375rem; }
.v4-wk .v4-cs-examples .hs-card > .hs-work-trade a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.v4-wk .v4-cs-examples .hs-card > figure.wp-block-image img { transition: transform 700ms var(--e-out); }
	.v4-wk .v4-cs-examples .hs-card:hover > figure.wp-block-image img { transform: scale(1.03); }
}

/* "Why made-up businesses?": the quiet field, its heading a little larger than a card title */
.v4-wk .v4-cs-text .wp-block-column > h3 { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: pretty; }
@media (max-width: 899px) {
	.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > :is(.hs-eyebrow, h2, h2 + p) { grid-column: 1 / -1; }
	.v4-wk :is(.v4-cs-more, .v4-cs-examples) > .alignwide:first-child > h2 + p { margin-top: 16px !important; }
}

/* ---------- motion (Lively): visible at rest, once, transform and opacity only, off with reduced motion ---------- */
@keyframes v4-work-desk { from { opacity: .3; transform: translate3d(0, 48px, 0) scale(.955); } to { opacity: 1; transform: none; } }
@keyframes v4-work-phone { from { opacity: .3; transform: translate3d(26px, 60px, 0) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes v4-work-frame { from { opacity: .3; transform: translate3d(0, 34px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes v4-work-screen { from { transform: scale(1.06); } to { transform: none; } }
.v4-motion .v4-cs .hs-cs-devices .hs-cs-desk[data-v4].v4-in { animation: v4-work-desk 1100ms var(--e-out) both; animation-delay: 80ms; }
.v4-motion .v4-cs .hs-cs-devices .hs-cs-phone[data-v4].v4-in { animation: v4-work-phone 1000ms var(--spring) both; animation-delay: 420ms; }
.v4-motion .v4-cs .hs-cs-fig .hs-shell[data-v4].v4-in { animation: v4-work-frame 900ms var(--e-out) both; animation-delay: calc(var(--i, 0) * 160ms); }
.v4-motion .v4-cs .hs-cs-fig--phone .hs-shell[data-v4].v4-in { animation: v4-work-phone 1000ms var(--spring) both; animation-delay: calc(120ms + var(--i, 0) * 160ms); }
.v4-motion .v4-cs .hs-core img[data-v4="pic"].v4-in { animation: v4-work-screen 1500ms var(--e-out) both; animation-delay: calc(var(--i, 0) * 160ms); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.v4-cs .hs-cs-fig .hs-core img, .v4-cs .hs-cs-card .hs-cs-thumb img { transition: transform 700ms var(--e-out); }
	.v4-cs .hs-cs-fig:hover .hs-core img { transform: scale(1.02); }
	.v4-cs .hs-cs-card:has(a:hover) .hs-cs-thumb img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
	.v4-cs .hs-cs-card, .v4-cs .hs-cs-card .hs-cs-more::after { transition: none; }
	.v4-cs .hs-cs-card:has(a:hover) { transform: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1079px) {
	.v4-cs .v4-cs-top .hs-cs-devices { width: min(940px, 86%); }
}
@media (max-width: 899px) {
	.v4-cs .v4-cs-sec .wp-block-columns, .v4-cs .v4-cs-details .wp-block-columns { grid-template-columns: minmax(0, 1fr); }
	.v4-cs .v4-cs-built > .alignwide > :is(h2, h2 + p) { grid-column: 1 / -1; }
	.v4-cs .v4-cs-built > .alignwide > h2 + p { margin-top: 16px !important; }
	.v4-cs .hs-cs-split, .v4-cs .hs-cs-split--flip { grid-template-columns: minmax(0, 1fr); }
	.v4-cs .hs-cs-split--flip > .hs-cs-split-text { order: 0; }
}
@media (max-width: 600px) {
	.v4-cs .v4-cs-top { text-align: left; }
	.v4-cs .hs-cs-hero { justify-items: start; }
	.v4-cs .hs-cs-hero h1 { margin-top: 18px !important; }
	.v4-cs .hs-cs-hero .hs-cs-lede { margin-top: 18px !important; }
	/* the facts as rows on one card: each label above its value, hairlines between */
	.v4-cs .hs-cs-facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 18px; background: rgba(255, 255, 255, .86); }
	.v4-cs .hs-cs-facts > div { padding: 12px 0 13px; border-radius: 0; background: none; }
	.v4-cs .hs-cs-facts > div + div { border-top: 1px solid var(--line); }
	.v4-cs .hs-cs-facts dt { margin: 0 0 2px; }
	.v4-cs .hs-cs-facts dd { font-size: .9375rem; }
	.v4-cs .v4-cs-top .hs-cs-devices { width: 100%; margin-top: 32px !important; }
	/* the phone follows the laptop and overlaps only its last 34px (whatever the shot's height), well clear of the
	   client's logo, heading and menu along the top */
	.v4-cs .hs-cs-devices .hs-cs-stage { display: flow-root; padding: 0; }
	.v4-cs .hs-cs-devices .hs-cs-desk { width: 88%; }
	.v4-cs .hs-cs-devices .hs-cs-stage > .hs-cs-phone { position: relative; right: auto; bottom: auto; width: 28%; margin: -34px 0 0 auto; }
	.v4-cs .hs-cs-devices figcaption { text-align: left; margin-top: 22px; }
	.v4-cs .hs-browser-bar { height: 28px; padding: 0 10px; gap: 4px; }
	.v4-cs .hs-browser-bar i { width: 6px; height: 6px; }
	.v4-cs .hs-browser-bar::after { height: 14px; flex-basis: 160px; }
	.v4-cs :is(.hs-cs-devices, .hs-cs-fig) .hs-shell { border-radius: 14px; }
	.v4-cs :is(.hs-cs-devices .hs-cs-phone, .hs-cs-fig--phone .hs-shell) { padding: 4px; border-radius: 20px; }
	.v4-cs :is(.hs-cs-devices .hs-cs-phone, .hs-cs-fig--phone .hs-shell) .hs-core { border-radius: 16px; }
	.v4-cs .v4-cs-details .hs-ticks { padding: 18px 18px 20px !important; }
	.v4-cs .hs-ticks li { padding-left: 30px; }
	.v4-cs .hs-cs-timeline li { grid-template-columns: minmax(0, 1fr); padding-left: 30px; }
	.v4-cs .v4-cs-time .hs-cs-timeline + p { padding-left: 30px; }
	.v4-cs .hs-cs-card .hs-cs-kind { margin-inline: 14px; }
	.v4-cs .hs-cs-card :is(h3, p) { margin-inline: 14px; }
}
@media (max-width: 480px) {
	.v4-cs .hs-cs-duo { grid-template-columns: minmax(0, 1fr); }
	.v4-cs .hs-cs-duo > .hs-cs-fig--phone { width: 62%; max-width: 15rem; margin-inline: auto; }
	.v4-cs .hs-cs-split-fig > .hs-cs-fig--phone { max-width: 15.5rem; }
}
