/* ==========================================================================
   WebKraft Studios 2.0
   1. Tokens          6. Stickers         11. Case studies     16. Posts
   2. Base            7. Scene            12. Projects page    17. Forms
   3. Layout          8. Hero slider      13. Timeline         18. Footer
   4. Buttons         9. Sections         14. Case study page  19. Motion
   5. Header          10. Frames          15. Bands            20. Small screens
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--sunrise: #f5874b;
	--coral: #e66455;
	--plum: #8b3467;
	--purple: #582051;
	--violet: #2b1535;
	--cream: #fff6e0;

	--bg: #fffaf2;
	--bg-alt: #fff1e3;
	--surface: #ffffff;
	--surface-2: #fff7ee;
	--text: #22132a;
	--muted: #6a5870;
	--line: rgba(43, 21, 53, 0.12);
	--link: #b8423a;
	--link-hover: #8b3467;
	--header-bg: rgba(255, 250, 242, 0.86);
	--shadow: 0 1px 2px rgba(43, 21, 53, 0.06), 0 12px 32px -12px rgba(43, 21, 53, 0.22);
	--shadow-lg: 0 2px 6px rgba(43, 21, 53, 0.08), 0 40px 80px -28px rgba(43, 21, 53, 0.4);
	--brand: linear-gradient(100deg, #f5874b 0%, #e66455 32%, #8b3467 70%, #582051 100%);
	--brand-deep: linear-gradient(100deg, #c8473a 0%, #a83a5a 45%, #6b2560 100%);
	--sky: linear-gradient(172deg, #ffffff 35%, #fff6e0 72%, #f9df95 84%, #f5874b 95%, #e66455 100%);

	--font: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 18px;
	--radius-sm: 10px;
	--header-h: 84px;
	--wrap: 1200px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #160c1d;
		--bg-alt: #1e1127;
		--surface: #261632;
		--surface-2: #2d1b3a;
		--text: #f8edf3;
		--muted: #c3aec8;
		--line: rgba(255, 255, 255, 0.11);
		--link: #ff9d82;
		--link-hover: #ffc1a8;
		--header-bg: rgba(22, 12, 29, 0.84);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
		--shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 40px 80px -28px rgba(0, 0, 0, 0.8);
		--sky: linear-gradient(180deg, #0e0716 0%, #1d0f29 45%, #3f1a45 78%, #6b2a55 92%, #a8434f 100%);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #160c1d;
	--bg-alt: #1e1127;
	--surface: #261632;
	--surface-2: #2d1b3a;
	--text: #f8edf3;
	--muted: #c3aec8;
	--line: rgba(255, 255, 255, 0.11);
	--link: #ff9d82;
	--link-hover: #ffc1a8;
	--header-bg: rgba(22, 12, 29, 0.84);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.35), 0 40px 80px -28px rgba(0, 0, 0, 0.8);
	--sky: linear-gradient(180deg, #0e0716 0%, #1d0f29 45%, #3f1a45 78%, #6b2a55 92%, #a8434f 100%);
	color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
}
img,
svg,
video {
	max-width: 100%;
	height: auto;
}
img {
	display: block;
}
a {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover {
	color: var(--link-hover);
}
h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.12;
	letter-spacing: -0.025em;
	font-weight: 800;
	color: var(--text);
}
p {
	margin: 0 0 1em;
}
button {
	font: inherit;
	color: inherit;
}
:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 3px;
	border-radius: 6px;
}
::selection {
	background: var(--coral);
	color: #fff;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 0.75em 1.2em;
	background: var(--violet);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	transform: translateY(-200%);
	transition: transform 0.2s ease;
}
.skip-link:focus {
	transform: none;
	color: #fff;
}
.site-main:focus {
	outline: none;
}
.icon {
	flex: none;
	vertical-align: -0.125em;
}

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}
.wrap--medium {
	width: min(100% - 2.5rem, 1000px);
}
.wrap--narrow {
	width: min(100% - 2.5rem, 760px);
}
.section {
	position: relative;
	padding: clamp(4rem, 8vw, 7rem) 0;
	overflow-x: clip; /* peeled badges and stickers can poke past the screen edge on phones */
}
.section--work,
.section--blog,
.section--wall {
	background: var(--bg-alt);
}
.section-head {
	max-width: 46rem;
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}
.section-title {
	font-size: clamp(2rem, 4.2vw, 3.1rem);
}
.section-intro {
	color: var(--muted);
	font-size: 1.125rem;
}
.section-intro p:last-child {
	margin-bottom: 0;
}
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 0.9rem;
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--link);
}
.kicker::before {
	content: "";
	width: 1.8em;
	height: 2px;
	border-radius: 2px;
	background: var(--brand);
}
.kicker a {
	color: inherit;
	text-decoration: none;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}
.tags li,
.tags a {
	padding: 0.28em 0.8em;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent, var(--coral)) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent, var(--coral)) 30%, transparent);
	color: var(--text);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 700;
	text-decoration: none;
}
.text-link .icon {
	transition: transform 0.25s var(--ease);
}
.text-link:hover .icon {
	transform: translateX(3px);
}
.empty {
	padding: 3rem;
	text-align: center;
	color: var(--muted);
}

/* 4. Buttons --------------------------------------------------------------- */
.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}
.button-row--center {
	justify-content: center;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.button,
.wpcf7-submit,
.mc4wp-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.8em 1.45em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.button .icon {
	transition: transform 0.25s var(--ease);
}
.button:hover .icon {
	transform: translateX(3px);
}
.button--primary,
.wpcf7-submit,
.mc4wp-form input[type="submit"] {
	background: var(--brand-deep);
	background-size: 140% 100%;
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(168, 58, 90, 0.75);
}
.button--primary:hover,
.wpcf7-submit:hover,
.mc4wp-form input[type="submit"]:hover {
	color: #fff;
	transform: translateY(-2px);
	background-position: 100% 0;
	box-shadow: 0 16px 30px -12px rgba(168, 58, 90, 0.85);
}
.button--ghost {
	background: color-mix(in srgb, var(--surface) 55%, transparent);
	border-color: currentColor;
	color: var(--text);
	backdrop-filter: blur(6px);
}
.button--ghost:hover {
	color: var(--text);
	transform: translateY(-2px);
	background: var(--surface);
}
.button--light {
	background: #fff;
	color: var(--violet);
}
.button--light:hover {
	color: var(--violet);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.round-button,
.icon-button {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	font-size: 1.25rem;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.round-button:hover,
.icon-button:hover {
	transform: translateY(-2px);
}
.icon-button {
	width: 44px;
	height: 44px;
	box-shadow: none;
	background: transparent;
}
.icon-button:hover {
	background: var(--surface);
}

/* 5. Header ---------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: min(100% - 2.5rem, 1360px);
	height: var(--header-h);
	margin-inline: auto;
	transition: height 0.8s ease-in-out;
}
.site-header.is-scrolled {
	background: var(--header-bg);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(43, 21, 53, 0.35);
}
.site-header.is-scrolled .site-header__inner {
	height: 64px;
}
/* The logo is pinned near the top of the header and never moves up or down, as
   on the original site: the full logo sits centred in the tall header and the
   WK lettermark ends up centred in the slim one. */
.site-logo {
	display: block;
	flex: none;
	align-self: flex-start;
	width: 264px;
	margin-top: 10px;
	color: var(--text);
}
.site-logo svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.site-logo .fill_black {
	fill: var(--text);
	stroke: var(--text);
}
/* Folding back out takes 1.2 seconds. */
.site-logo [class*="fill_"] {
	transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out, fill 1.2s ease-in-out, stroke 1.2s ease-in-out;
}
.site-logo .path_yellow,
.site-logo .path_orange,
.site-logo .path_plum,
.site-logo .path_purple,
.site-logo .path_violet {
	opacity: 0;
}
/* On hover an outline traces over the letters, one after another, as a nod to
   the old site's drawing logo. The letters themselves stay put. */
.site-logo:hover [class*="fill_"] {
	stroke-dasharray: 900;
	stroke-width: 3;
	animation: wk-trace 1.3s ease-out both;
}
.site-logo:hover .fill_k { animation-delay: 0.06s; }
.site-logo:hover .fill_r { animation-delay: 0.12s; }
.site-logo:hover .fill_a { animation-delay: 0.18s; }
.site-logo:hover .fill_f { animation-delay: 0.24s; }
.site-logo:hover .fill_t { animation-delay: 0.3s; }
@keyframes wk-trace {
	0% { stroke-dashoffset: 900; stroke-opacity: 1; }
	75% { stroke-dashoffset: 0; stroke-opacity: 1; }
	100% { stroke-dashoffset: 0; stroke-opacity: 0; }
}
/* The two darkest letters lift a little after dark so they stay readable. */
:root[data-theme="dark"] .site-logo .fill_f {
	fill: #a8467e;
	stroke: #a8467e;
}
:root[data-theme="dark"] .site-logo .fill_t {
	fill: #c25b8f;
	stroke: #c25b8f;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-logo .fill_f {
		fill: #a8467e;
		stroke: #a8467e;
	}
	:root:not([data-theme="light"]) .site-logo .fill_t {
		fill: #c25b8f;
		stroke: #c25b8f;
	}
}
/* Scrolled: the original fold. Over two seconds the K slides left until it
   just overlaps the W and takes the text colour, while the other letters drift
   left and fade, each a little further than the one before, and STUDIOS lifts away. */
.site-header.is-scrolled .site-logo [class*="fill_"] {
	transition: opacity 2s ease-in-out, transform 2s ease-in-out, fill 2s ease-in-out, stroke 2s ease-in-out;
}
.site-header.is-scrolled .site-logo .fill_studios {
	transition-duration: 1s;
}
.site-header.is-scrolled .site-logo .fill_e { opacity: 0; transform: translateX(-120px); }
.site-header.is-scrolled .site-logo .fill_b { opacity: 0; transform: translateX(-150px); }
.site-header.is-scrolled .site-logo .fill_r { opacity: 0; transform: translateX(-250px); }
.site-header.is-scrolled .site-logo .fill_a { opacity: 0; transform: translateX(-300px); }
.site-header.is-scrolled .site-logo .fill_f { opacity: 0; transform: translateX(-350px); }
.site-header.is-scrolled .site-logo .fill_t { opacity: 0; transform: translateX(-400px); }
.site-header.is-scrolled .site-logo .fill_studios { opacity: 0; transform: translate(-200px, -80px); }
.site-header.is-scrolled .site-logo .fill_k {
	transform: translateX(-233px);
	fill: var(--text);
	stroke: var(--text);
}

.primary-nav {
	margin-left: auto;
}
.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav .menu > li {
	position: relative;
}
.primary-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.6em 0.85em;
	color: var(--text);
	font-size: 0.98rem;
	font-weight: 650;
	text-decoration: none;
	border-radius: 999px;
}
.primary-nav .menu > li > a::after {
	content: "";
	position: absolute;
	left: 0.85em;
	right: 0.85em;
	bottom: 0.3em;
	height: 3px;
	border-radius: 3px;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-parent > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current_page_parent > a::after {
	transform: scaleX(1);
}
.primary-nav .menu-item-has-children > a::before {
	content: "";
	order: 2;
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.15em) rotate(45deg);
}
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.25rem);
	left: 50%;
	min-width: 220px;
	width: max-content;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.primary-nav .sub-menu a {
	padding: 0.6em 0.85em;
	border-radius: 10px;
	font-size: 0.9rem;
	white-space: nowrap;
}
.primary-nav .sub-menu a:hover {
	background: var(--bg-alt);
}
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.theme-toggle .theme-toggle__sun,
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon {
	display: none;
}
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun {
	display: block;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .theme-toggle__moon {
		display: none;
	}
	:root:not([data-theme="light"]) .theme-toggle .theme-toggle__sun {
		display: block;
	}
}
.menu-toggle {
	display: none;
}
.menu-toggle__close {
	display: none;
}

/* 6. Stickers -------------------------------------------------------------- */
/* The original WebKraft peel: the image sits under a white sticker, which
   peels back from the top when you hover, focus or tap it. */
.sticker-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.75rem 3.5rem;
}
.sticker {
	--size: 180px;
	--sticker-accent: var(--coral);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: var(--size);
}
.sticker[hidden] {
	display: none;
}
.sticker__link {
	position: relative;
	display: block;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.sticker__link:focus-visible {
	outline-offset: -8px;
	border-radius: 50%;
}
.sticker__under {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 140px;
	height: 140px;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(180deg, #f5874b 0%, #e66455 25%, #8b3467 50%, #582051 75%, #2a1434 100%);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.sticker__under img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.sticker--service .sticker__under img {
	padding: 26px;
	object-fit: contain;
	border-radius: 30px;
}
.sticker__peel {
	position: absolute;
	inset: 0;
	transform: rotate(45deg);
	transition: transform 1s ease-in-out;
	pointer-events: none;
}
.sticker__front,
.sticker__back {
	position: absolute;
	left: 0;
	width: 180px;
	overflow: hidden;
	transition: all 1s ease-in-out;
}
.sticker__front {
	bottom: 0;
	height: 150px;
	box-shadow: 0 -140px 20px -140px rgba(0, 0, 0, 0.3);
}
.sticker__front::before,
.sticker__back::before {
	content: "";
	position: absolute;
	left: 20px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	transition: all 1s ease-in-out;
}
.sticker__front::before {
	bottom: 20px;
	background: #fff linear-gradient(to top, rgba(255, 255, 255, 0) 75%, #ddd 95%);
	box-shadow: 0 2px 4px rgba(43, 21, 53, 0.18), 0 10px 22px -8px rgba(43, 21, 53, 0.35);
}
.sticker__back {
	top: 30px;
	height: 10px;
}
.sticker__back::before {
	top: -130px;
	background: #f3eff1 linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
	box-shadow: inset 0 -6px 14px rgba(43, 21, 53, 0.08);
}
.sticker__title {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	padding: 40px;
	color: #c4473b;
	font-size: 0.98rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	letter-spacing: -0.01em;
	transition: opacity 50ms linear 400ms;
}
.sticker--post .sticker__title {
	font-size: 0.86rem;
	padding: 44px;
}
/* Clear of the peeled flap, which hangs about 20px below the sticker. */
.sticker__label {
	position: relative;
	z-index: 4;
	margin-top: 1.4rem;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.sticker__link:hover .sticker__peel,
.sticker__link:focus-visible .sticker__peel {
	transform: rotate(10deg);
}
.sticker__link:hover .sticker__front,
.sticker__link:focus-visible .sticker__front {
	height: 70px;
	box-shadow: 0 -60px 10px -60px rgba(0, 0, 0, 0.1);
}
.sticker__link:hover .sticker__back,
.sticker__link:focus-visible .sticker__back {
	top: 110px;
	height: 90px;
}
.sticker__link:hover .sticker__back::before,
.sticker__link:focus-visible .sticker__back::before {
	top: -50px;
}
.sticker__link:hover .sticker__title,
.sticker__link:focus-visible .sticker__title {
	opacity: 0;
	transition: opacity 50ms linear 300ms;
}
.sticker__link:hover + .sticker__label,
.sticker__link:focus-visible + .sticker__label {
	color: var(--link);
}
.sticker--large {
	transform: scale(1.6);
	margin: 4rem auto;
}
.service {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 260px;
	text-align: center;
}
.service__text {
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: 0.98rem;
}

/* 7. Scene ----------------------------------------------------------------- */
.scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.scene__sky {
	position: absolute;
	inset: 0;
	background: var(--sky);
	transition: background 0.6s ease;
}
.scene__stars {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 82%);
	mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 82%);
}
.scene__stars i {
	position: absolute;
	inset: 0;
}
.scene__stars i:nth-child(1) {
	background-image:
		radial-gradient(1.2px 1.2px at 43% 21%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 52% 85%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 8% 11%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 70% 14%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 48% 76%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 9% 66%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 29% 6%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 13% 57%, #fff 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 55% 10%, #fff 50%, transparent 51%);
	background-size: 280px 230px;
	opacity: 0.7;
}
.scene__stars i:nth-child(2) {
	background-image:
		radial-gradient(1.8px 1.8px at 32% 13%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 72% 56%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 9% 74%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 17% 30%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 82% 82%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 76% 9%, #fff 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 75% 76%, #fff 50%, transparent 51%);
	background-size: 560px 430px;
	animation: wk-twinkle 4.5s ease-in-out infinite;
}
.scene__stars i:nth-child(3) {
	background-image:
		radial-gradient(4px 4px at 52% 8%, #fff 30%, rgba(255,240,250,0.35) 60%, transparent 100%),
		radial-gradient(4px 4px at 30% 7%, #fff 30%, rgba(255,240,250,0.35) 60%, transparent 100%),
		radial-gradient(4px 4px at 73% 19%, #fff 30%, rgba(255,240,250,0.35) 60%, transparent 100%),
		radial-gradient(4px 4px at 39% 55%, #fff 30%, rgba(255,240,250,0.35) 60%, transparent 100%),
		radial-gradient(4px 4px at 20% 71%, #fff 30%, rgba(255,240,250,0.35) 60%, transparent 100%);
	background-size: 1100px 760px;
	animation: wk-twinkle 6.5s ease-in-out -3s infinite;
}
@keyframes wk-twinkle {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
/* The beams turn around a point just left of the windmill. The square artwork
   is faded out before its edge, so wide screens never see its corners. */
.scene__rays {
	position: absolute;
	inset: 0;
	-webkit-mask-image: radial-gradient(circle at calc(100% - 250px) 100%, #000 0, #000 1000px, transparent 1750px);
	mask-image: radial-gradient(circle at calc(100% - 250px) 100%, #000 0, #000 1000px, transparent 1750px);
}
.scene__beams {
	position: absolute;
	right: -1550px;
	bottom: -1800px;
	width: 3600px;
	max-width: none;
	height: 3600px;
	opacity: 0.3;
	animation: wk-spin 150s linear infinite;
}
.scene__land {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 700px;
	transform-origin: right bottom;
}
.scene__skyline {
	position: absolute;
	right: -100px;
	bottom: 0;
	width: 2000px;
	max-width: none;
	height: 700px;
}
.scene__windmill {
	position: absolute;
	right: 50px;
	bottom: 120px;
	width: 100px;
	height: 100px;
}
.scene__blades {
	display: block;
	width: 100px;
	height: 100px;
	animation: wk-spin 7s linear infinite;
}
.scene__tractor {
	position: absolute;
	right: 200px;
	bottom: 80px;
	width: 35px;
	height: 35px;
	transform: rotate(-2deg);
	animation: wk-tractor 300s linear infinite;
}
.scene__tractor img {
	display: block;
	width: 35px;
	height: 35px;
}
/* The headlight beam, only after dark. The tractor drives to the right. */
.scene__headlight {
	position: absolute;
	left: 31px;
	top: 15px;
	width: 120px;
	height: 26px;
	margin-top: -13px;
	background: linear-gradient(90deg, rgba(255, 228, 160, 0.55) 0%, rgba(255, 220, 150, 0.18) 45%, rgba(255, 220, 150, 0) 100%);
	clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%);
	opacity: 0;
	transition: opacity 1.2s ease;
	pointer-events: none;
}
.scene__headlight::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: #fff4d0;
	box-shadow: 0 0 6px 2px rgba(255, 220, 150, 0.8);
}
.scene__place {
	position: absolute;
	right: 40px;
	bottom: 28px;
	z-index: 2;
	color: #ffd9c4;
	font-style: oblique;
	font-weight: 650;
	letter-spacing: 0.02em;
	font-size: 0.92rem;
	animation: wk-run 2s ease-out both;
}
@keyframes wk-spin {
	to { transform: rotate(360deg); }
}
@keyframes wk-tractor {
	from { right: 300px; }
	to { right: -300px; }
}
@keyframes wk-run {
	from { right: 300px; opacity: 0; }
	to { right: 40px; opacity: 1; }
}
/* City lights and a glow over the city, generated from the skyline itself
   (see the lights and glow groups in webkraft-background.svg). Night only. */
.scene__lights,
.scene__glow,
.scene__beacons,
.scene__county-lights,
.scene__blade-lights {
	opacity: 0;
	transition: opacity 1.2s ease;
}
.scene__lights {
	--lit: 0.85;
}
.scene__beacons circle,
.scene__blade-lights circle {
	animation: wk-beacon 2.4s ease-in-out infinite;
}
.scene__beacons .b1 {
	animation-delay: -0.8s;
}
.scene__beacons .b2 {
	animation-delay: -1.6s;
}
@keyframes wk-beacon {
	0%, 55%, 100% { opacity: 0.25; }
	65%, 80% { opacity: 1; }
}
.scene__lights .t,
.scene__county-lights .t {
	animation: wk-window 9s ease-in-out infinite;
}
.scene__lights .t:nth-child(3n) {
	animation-delay: -3s;
	animation-duration: 13s;
}
.scene__lights .t:nth-child(3n + 1) {
	animation-delay: -6s;
	animation-duration: 11s;
}
@keyframes wk-window {
	0%, 70%, 100% { opacity: 1; }
	78%, 92% { opacity: 0.15; }
}
/* Night: stars come out, the beams fade and the land turns to silhouettes in
   three tones of plum, lightest far away, against the last of the sunset. */
:root[data-theme="dark"] .scene__stars {
	opacity: 1;
}
:root[data-theme="dark"] .scene__beams {
	opacity: 0.07;
}
:root[data-theme="dark"] .scene__skyline #layer3 :is(path, rect, circle, ellipse, polygon) {
	fill: #3b1d45 !important;
	stroke: none !important;
}
:root[data-theme="dark"] .scene__skyline #layer1 :is(path, rect, circle, ellipse, polygon) {
	fill: #2a1434 !important;
	stroke: none !important;
}
:root[data-theme="dark"] .scene__skyline #layer2 :is(path, rect, circle, ellipse, polygon),
:root[data-theme="dark"] .scene__blades :is(path, rect, circle, ellipse, polygon) {
	fill: #1b0c22 !important;
	stroke: none !important;
}
:root[data-theme="dark"] .scene__glow,
:root[data-theme="dark"] .scene__beacons,
:root[data-theme="dark"] .scene__county-lights,
:root[data-theme="dark"] .scene__blade-lights,
:root[data-theme="dark"] .scene__headlight {
	opacity: 1;
}
:root[data-theme="dark"] .scene__lights {
	opacity: var(--lit);
}
:root[data-theme="dark"] .scene__tractor img {
	filter: brightness(0.2) saturate(0.6) drop-shadow(0 0 4px rgba(255, 190, 110, 0.55));
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .scene__stars {
		opacity: 1;
	}
	:root:not([data-theme="light"]) .scene__beams {
		opacity: 0.07;
	}
	:root:not([data-theme="light"]) .scene__skyline #layer3 :is(path, rect, circle, ellipse, polygon) {
		fill: #3b1d45 !important;
		stroke: none !important;
	}
	:root:not([data-theme="light"]) .scene__skyline #layer1 :is(path, rect, circle, ellipse, polygon) {
		fill: #2a1434 !important;
		stroke: none !important;
	}
	:root:not([data-theme="light"]) .scene__skyline #layer2 :is(path, rect, circle, ellipse, polygon),
	:root:not([data-theme="light"]) .scene__blades :is(path, rect, circle, ellipse, polygon) {
		fill: #1b0c22 !important;
		stroke: none !important;
	}
	:root:not([data-theme="light"]) .scene__glow,
	:root:not([data-theme="light"]) .scene__beacons,
	:root:not([data-theme="light"]) .scene__county-lights,
	:root:not([data-theme="light"]) .scene__blade-lights,
	:root:not([data-theme="light"]) .scene__headlight {
		opacity: 1;
	}
	:root:not([data-theme="light"]) .scene__lights {
		opacity: var(--lit);
	}
	:root:not([data-theme="light"]) .scene__tractor img {
		filter: brightness(0.2) saturate(0.6) drop-shadow(0 0 4px rgba(255, 190, 110, 0.55));
	}
}

/* 8. Hero slider ----------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: max(680px, 100svh);
	padding: calc(var(--header-h) + 2rem) 0 230px;
	overflow: hidden;
	isolation: isolate;
}
.hero__track {
	position: relative;
	z-index: 2;
	display: grid;
}
.slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s;
}
.slide.is-active {
	opacity: 1;
	visibility: visible;
}
.slide__text > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.8s var(--ease);
}
.slide.is-active .slide__text > * {
	opacity: 1;
	transform: none;
}
.slide.is-active .slide__text > :nth-child(2) { transition-delay: 0.08s; }
.slide.is-active .slide__text > :nth-child(3) { transition-delay: 0.16s; }
.slide.is-active .slide__text > :nth-child(4) { transition-delay: 0.24s; }
.slide.is-active .slide__text > :nth-child(5) { transition-delay: 0.32s; }
.slide__title {
	font-size: clamp(2.5rem, 5.4vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
	color: var(--text);
}
.slide--welcome {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.slide__title--hero {
	font-size: clamp(2.8rem, 5.6vw, 5rem);
}
.slide__lede {
	max-width: 34rem;
	color: var(--muted);
	font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}
.slide__lede p:last-child {
	margin: 0;
}
.slide__media {
	position: relative;
	padding: 0 0 40px;
	transform: translateX(60px) rotate(1.5deg);
	opacity: 0;
	transition: transform 1s var(--ease), opacity 0.7s ease;
}
.slide.is-active .slide__media {
	transform: none;
	opacity: 1;
	transition-delay: 0.1s;
}
.slide__media .browser {
	transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
	transform-origin: left center;
}
.slide__media .phone {
	position: absolute;
	right: -10px;
	bottom: 0;
	width: clamp(120px, 15vw, 190px);
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.9s var(--ease) 0.35s, opacity 0.6s ease 0.35s;
}
.slide.is-active .slide__media .phone {
	transform: none;
	opacity: 1;
}
.slide__card {
	margin: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
	transform: perspective(1600px) rotateY(-8deg) rotateX(2deg);
	transform-origin: left center;
}
.slide__card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
/* Welcome slide: a fan of project stickers, each with a corner peeled back
   the way the stickers below do it. The sticker is turned 45 degrees, a cap is
   cut off along a straight fold and its mirror image is the flap. */
.slide__media--fan {
	position: relative;
	height: clamp(320px, 38vw, 470px);
	transform: none;
}
@property --fold {
	syntax: "<percentage>";
	inherits: true;
	initial-value: 15%;
}
.fan__item,
.fan__logo {
	position: absolute;
	display: block;
	aspect-ratio: 1;
	will-change: translate;
	animation: wk-bob 7s ease-in-out infinite;
}
/* A round sticker with one edge peeled back. It is turned 45 degrees, a cap is
   cut off along a straight fold and the flap is the cap's mirror image, so the
   peel sits top right. --fold sets how far it has peeled. */
.peel {
	--fold: 15%;
	filter: drop-shadow(0 18px 26px rgba(43, 21, 53, 0.3)) drop-shadow(0 2px 3px rgba(43, 21, 53, 0.18));
}
.peel__turn {
	position: absolute;
	inset: 0;
	transform: rotate(45deg);
}
.peel__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
	clip-path: inset(var(--fold) 0 0 0);
}
.peel__face img {
	position: absolute;
	inset: 6%;
	width: 88%;
	height: 88%;
	object-fit: cover;
	border-radius: 50%;
	transform: rotate(-45deg);
}
.peel__fold {
	position: absolute;
	inset: 0;
	filter: drop-shadow(0 3px 3px rgba(43, 21, 53, 0.28));
}
.peel__flap {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, #fdfbfc 0%, #f1eaee calc(var(--fold) * 0.6), #d8ccd3 var(--fold), #d8ccd3 100%);
	clip-path: inset(0 0 calc(100% - var(--fold)) 0);
	transform: scaleY(-1);
	transform-origin: 50% var(--fold);
}
.fan__item--0 {
	top: 2%;
	left: 14%;
	width: 46%;
	rotate: -8deg;
}
.fan__item--1 {
	top: 20%;
	right: 2%;
	width: 36%;
	rotate: 9deg;
	animation-delay: -2.4s;
}
.fan__item--2 {
	bottom: 0;
	left: 34%;
	width: 31%;
	rotate: -4deg;
	animation-delay: -4.6s;
}
/* The WK tile. Its shadow follows the artwork's own rounded corners. */
.fan__logo {
	bottom: 14%;
	left: 2%;
	width: 22%;
	filter: drop-shadow(0 16px 22px rgba(43, 21, 53, 0.35));
	animation-delay: -1.2s;
}
.fan__logo svg {
	display: block;
	width: 100%;
	height: 100%;
}
@keyframes wk-bob {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -12px; }
}
.hero__controls {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__tabs {
	display: flex;
	flex: 1;
	gap: 0.5rem;
	min-width: 0;
}
.hero__tab {
	flex: 1 1 0;
	min-width: 0;
	padding: 0.4rem 0 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 650;
}
.hero__tab-label {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin-bottom: 0.45rem;
	transition: color 0.2s ease;
}
.hero__tab.is-active,
.hero__tab:hover {
	color: var(--text);
}
.hero__tab-bar {
	position: relative;
	display: block;
	height: 4px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--text) 14%, transparent);
	overflow: hidden;
}
/* The running bar is a gradient. Once the slider moves on it fades to one
   solid colour: purple by day (with the gradient flipped), orange at night. */
.hero {
	--tab-run: linear-gradient(90deg, #582051 0%, #8b3467 35%, #e66455 75%, #f5874b 100%);
	--tab-done: #582051;
}
:root[data-theme="dark"] .hero {
	--tab-run: var(--brand);
	--tab-done: #f5874b;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .hero {
		--tab-run: var(--brand);
		--tab-done: #f5874b;
	}
}
.hero__tab-bar i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tab-done);
	opacity: 0;
	transition: opacity 0.8s ease 0.15s;
}
.hero__tab.is-done .hero__tab-bar i::after {
	opacity: 1;
}
.hero__tab-bar i {
	position: absolute;
	inset: 0;
	background: var(--tab-run);
	transform: scaleX(0);
	transform-origin: left;
}
.hero__tab.is-done .hero__tab-bar i {
	transform: scaleX(1);
}
.hero__tab.is-active .hero__tab-bar i {
	animation: wk-progress var(--slide-time, 7s) linear forwards;
}
.hero.is-paused .hero__tab.is-active .hero__tab-bar i {
	animation-play-state: paused;
}
.hero.is-static .hero__tab.is-active .hero__tab-bar i {
	animation: none;
	transform: scaleX(1);
}
@keyframes wk-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}
.round-button--quiet {
	box-shadow: none;
	background: transparent;
	font-size: 1rem;
}
.round-button .play-icon,
.hero.is-paused .round-button .pause-icon {
	display: none;
}
.hero.is-paused .round-button .play-icon {
	display: block;
}
/* Scroll-down tab: a half moon on the bottom edge, in the colour of the page
   below, like a notch cut out of the fields. */
.hero__down {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 64px;
	height: 32px;
	margin-left: -32px;
	padding-top: 6px;
	border-radius: 32px 32px 0 0;
	background: var(--bg);
	color: var(--link);
	font-size: 1.15rem;
	box-shadow: 0 -8px 18px -10px rgba(43, 21, 53, 0.45);
}
.hero__down .icon {
	animation: wk-nudge 2.6s ease-in-out infinite;
}
.hero__down:hover {
	color: var(--link-hover);
}
@keyframes wk-nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

/* 9. Sections -------------------------------------------------------------- */
.stats {
	position: relative;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0;
	background: linear-gradient(100deg, #2b1535 0%, #582051 40%, #8b3467 75%, #c8473a 100%);
	color: #fff;
	overflow: hidden;
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}
.stat {
	text-align: center;
}
.stat__value {
	display: block;
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	font-weight: 850;
	letter-spacing: -0.04em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(180deg, #fff 30%, #ffd2b8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stat__label {
	display: block;
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.92rem;
	font-weight: 550;
}

/* 10. Frames --------------------------------------------------------------- */
.browser {
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}
.browser__bar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 34px;
	padding: 0 0.85rem;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}
.browser__dots {
	display: flex;
	gap: 6px;
}
.browser__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f26b5b;
}
.browser__dots i:nth-child(2) {
	background: #f7bd4f;
}
.browser__dots i:nth-child(3) {
	background: #4ec36a;
}
.browser__address {
	flex: 1;
	max-width: 22rem;
	margin: 0 auto;
	padding: 0.15em 0.9em;
	border-radius: 999px;
	background: var(--bg);
	color: var(--muted);
	font-size: 0.74rem;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.browser__shot {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
}
.phone {
	margin: 0;
	padding: 9px;
	border-radius: 34px;
	background: #1b1022;
	box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a2a42;
}
.phone__shot {
	width: 100%;
	aspect-ratio: 9 / 19.5;
	object-fit: cover;
	object-position: top;
	border-radius: 26px;
}

/* 11. Case studies --------------------------------------------------------- */
.cases {
	display: grid;
	gap: clamp(3.5rem, 7vw, 6rem);
}
.case {
	--accent: var(--coral);
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}
.case[hidden] {
	display: none;
}
.case--flip .case__media {
	order: 2;
}
.case__media {
	position: relative;
	display: block;
	border-radius: 14px;
	text-decoration: none;
}
/* Hovering anywhere on the card peels the badge sticker most of the way off,
   lifts the browser out a little and lightens its bar. */
.case__media .browser {
	transition: transform 0.6s var(--ease), box-shadow 0.5s ease;
}
.case__media .browser__bar {
	transition: background-color 0.4s ease;
}
.case:hover .case__media .browser,
.case:focus-within .case__media .browser {
	transform: translateY(-8px) scale(1.012);
	box-shadow: 0 4px 10px rgba(43, 21, 53, 0.1), 0 50px 90px -30px rgba(43, 21, 53, 0.5), 0 0 0 1px var(--line);
}
.case:hover .browser__bar,
.case:focus-within .browser__bar {
	background-color: color-mix(in srgb, var(--surface-2) 55%, #fff);
}
.case__badge {
	position: absolute;
	z-index: 2;
	top: -34px;
	right: -24px;
	width: 116px;
	aspect-ratio: 1;
	--fold: 14%;
	rotate: 8deg;
	transition: --fold 0.7s var(--ease), rotate 0.7s var(--ease), translate 0.7s var(--ease);
}
.case--flip .case__badge {
	right: auto;
	left: -24px;
	rotate: -8deg;
}
.case:hover .case__badge,
.case:focus-within .case__badge {
	--fold: 46%;
	rotate: 0deg;
	translate: 4px -6px;
}
.case__title {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	letter-spacing: -0.035em;
}
.case__title a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
	transition: background-size 0.4s var(--ease);
}
.case__title a:hover {
	background-size: 100% 3px;
}
.case__text {
	color: var(--muted);
	font-size: 1.1rem;
}

/* 12. Projects page -------------------------------------------------------- */
.filters {
	position: relative;
	z-index: 3;
	margin-top: -1.5rem;
	margin-bottom: 0.5rem;
}
.filters--links {
	margin: 0 0 2.5rem;
}
.filters__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 42px;
	padding: 0.45em 1.05em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.92rem;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: transform 0.2s var(--ease), background-color 0.2s ease, color 0.2s ease;
}
.chip:hover {
	color: var(--text);
	transform: translateY(-2px);
}
.chip.is-active {
	background: var(--brand-deep);
	border-color: transparent;
	color: #fff;
}
.chip__count {
	min-width: 1.7em;
	padding: 0 0.45em;
	border-radius: 999px;
	background: color-mix(in srgb, currentColor 14%, transparent);
	font-size: 0.78rem;
	text-align: center;
}
.filters__empty {
	text-align: center;
	color: var(--muted);
}

/* 13. Timeline ------------------------------------------------------------- */
.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 27px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, #f5874b, #e66455 30%, #8b3467 70%, #2b1535);
}
.timeline__year {
	position: relative;
	padding-bottom: 1.5rem;
}
.timeline__label {
	position: sticky;
	top: calc(var(--header-h) + 0.5rem);
	z-index: 2;
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.3em 0.95em;
	border-radius: 999px;
	background: var(--brand-deep);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: var(--shadow);
}
.timeline__entries {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0 0 0 76px;
	list-style: none;
}
.timeline__entry {
	--accent: var(--coral);
	position: relative;
}
.timeline__entry[hidden] {
	display: none;
}
.timeline__dot {
	position: absolute;
	top: 18px;
	left: -60px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--accent);
	border: 4px solid var(--bg);
	box-shadow: 0 0 0 2px var(--accent);
}
.timeline__dot--image {
	top: 6px;
	left: -70px;
	width: 42px;
	height: 42px;
	overflow: hidden;
	background: #fff;
	border-width: 3px;
}
.timeline__dot--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.timeline__card {
	padding: 1.1rem 1.35rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.timeline__title {
	margin: 0 0 0.3rem;
	font-size: 1.12rem;
	letter-spacing: -0.015em;
}
.timeline__title a {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	color: inherit;
	text-decoration: none;
}
.timeline__title a:hover {
	color: var(--link);
}
.timeline__card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
}

/* 14. Case study page ------------------------------------------------------ */
.facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 0.75rem;
	max-width: 1000px;
	margin: 2rem auto 0;
	text-align: left;
}
.facts__item {
	flex: 0 1 auto;
	min-width: 130px;
	max-width: 420px;
	padding: 0.8rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--surface) 72%, transparent);
	backdrop-filter: blur(8px);
}
.facts dt {
	margin-bottom: 0.15rem;
	color: var(--muted);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.facts dd {
	margin: 0;
	font-weight: 650;
	line-height: 1.35;
}
.status {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.status::before {
	content: "";
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: #9a8aa0;
}
.status--live::before {
	background: #2fb35a;
	box-shadow: 0 0 0 3px rgba(47, 179, 90, 0.2);
}
.status--preview::before {
	background: #f0a43a;
}
.showcase {
	position: relative;
	z-index: 3;
	margin-top: -150px;
}
.showcase__stage {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
	padding-right: clamp(0px, 6vw, 70px);
}
.showcase__stage .phone {
	position: absolute;
	right: 0;
	bottom: -40px;
	width: clamp(110px, 20vw, 230px);
}
.showcase__sticker {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
	overflow: hidden;
}
.compare {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
	aspect-ratio: 16 / 10;
	user-select: none;
	touch-action: pan-y;
}
.compare img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}
.compare__before {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}
.compare__handle .icon {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: none;
	width: 48px;
	height: 48px;
	padding: 11px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	background: #fff;
	color: var(--plum);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}
.compare:has(.compare__range:focus-visible) .compare__handle .icon {
	outline: 3px solid var(--coral);
	outline-offset: 3px;
}
.compare__tag {
	position: absolute;
	top: 14px;
	z-index: 2;
	padding: 0.3em 0.8em;
	border-radius: 999px;
	background: rgba(27, 16, 34, 0.75);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}
.compare__tag--before {
	left: 14px;
}
.compare__tag--after {
	right: 14px;
}
.section--story {
	padding-top: clamp(5rem, 9vw, 7rem);
}
.section--compare + .section--story {
	padding-top: 0;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gallery-grid__item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow);
	cursor: zoom-in;
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.gallery-grid__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}
.gallery-grid__item img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
}
.lightbox {
	width: min(96vw, 1400px);
	max-width: none;
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	overflow: visible;
}
.lightbox::backdrop {
	background: rgba(14, 7, 22, 0.88);
	backdrop-filter: blur(4px);
}
.lightbox figure {
	margin: 0;
}
.lightbox img {
	width: 100%;
	max-height: 84vh;
	object-fit: contain;
	border-radius: 12px;
}
.lightbox figcaption {
	padding-top: 0.75rem;
	color: #fff;
	text-align: center;
}
.lightbox__close {
	position: absolute;
	top: -54px;
	right: 0;
	color: #fff;
	font-size: 1.4rem;
}
.lightbox__prev,
.lightbox__next {
	position: absolute;
	top: 50%;
	margin-top: -24px;
	z-index: 2;
}
.lightbox__prev {
	left: 12px;
}
.lightbox__next {
	right: 12px;
}

/* 15. Bands (page headers) ------------------------------------------------- */
.band {
	position: relative;
	padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(190px, 22vw, 240px);
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}
.band .scene__land {
	transform: scale(0.78);
}
.band .scene__place {
	display: none;
}
.band__inner {
	position: relative;
	z-index: 2;
}
.band__title {
	max-width: 18em;
	margin-inline: auto;
	font-size: clamp(2.4rem, 5.6vw, 4.4rem);
	letter-spacing: -0.045em;
	line-height: 1.04;
}
.band__intro {
	max-width: 40rem;
	margin: 0 auto;
	color: var(--muted);
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.band__intro p:last-child {
	margin-bottom: 0;
}
.band .button-row {
	justify-content: center;
}
.band--project,
.band--post {
	padding-bottom: clamp(220px, 24vw, 270px);
}
.band--post .band__title {
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.band .post-meta {
	justify-content: center;
	margin-top: 1rem;
}
.band .search-form {
	margin: 1.5rem auto 0;
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4em;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}
.crumbs li + li::before {
	content: "/";
	margin-right: 0.4em;
	opacity: 0.5;
}
.crumbs a {
	color: inherit;
}

/* 16. Posts ---------------------------------------------------------------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}
.card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--brand);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.card:hover .card__media img {
	transform: scale(1.04);
}
.card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: rgba(255, 255, 255, 0.8);
	font-size: 3rem;
}
.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.35rem 1.5rem 1.5rem;
}
.card__kicker {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.card__kicker a {
	text-decoration: none;
}
.card__title {
	font-size: 1.28rem;
	letter-spacing: -0.02em;
}
.card__title a {
	color: inherit;
	text-decoration: none;
}
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.card {
	position: relative;
}
.card__kicker a {
	position: relative;
	z-index: 2;
}
.card__text {
	color: var(--muted);
	font-size: 0.98rem;
}
.card .post-meta {
	margin-top: auto;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 550;
}
.post-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.entry__image {
	position: relative;
	z-index: 3;
	margin: -150px auto clamp(2.5rem, 5vw, 3.5rem);
}
.entry__image img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
.entry--page {
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.entry {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
.has-featured-image .entry--page {
	padding-top: 0;
}
.prose {
	font-size: 1.1rem;
	line-height: 1.75;
}
.prose > * + * {
	margin-top: 1.25em;
}
.prose p {
	margin: 0;
}
.prose p + p {
	margin-top: 1.1em;
}
.prose h2 {
	margin-top: 2em;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.prose h3 {
	margin-top: 1.7em;
	font-size: 1.35rem;
}
.prose h2 + *,
.prose h3 + * {
	margin-top: 0.6em;
}
.prose img,
.prose .wp-block-image img {
	border-radius: var(--radius-sm);
}
.prose figure {
	margin-inline: 0;
}
.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.6em;
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
}
.prose li + li {
	margin-top: 0.35em;
}
.prose li::marker {
	color: var(--coral);
}
.prose blockquote {
	margin-inline: 0;
	padding: 0.4em 0 0.4em 1.3em;
	border-left: 4px solid var(--coral);
	font-size: 1.2rem;
	font-weight: 550;
}
.prose hr {
	border: 0;
	height: 3px;
	width: 80px;
	margin: 2.5em auto;
	border-radius: 3px;
	background: var(--brand);
}
.prose code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--bg-alt);
	font-size: 0.9em;
}
.prose pre {
	overflow: auto;
	padding: 1.2em;
	border-radius: var(--radius-sm);
	background: #1b1022;
	color: #f8edf3;
	font-size: 0.9rem;
}
.prose .alignwide {
	width: min(100vw - 2.5rem, 1100px);
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose .wp-block-columns {
	gap: 1.5rem;
}
.prose .wp-block-button__link {
	border-radius: 999px;
	background: var(--brand-deep);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}
.prose th,
.prose td {
	padding: 0.6em 0.8em;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
/* Hosting packages and other column cards built in the editor. */
.prose .wk-packages {
	align-items: stretch;
	width: min(100vw - 2.5rem, 1100px);
	margin-left: 50%;
	transform: translateX(-50%);
}
.prose .wk-package {
	display: flex;
	flex-direction: column;
	padding: 1.6rem;
	font-size: 1rem;
	line-height: 1.6;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.prose .wk-package h3 {
	margin: 0;
	font-size: 1.25rem;
}
.prose .wk-package .wk-price {
	margin: 0.5rem 0 0.75rem;
	font-size: 2.2rem;
	font-weight: 850;
	letter-spacing: -0.04em;
	line-height: 1;
}
.prose .wk-package .wk-price small {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0;
}
.prose .wk-package ul {
	padding: 0;
	list-style: none;
	font-size: 0.98rem;
}
.prose .wk-package li {
	padding-left: 1.6em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e66455' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") 0 0.3em / 1.05em no-repeat;
}
.prose .wk-package .wp-block-buttons {
	margin-top: auto;
}
.prose .wk-package--featured {
	border: 2px solid var(--coral);
}
.entry__footer {
	display: grid;
	gap: 2rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.share__label {
	margin-right: 0.4rem;
	font-weight: 700;
}
.share__link {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	font-size: 1.1rem;
	cursor: pointer;
	transition: transform 0.2s var(--ease), color 0.2s ease;
}
.share__link:hover {
	transform: translateY(-2px);
	color: var(--link);
}
.share__copy.is-copied {
	color: #2fb35a;
}
.author-box {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	padding: 1.35rem;
	border-radius: var(--radius);
	background: var(--bg-alt);
}
.author-box img {
	flex: none;
	width: 64px;
	height: 64px;
}
.author-box__name {
	margin: 0 0 0.25rem;
	font-weight: 800;
	font-size: 1.1rem;
}
.author-box p:last-child {
	margin: 0;
	color: var(--muted);
}
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: transform 0.2s var(--ease);
}
.post-nav__link:hover {
	color: var(--text);
	transform: translateY(-3px);
}
.post-nav__link--next {
	grid-column: 2;
	text-align: right;
}
.post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	color: var(--link);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.post-nav__link--next .post-nav__label {
	justify-content: flex-end;
}
.post-nav__title {
	font-weight: 700;
	line-height: 1.3;
}
.pagination {
	margin-top: 3rem;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.6em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-weight: 650;
	text-decoration: none;
}
.pagination .page-numbers.current {
	background: var(--brand-deep);
	border-color: transparent;
	color: #fff;
}
.comments {
	margin-top: 3rem;
}
.comments__title {
	font-size: 1.5rem;
}
.comments__list {
	padding: 0;
	list-style: none;
}
.comments__list .comment-body {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
}
.comments__list .avatar {
	float: left;
	margin-right: 0.8rem;
	border-radius: 50%;
}

/* 17. Forms ---------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 0.7em 0.95em;
	border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea {
	min-height: 160px;
	resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--coral);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 22%, transparent);
}
label {
	font-weight: 650;
}
.wpcf7-form label {
	display: block;
	margin-bottom: 1.1rem;
}
.wpcf7-form label > .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
	font-weight: 400;
}
.wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	color: #c0392b;
	font-size: 0.9rem;
}
.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.8em 1em;
	border-radius: 12px;
}
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
}
.search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0 1.2em;
	border: 0;
	border-radius: 12px;
	background: var(--brand-deep);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4rem);
}
.contact-layout__aside h2 {
	font-size: 1.8rem;
}
.contact-layout__aside > p {
	color: var(--muted);
}
.contact-layout__form {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.contact-list {
	display: grid;
	gap: 0.6rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}
.contact-list li {
	display: flex;
	align-items: center;
	gap: 0.6em;
}
.contact-list .icon {
	color: var(--coral);
	font-size: 1.2rem;
}

/* 18. Footer --------------------------------------------------------------- */
.cta {
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background: linear-gradient(115deg, #e66455 0%, #b03f5f 40%, #6b2560 75%, #2b1535 100%);
	color: #fff;
	text-align: center;
	isolation: isolate;
}
.cta__beams {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 2400px;
	max-width: none;
	height: 2400px;
	margin: -1200px 0 0 -1200px;
	opacity: 0.06;
	animation: wk-spin 200s linear infinite;
}
.cta .kicker {
	color: #ffd9c4;
}
.cta .kicker::before {
	background: #ffd9c4;
}
.cta__title {
	max-width: 16em;
	margin-inline: auto;
	color: #fff;
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	letter-spacing: -0.045em;
}
.cta__text {
	max-width: 36rem;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.15rem;
}
.cta .button-row {
	justify-content: center;
}
.site-footer {
	position: relative;
	padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
	background: #170b1f;
	color: #d9c8dc;
	font-size: 0.98rem;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--brand);
}
.site-footer a {
	color: #fff;
	text-decoration: none;
}
.site-footer a:hover {
	color: #ffb79c;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 4vw, 3rem);
}
.site-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.site-footer__heading {
	margin-bottom: 1rem;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.footer-menu {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.socials {
	display: flex;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
.socials a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	font-size: 1.15rem;
	transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.socials a:hover {
	background: var(--coral);
	color: #fff;
	transform: translateY(-2px);
}
.socials--dark a {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
}
.site-footer .mc4wp-form-fields {
	display: grid;
	gap: 0.6rem;
}
.site-footer .mc4wp-form label {
	font-size: 0.86rem;
	color: #d9c8dc;
}
.site-footer .mc4wp-form input[type="email"] {
	margin-top: 0.3rem;
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.site-footer .mc4wp-form p {
	margin: 0;
}
.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.88rem;
	color: #b49fb8;
}
.site-footer__base p {
	margin: 0;
}
.to-top {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	font-size: 1.1rem;
}

/* 19. Motion --------------------------------------------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.scene__beams,
	.scene__stars i,
	.scene__lights .t,
	.scene__county-lights .t,
	.scene__beacons circle,
	.scene__blade-lights circle,
	.scene__blades,
	.scene__tractor,
	.cta__beams,
	.fan__item,
	.fan__logo,
	.hero__down .icon {
		animation: none !important;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* 20. Small screens -------------------------------------------------------- */
@media (max-width: 1200px) and (min-width: 961px) {
	.site-logo {
		width: 236px;
		margin-top: 12px;
	}
}
@media (max-width: 1080px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 960px) {
	:root {
		--header-h: 72px;
	}
	.site-logo {
		width: 180px;
		margin-top: 15px;
	}
	.menu-toggle {
		display: inline-grid;
	}
	.site-header__actions {
		margin-left: auto;
	}
	.slide {
		align-self: start;
	}
	.primary-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin: 0;
		padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
		background: var(--bg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
		overflow-y: auto;
	}
	.menu-open .primary-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.menu-open {
		overflow: hidden;
	}
	.menu-open .site-header {
		background: var(--bg);
	}
	.menu-open .menu-toggle__open {
		display: none;
	}
	.menu-open .menu-toggle__close {
		display: block;
	}
	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
		width: min(100%, 420px);
		margin: 0 auto;
	}
	.primary-nav a {
		justify-content: center;
		padding: 0.55em 0.8em;
		font-size: 1.5rem;
		font-weight: 750;
	}
	.primary-nav .menu > li > a::after {
		bottom: 0.15em;
		left: 35%;
		right: 35%;
	}
	.primary-nav .menu-item-has-children > a::before {
		display: none;
	}
	.primary-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0.5rem;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.primary-nav .sub-menu a {
		font-size: 1.05rem;
		font-weight: 600;
		color: var(--muted);
	}
	.slide {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.slide__media {
		max-width: 620px;
	}
	.slide__media--fan {
		display: none;
	}
	.hero {
		padding-bottom: 200px;
	}
	.hero__tab-label {
		display: none;
	}
	.case,
	.contact-layout {
		grid-template-columns: 1fr;
	}
	.case--flip .case__media {
		order: 0;
	}
	.stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}
}
@media (max-width: 640px) {
	body {
		font-size: 1rem;
	}
	.wrap,
	.wrap--medium,
	.wrap--narrow {
		width: calc(100% - 2rem);
	}
	.site-header__inner {
		width: calc(100% - 2rem);
		gap: 0.5rem;
	}
	.site-logo {
		width: 156px;
		margin-top: 18px;
	}
	/* The hero fits the screen: the text keeps its natural height and the
	   screenshot takes whatever is left, cropped from the bottom. */
	.hero {
		justify-content: flex-start;
		height: max(100svh, 540px);
		min-height: 0;
		padding: calc(var(--header-h) + 1rem) 0 112px;
	}
	.hero__track {
		flex: 1 1 auto;
		grid-template-rows: minmax(0, 1fr);
		min-height: 0;
	}
	.slide {
		align-self: stretch;
		grid-template-rows: auto minmax(0, 1fr);
		align-content: start;
		gap: 1.1rem;
	}
	.slide--welcome {
		grid-template-rows: auto;
		align-content: center;
	}
	.slide__title {
		font-size: clamp(1.85rem, 8.4vw, 2.4rem);
	}
	.slide__title--hero {
		font-size: clamp(2.1rem, 9.6vw, 2.7rem);
	}
	.hero .kicker {
		margin-bottom: 0.6rem;
		font-size: 0.72rem;
	}
	.slide__lede {
		font-size: 0.98rem;
		line-height: 1.5;
	}
	.hero .tags {
		display: none;
	}
	.hero .button-row {
		gap: 0.5rem;
		margin-top: 1rem;
	}
	.hero .button {
		gap: 0.4em;
		min-height: 42px;
		padding: 0.5em 0.95em;
		font-size: 0.88rem;
	}
	.slide__media {
		container-type: size;
		align-self: stretch;
		min-height: 0;
		padding: 0;
	}
	.slide__media .browser,
	.slide__card {
		display: flex;
		flex-direction: column;
		max-height: 100%;
		transform: none;
	}
	.slide__media .browser__bar {
		flex: none;
	}
	.slide__media .browser img,
	.slide__card img {
		flex: 0 1 auto;
		min-height: 0;
		object-fit: cover;
		object-position: top;
	}
	.slide__media .phone {
		right: -4px;
		width: auto;
		height: min(100%, 200px);
		padding: 5px;
		border-radius: 18px;
	}
	.slide__media .phone__shot {
		width: auto;
		height: 100%;
		border-radius: 14px;
	}
	/* Too little room for a useful screenshot: leave just the text. */
	@container (max-height: 120px) {
		.browser,
		.phone,
		.slide__card img {
			display: none;
		}
	}
	.hero__controls {
		gap: 0.5rem;
		margin-top: 1rem;
	}
	.round-button {
		width: 44px;
		height: 44px;
	}
	.scene__land,
	.band .scene__land {
		transform: scale(0.62);
	}
	.scene__place {
		display: none;
	}
	/* Two stickers a row: the sticker art is drawn in pixels, so it is zoomed. */
	.sticker-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-items: center;
		gap: 1.75rem 0.5rem;
	}
	.sticker-grid .sticker {
		--size: 144px;
	}
	.sticker-grid .sticker__link {
		zoom: 0.8;
	}
	.sticker-grid .sticker__label {
		margin-top: 0.75rem;
	}
	.sticker-grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.case__badge {
		width: 84px;
		height: 84px;
		top: -26px;
		right: -8px;
	}
	.case--flip .case__badge {
		left: -8px;
	}
	.showcase {
		margin-top: -120px;
	}
	.showcase__stage {
		padding-right: 0;
		padding-bottom: 30px;
	}
	.showcase__stage .phone {
		right: -6px;
		bottom: -10px;
		width: 92px;
		padding: 5px;
		border-radius: 18px;
	}
	.showcase__stage .phone__shot {
		border-radius: 14px;
	}
	.timeline::before {
		left: 17px;
	}
	.timeline__entries {
		padding-left: 46px;
	}
	.timeline__dot {
		left: -40px;
	}
	.timeline__dot--image {
		left: -48px;
		width: 36px;
		height: 36px;
	}
	.post-nav {
		grid-template-columns: 1fr;
	}
	.post-nav__link--next {
		grid-column: auto;
	}
	.site-footer__brand,
	.site-footer__subscribe {
		grid-column: 1 / -1;
	}
	.cards {
		grid-template-columns: 1fr;
	}
	.compare__tag {
		top: 8px;
		font-size: 0.68rem;
	}
	.search-form {
		flex-direction: column;
	}
	.search-form__submit {
		min-height: 48px;
		justify-content: center;
	}
}
