/*
 * The world: one living field behind the whole page, paper sheets over it.
 *
 * A zone is a stretch where the field shows in full and carries a short
 * statement. A sheet is flat paper with the reading matter on it. world.js
 * draws the field and gives each sheet stepped edges and holes; without it a
 * sheet is a plain coloured block on a plain coloured page.
 */

.wp-site-blocks > * {
	margin-block-start: 0;
}

body:has(.klauw-world) {
	background-color: var(--wp--preset--color--coral);
}

.klauw-world {
	--klauw-field-low: var(--wp--preset--color--coral);
	--klauw-field-mid: var(--wp--preset--color--blush);
	--klauw-field-high: var(--wp--preset--color--sand);
	--klauw-claw-tip: var(--wp--preset--color--ember);
	--klauw-claw: var(--wp--preset--color--ink);
	--klauw-claw-trail: var(--wp--preset--color--cream);

	position: relative;
	/* Vertical swipes still scroll the page; horizontal ones scratch. */
	touch-action: pan-y;
}

.klauw-world__field {
	position: fixed;
	inset: 0 auto auto 0;
	z-index: 0;
	pointer-events: none;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.klauw-world > :is(.klauw-zone, .klauw-sheet) {
	position: relative;
	z-index: 1;
	margin-block-start: 0;
}

.klauw-world__toggle {
	position: fixed;
	inset: auto var(--k-edge) 1rem auto;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	min-height: 2.25rem;
	padding: 0 0.85rem;
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	letter-spacing: var(--k-label-spacing);
	text-transform: uppercase;
}

/* Pause glyph while playing, play glyph while paused. */
.klauw-world__toggle::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	inline-size: 0.7em;
	block-size: 0.8em;
	border-inline: 0.24em solid currentColor;
}

/* On a phone the button is only its sign, so it covers less of what is read; the words stay for screen readers. */
@media (max-width: 520px) {
	.klauw-world__toggle {
		justify-content: center;
		inline-size: 2.5rem;
		min-height: 2.5rem;
		padding: 0;
	}

	.klauw-world__toggle-label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

:root[data-klauw-motion="off"] .klauw-world__toggle::before {
	border: 0;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* The dock lives in nav.css. */

/* Zones: the field in full, with ink set straight onto it. */
.klauw-zone {
	box-sizing: border-box;
	padding: clamp(5rem, 15vw, 11rem) var(--k-edge);
	color: var(--wp--preset--color--ink);
}

.klauw-zone > * {
	max-width: 80rem;
	margin-block: 0;
}

.klauw-zone > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.klauw-statement {
	max-width: 13em;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 6.4vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.94;
	text-wrap: balance;
}

/* The title of a plain page stands on the field, clear of the dock. */
.klauw-zone--title {
	padding-block: clamp(8rem, 18vw, 12rem) clamp(4rem, 10vw, 7rem);
}

.klauw-zone--hero {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	min-height: 92svh;
	padding-block: clamp(1.25rem, 4.5svh, 4.5rem) clamp(4rem, 14svh, 9rem);
}

.klauw-zone--hero > * + * {
	margin-block-start: 0;
}

.klauw-zone--hero p {
	max-width: 34em;
}

/* The first line of the hero title says what and where, in the label type; the big words follow. */
.klauw-hero__kicker {
	display: block;
	margin-block-end: 0.9rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 400;
	letter-spacing: var(--k-label-spacing);
	line-height: 1.4;
	text-transform: uppercase;
	/* A label wraps between words; the big title below it may hyphenate on a phone, this line not. */
	-webkit-hyphens: manual;
	hyphens: manual;
}

/* On a narrow screen the title breaks where the words allow, not after the first line of the wide layout. */
@media (max-width: 40em) {
	.klauw-zone--hero h1 br {
		display: none;
	}
}

/*
 * Sheets. Each carries its own colour roles. The extra room at top and bottom
 * is where world.js cuts the stepped edge.
 */
.klauw-sheet {
	--k-paper: var(--reg-boter-paper);
	--k-ink: var(--reg-boter-ink);
	--k-accent: var(--reg-boter-accent);
	--k-card: var(--reg-boter-card);
	--k-rule: var(--reg-boter-rule);
	--k-note: var(--reg-boter-note);
	--k-muted: var(--reg-boter-muted);

	isolation: isolate;
	box-sizing: border-box;
	padding: calc(var(--wp--preset--spacing--section) + 6rem) var(--k-edge);
	overflow: hidden;
	overflow: clip;
	background-color: var(--k-paper);
	color: var(--k-ink);
}

.klauw-sheet--ink {
	--k-paper: var(--reg-ink-paper);
	--k-ink: var(--reg-ink-ink);
	--k-accent: var(--reg-ink-accent);
	--k-card: var(--reg-ink-card);
	--k-rule: var(--reg-ink-rule);
	--k-note: var(--reg-ink-note);
	--k-muted: var(--reg-ink-muted);
}

.klauw-sheet--ash {
	--k-paper: var(--reg-ash-paper);
	--k-ink: var(--reg-ash-ink);
	--k-accent: var(--reg-ash-accent);
	--k-card: var(--reg-ash-card);
	--k-rule: var(--reg-ash-rule);
	--k-note: var(--reg-ash-note);
	--k-muted: var(--reg-ash-muted);
}

.klauw-sheet--mint {
	--k-paper: var(--reg-mint-paper);
	--k-ink: var(--reg-mint-ink);
	--k-accent: var(--reg-mint-accent);
	--k-card: var(--reg-mint-card);
	--k-rule: var(--reg-mint-rule);
	--k-note: var(--reg-mint-note);
	--k-muted: var(--reg-mint-muted);
}

html.has-world .klauw-sheet {
	background-color: transparent;
}

/* Two sheets that touch overlap by a pixel, so the field cannot show as a hairline in the seam. */
html.has-world .klauw-sheet + .klauw-sheet {
	margin-block-start: -1px;
}

.klauw-sheet > .klauw-sheet__paper {
	position: absolute;
	inset: 0 auto auto 0;
	z-index: -1;
	max-width: none;
	margin: 0;
	pointer-events: none;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.klauw-sheet > * {
	max-width: 84rem;
	margin-block: 0;
}

.klauw-sheet > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.klauw-sheet .is-style-section + h2 {
	margin-block-start: 1rem;
}

.klauw-sheet h2 {
	max-width: 12em;
	font-size: clamp(2.5rem, 6.4vw, 5.75rem);
	letter-spacing: -0.04em;
	line-height: 0.93;
}

.klauw-sheet > p {
	max-width: 34em;
}

/* Running text on a sheet: a plain page, such as the privacy statement. */
.klauw-prose {
	max-width: 40em;
}

.klauw-prose > * {
	margin-block: 0;
}

.klauw-prose > * + * {
	margin-block-start: 1.1em;
}

.klauw-sheet .klauw-prose :is(h2, h3) {
	max-width: none;
	margin-block-start: 2.2em;
	font-size: var(--wp--preset--font-size--row);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.klauw-prose a {
	text-decoration-color: var(--k-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* The ticker at the head of a sheet runs from edge to edge, on the paper itself. */
.klauw-sheet > .wp-block-list.is-style-ticker {
	max-width: none;
	margin-inline: calc(var(--k-edge) * -1);
	margin-block-end: clamp(3rem, 7vw, 6rem);
	border-block: 1px solid var(--k-rule);
	background: none;
}

/*
 * Crafts: three things from one hand. The list is always the content; the
 * drawing next to it (klauw-crafts--schets) comes from crafts.js and is
 * decoration.
 */
.klauw-sheet > .klauw-crafts {
	margin-block-start: clamp(2.5rem, 6vw, 5rem);
}

.klauw-crafts > *,
.klauw-crafts__list > .klauw-craft,
.klauw-craft > *,
.klauw-craft__more > * {
	margin: 0;
}

.klauw-craft > h3 {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.klauw-craft__more > p {
	max-width: 30em;
	margin-block-start: 0.7rem;
}

.klauw-craft__more > .is-style-tags {
	margin-block-start: 0.9rem;
}

.klauw-crafts__figure canvas {
	display: block;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/*
 * The drawing on the left follows the craft being read, the crafts on the
 * right: one small site goes from outline to built to found.
 */
.klauw-crafts--schets .klauw-craft + .klauw-craft {
	margin-block-start: clamp(2.25rem, 5vw, 4.5rem);
}

.klauw-crafts--schets .klauw-craft {
	padding-inline-start: 1.1rem;
	border-inline-start: 3px solid transparent;
}

.klauw-crafts--schets .klauw-craft.is-active {
	border-inline-start-color: var(--k-ink);
}

.klauw-crafts--schets .klauw-craft > h3 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	letter-spacing: -0.04em;
}

.klauw-crafts--schets .wp-block-klauw-glyph {
	display: none;
}

.klauw-crafts--schets .klauw-crafts__figure canvas {
	inline-size: min(100%, 32rem);
	block-size: auto;
}

@media (min-width: 900px) {
	.klauw-crafts--schets {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: clamp(2rem, 5vw, 5rem);
	}

	.klauw-crafts--schets > .klauw-crafts__figure {
		position: sticky;
		inset-block-start: 6.5rem;
		order: -1;
	}
}

@media (max-width: 899.98px) {
	/* On a narrow screen the drawing stays in view above the craft that is being read. */
	.klauw-crafts--schets > .klauw-crafts__figure {
		position: sticky;
		inset-block-start: 5.5rem;
		z-index: 1;
		margin-block-end: 1.5rem;
		padding-block: 0.5rem;
		background: var(--k-paper);
	}

	.klauw-crafts--schets {
		display: flex;
		flex-direction: column-reverse;
	}
}

/*
 * Clients. Without clients.js: a grid of blocks. With it: a roll of names and
 * one stage; the stages lie on top of each other and only the active one shows.
 * A hidden stage is clear, never removed, so its text stays in the document.
 */
.klauw-clients {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 3rem clamp(1.5rem, 3vw, 3rem);
}

.klauw-sheet > .klauw-clients {
	margin-block-start: clamp(2.5rem, 6vw, 5rem);
}

.klauw-clients > .klauw-client {
	min-width: 0;
	margin: 0;
}

.klauw-client > * {
	margin-block: 0;
}

.klauw-client > h3 {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.klauw-client > .klauw-client__tags {
	margin-block-start: 0.5rem;
	color: var(--k-muted);
}

.klauw-client > .klauw-client__stage {
	margin-block-start: 1.25rem;
}

.klauw-client__stage > * {
	margin-block: 0;
}

.klauw-client__stage > * + * {
	margin-block-start: 1.1rem;
}

.klauw-client__shot {
	position: relative;
	margin-inline: 0;
}

.klauw-client__shot img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center top;
}

.klauw-client__pixels {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.klauw-client__pixels[hidden] {
	display: none;
}

/* A client whose site is still being built: the mark on a flat panel. */
.klauw-client__panel {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 1.25rem;
	aspect-ratio: 16 / 10;
	background: var(--k-card);

	--klauw-logo-size: clamp(3.5rem, 7vw, 6rem);
}

.klauw-client__panel > * {
	margin: 0;
}

.klauw-client__panel .wp-block-klauw-logo rect {
	animation: none;
}

.klauw-client__stage > p:not(.is-style-label) {
	max-width: 34em;
	color: var(--k-ink);
}

.klauw-client__stage > .is-style-label {
	color: var(--k-muted);
}

.klauw-client__name {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: inherit;
	text-align: start;
}

.klauw-clients.is-live .klauw-client > h3 {
	color: var(--k-muted);
	transition: color 0.12s steps(2, end);
}

.klauw-clients.is-live .klauw-client.is-active > h3 {
	color: var(--k-ink);
}

/* A block from the grid marks the client on stage. */
.klauw-clients.is-live .klauw-client.is-active .klauw-client__name::before {
	content: "";
	flex: none;
	inline-size: 0.3em;
	block-size: 0.3em;
	background: var(--k-accent);
}

/* Narrow screens: the active client opens under its own name. */
.klauw-clients.is-live {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.klauw-clients.is-live > .klauw-client {
	padding-block: 0.8rem;
}

.klauw-clients.is-live .klauw-client:not(.is-active) > .klauw-client__stage {
	max-height: 0;
	margin-block-start: 0;
	overflow: hidden;
	opacity: 0;
}

@media (min-width: 900px) {
	.klauw-clients.is-live {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		column-gap: clamp(2rem, 5vw, 5rem);
	}

	/* The client's own box steps aside, so its name and its stage can sit in different columns. */
	.klauw-clients.is-live > .klauw-client {
		display: contents;
	}

	.klauw-clients.is-live .klauw-client > :is(h3, .klauw-client__tags) {
		grid-column: 1;
	}

	.klauw-clients.is-live .klauw-client > h3 {
		padding-block-start: 0.9rem;
	}

	.klauw-clients.is-live .klauw-client > .klauw-client__tags {
		padding-block-end: 0.9rem;
	}

	.klauw-clients.is-live .klauw-client > .klauw-client__stage {
		position: sticky;
		inset-block-start: 6rem;
		grid-column: 2;
		grid-row: 1 / span 12;
		max-height: none;
		margin-block-start: 0.9rem;
		overflow: visible;
		pointer-events: none;
	}

	.klauw-clients.is-live .klauw-client.is-active > .klauw-client__stage {
		pointer-events: auto;
	}
}

/*
 * The stack. A list of services, each with the colour of its plate; stack.js
 * draws the plates next to it. Without it the list simply fills the width.
 */
.klauw-stack {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: clamp(2rem, 5vw, 5rem);
}

.klauw-sheet > .klauw-stack {
	margin-block-start: clamp(2.5rem, 6vw, 5rem);
}

.klauw-stack > * {
	margin: 0;
}

.klauw-stack:not(.is-live) > .klauw-stack__figure {
	display: none;
}

.klauw-stack__figure canvas {
	display: block;
	inline-size: min(100%, 30rem);
	block-size: auto;
	margin-inline: auto;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.klauw-stack__figure canvas.is-on-plate {
	cursor: pointer;
}

.klauw-layer--huisstijl {
	--klauw-layer: var(--wp--preset--color--coral);
	--klauw-layer-ink: var(--wp--preset--color--ink);
}

.klauw-layer--webdesign {
	--klauw-layer: var(--wp--preset--color--ember);
	--klauw-layer-ink: var(--wp--preset--color--cream);
}

.klauw-layer--wordpress {
	--klauw-layer: var(--wp--preset--color--ink);
	--klauw-layer-ink: var(--wp--preset--color--cream);
}

.klauw-layer--e-commerce {
	--klauw-layer: var(--reg-ash-note);
	--klauw-layer-ink: var(--wp--preset--color--cream);
}

.klauw-layer--seo-geo {
	--klauw-layer: var(--wp--preset--color--jade);
	--klauw-layer-ink: var(--wp--preset--color--ink);
}

.klauw-layer--data-tracking {
	--klauw-layer: var(--wp--preset--color--cream);
	--klauw-layer-ink: var(--wp--preset--color--ink);
}

.klauw-stack__list > .klauw-layer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1.1rem;
	margin: 0;
	padding: 1rem 0 1rem 1.1rem;
	border-inline-start: 3px solid transparent;
}

.klauw-stack__list > .klauw-layer.is-active {
	border-inline-start-color: var(--k-ink);
}

.klauw-layer > * {
	grid-column: 2;
	margin-block: 0;
}

/* The key: the service's glyph on the colour of its plate. */
.klauw-layer > .wp-block-klauw-glyph {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: start;
	box-sizing: border-box;
	padding: 0.55rem;
	background: var(--klauw-layer);
	color: var(--klauw-layer-ink);

	--klauw-glyph-size: 3rem;
}

.klauw-layer > h3 {
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.klauw-layer > h3 a {
	text-decoration: underline;
	text-decoration-color: var(--k-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.klauw-layer > h3 a:is(:hover, :focus-visible) {
	text-decoration-thickness: 4px;
}

.klauw-layer > p {
	max-width: 32em;
	margin-block-start: 0.4rem;
}

@media (min-width: 900px) {
	.klauw-stack.is-live {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.klauw-stack.is-live > .klauw-stack__figure {
		position: sticky;
		inset-block-start: 5.5rem;
	}
}

/* Who: the portrait sharpens from coarse blocks; four lines count down from ten to nil. */
.klauw-who {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
}

.klauw-who > * {
	margin: 0;
}

.klauw-who > .wp-block-image {
	position: relative;

	--step: clamp(10px, 1.2vw, 16px);

	clip-path: polygon(
		calc(var(--step) * 2) 0, calc(100% - var(--step) * 2) 0, calc(100% - var(--step) * 2) var(--step), calc(100% - var(--step)) var(--step), calc(100% - var(--step)) calc(var(--step) * 2), 100% calc(var(--step) * 2),
		100% calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step) * 2) calc(100% - var(--step)), calc(100% - var(--step) * 2) 100%,
		calc(var(--step) * 2) 100%, calc(var(--step) * 2) calc(100% - var(--step)), var(--step) calc(100% - var(--step)), var(--step) calc(100% - var(--step) * 2), 0 calc(100% - var(--step) * 2),
		0 calc(var(--step) * 2), var(--step) calc(var(--step) * 2), var(--step) var(--step), calc(var(--step) * 2) var(--step)
	);
}

.klauw-who > .wp-block-image img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.klauw-who__text > * {
	margin-block: 0;
}

.klauw-who__text > * + * {
	margin-block-start: 1.5rem;
}

.klauw-who__text > h2 {
	margin-block-start: 1rem;
}

.klauw-who__text > p {
	max-width: 34em;
}

.wp-block-list.klauw-count {
	margin-block-start: clamp(1.75rem, 3.5vw, 2.75rem);
	padding: 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.3rem, 2.3vw, 1.9rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.klauw-count > li + li {
	margin-block-start: 0.55em;
}

/* The accent is allowed on type this large; on running text it never is. */
.klauw-count strong {
	color: var(--k-accent);
	font-weight: 800;
}

.klauw-who__text > .is-style-tags {
	margin-block-start: 2rem;
}

/* Questions: the intro stays in view while the answers scroll. */
.klauw-ask {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(2rem, 6vw, 6rem);
}

.klauw-ask > * {
	margin: 0;
}

.klauw-ask__intro {
	position: sticky;
	inset-block-start: 6rem;
}

.klauw-ask__intro > * {
	margin-block: 0;
}

.klauw-ask__intro > * + * {
	margin-block-start: 1.25rem;
}

.klauw-ask__intro > p:not(.is-style-section) {
	max-width: 26em;
}

.klauw-ask__list > .wp-block-details:last-child {
	border-block-end: 1px solid var(--k-rule);
}

/* The close: one calm plane, the three routes written large, the particulars under a line. */
.klauw-sheet--last {
	padding-block-end: 1.75rem;
}

.klauw-sheet--last > h2 {
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.9;
}

.klauw-routes {
	margin-block-start: clamp(2rem, 5vw, 4rem);
}

.klauw-routes > p {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 4.4vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.klauw-routes a {
	text-decoration: none;
}

.klauw-sheet > .klauw-routes__form {
	margin-block-start: clamp(1.5rem, 3vw, 2.25rem);
	color: var(--k-note);
}

.klauw-routes__form a {
	color: var(--k-ink);
	text-decoration-color: var(--k-accent);
	text-underline-offset: 0.22em;
}

/* On the contact page the close is only its particulars, so it needs less room above them. */
.klauw-sheet--last > .klauw-base:first-of-type {
	margin-block-start: 0;
}

.klauw-routes a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-decoration-color: var(--k-accent);
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.12em;
}

.klauw-sheet > .klauw-base {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	max-width: none;
	margin-block-start: clamp(4rem, 10vw, 8rem);
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--k-rule);

	--klauw-logo-size: 2rem;
}

.klauw-base > * {
	margin: 0;
}

.klauw-base .wp-block-klauw-logo {
	flex: none;
}

.klauw-base .wp-block-klauw-logo rect {
	animation: none;
}

/* The pages of the site, on a line of their own at the far end. */
.klauw-base > .klauw-base__pages {
	margin-inline-start: auto;
	text-align: end;
}

.klauw-base a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

/* The layer of the stack that is the page being read. */
.klauw-stack__list > .klauw-layer.is-current > p {
	color: var(--k-muted);
}

@media (max-width: 700px) {
	.klauw-sheet > .klauw-base {
		flex-wrap: wrap;
	}

	.klauw-base > .klauw-base__pages {
		flex-basis: 100%;
		margin-inline-start: 0;
		text-align: start;
	}
}

/*
 * Arrival. The hero steps in on load; the rest steps in as it scrolls into
 * view. The big lines come up word by word instead: see titles.js.
 */
@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .klauw-zone--hero :is(h1, p, .wp-block-buttons) {
		animation: klauw-world-rise 0.45s steps(5, end) backwards;
		animation-delay: calc(var(--klauw-order, 3) * 0.11s);
	}

	.klauw-zone--hero h1 {
		--klauw-order: 2;
	}

	.klauw-zone--hero .wp-block-buttons {
		--klauw-order: 6;
	}

	.klauw-zone--hero .is-style-label {
		--klauw-order: 8;
	}

	@supports (animation-timeline: view()) {
		body:not(.editor-styles-wrapper) .klauw-count > li {
			animation: klauw-world-fade steps(5, end) both;
			animation-timeline: view();
			animation-range: entry 5% entry 70%;
		}

		body:not(.editor-styles-wrapper) .klauw-count > li:nth-child(2) {
			animation-range: entry 25% entry 90%;
		}

		body:not(.editor-styles-wrapper) .klauw-count > li:nth-child(3) {
			animation-range: entry 45% entry 110%;
		}

		body:not(.editor-styles-wrapper) .klauw-count > li:nth-child(4) {
			animation-range: entry 65% entry 130%;
		}
	}
}

/* A faint start, not none: text at zero opacity does not count as shown, so a phone would seem to wait for the scripts. */
@keyframes klauw-world-rise {
	from {
		opacity: 0.08;
		transform: translateY(1.25rem);
	}
}

@keyframes klauw-world-fade {
	from {
		opacity: 0.08;
	}
}

@media (max-width: 900px) {
	.klauw-who,
	.klauw-ask {
		grid-template-columns: minmax(0, 1fr);
	}

	.klauw-who > .wp-block-image {
		max-width: 26rem;
	}

	.klauw-ask__intro {
		position: static;
	}
}

@media (prefers-reduced-motion: reduce) {
	.klauw-clients.is-live .klauw-client > h3,
	.klauw-craft > h3,
	.klauw-craft__more {
		transition: none;
	}
}
