/*
 * Kontur block theme styles.
 * Colours and fonts come from theme.json presets, so Styles in the Site Editor
 * (and the 8 style variations) restyle everything below automatically.
 */

/* ---------- Tokens ---------- */
body,
.editor-styles-wrapper {
	--c1: var(--wp--preset--color--field);
	--on1: var(--wp--preset--color--on-field);
	--c2: var(--wp--preset--color--support);
	--on2: var(--wp--preset--color--on-support);
	--acc: var(--wp--preset--color--accent);
	--onacc: var(--wp--preset--color--on-accent);
	--bg: var(--wp--preset--color--base);
	--surface: var(--wp--preset--color--surface);
	--ink: var(--wp--preset--color--contrast);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--line);
	--display: var(--wp--custom--font--display, var(--wp--preset--font-family--archivo));
	--stretch: var(--wp--custom--font--display-stretch, 112%);
	--dweight: var(--wp--custom--font--display-weight, 800);
	--r: var(--wp--custom--radius, 18px);
	--arch: var(--wp--custom--arch, 999px);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--wrap: 1240px;
	--gutter: max(5vw, 18px);
}

/* Front-end switcher overrides (set on <html> by kontur.js) */
html[data-mode="dark"] body {
	--wp--preset--color--base: var(--wp--custom--dark--base);
	--wp--preset--color--surface: var(--wp--custom--dark--surface);
	--wp--preset--color--contrast: var(--wp--custom--dark--contrast);
	--wp--preset--color--muted: var(--wp--custom--dark--muted);
	--wp--preset--color--line: var(--wp--custom--dark--line);
	color-scheme: dark;
}
html[data-font="fraunces"] body { --display: var(--wp--preset--font-family--fraunces); --stretch: 100%; --dweight: 600; }
html[data-font="space"] body { --display: var(--wp--preset--font-family--space-grotesk); --stretch: 100%; --dweight: 700; }
html[data-font="space"] body { font-family: var(--wp--preset--font-family--space-grotesk); }
html[data-radius="sharp"] body { --r: 0px; --arch: 0px; }
html[data-radius="round"] body { --r: 32px; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: clip; -webkit-font-smoothing: antialiased; transition: background-color .4s, color .4s; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, .wp-block-heading {
	font-family: var(--display);
	font-stretch: var(--stretch);
	font-weight: var(--dweight);
	text-wrap: balance;
}
:where(.wp-site-blocks) p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text, .k-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.k-main { margin: 0; }
.k-main > * { margin-block: 0; }

/* Constrained bands: keep content at 1240px with side gutters */
.k-band { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.k-band > * { max-width: var(--wrap); margin-inline: auto; }
.k-sample-note { font-size: 13px; color: var(--muted); margin-top: 22px; }
.k-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px;
	border: 2px solid transparent;
	border-radius: calc(var(--r) + 40px) !important;
	transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
html[data-radius="sharp"] .wp-block-button__link { border-radius: 0 !important; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: currentColor; border: 2px solid currentColor;
	padding: 14px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wp-block-button.is-style-kontur-accent > .wp-block-button__link { background: var(--acc); color: var(--onacc); }
.wp-block-button.is-style-kontur-accent > .wp-block-button__link:hover { background: var(--ink); color: var(--bg); }
.k-arrow .wp-block-button__link::after { content: "→"; transition: transform .3s var(--ease); }
.k-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
.k-round {
	width: 52px; height: 52px; border-radius: 50%; border: 2px solid currentColor; background: transparent;
	color: inherit; font: inherit; font-size: 20px; display: grid; place-items: center; cursor: pointer;
	transition: background-color .3s, color .3s;
}
.k-round:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.k-link-arrow a { display: inline-flex; gap: 10px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.k-link-arrow a::after { content: "→"; transition: transform .3s var(--ease); }
.k-link-arrow a:hover::after { transform: translateX(6px); }
.k-link-arrow { margin-top: 28px; }

/* ---------- Block styles ---------- */
.wp-block-image.is-style-kontur-arch img { border-radius: var(--arch) var(--arch) var(--r) var(--r); }
.wp-block-image.is-style-kontur-circle img { border-radius: 50%; }
.wp-block-group.is-style-kontur-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.wp-block-group.is-style-kontur-field { background: var(--c1); color: var(--on1); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
ul.is-style-kontur-checks, ul.is-style-kontur-dots { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.is-style-kontur-checks li, ul.is-style-kontur-dots li { display: flex; gap: 10px; }
ul.is-style-kontur-checks li::before { content: "✓"; font-weight: 800; color: var(--acc); }
ul.is-style-kontur-dots li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--acc); }
.is-style-kontur-kicker { font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.is-style-kontur-lead { font-size: clamp(18px, 1.5vw, 21px); opacity: .86; max-width: 36em; }
.is-style-kontur-giant { font-size: clamp(48px, 8vw, 120px) !important; line-height: .95; letter-spacing: -.04em; }

/* ---------- Header ---------- */
.k-site-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; margin: 0;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line);
	color: var(--ink);
	transition: transform .5s var(--ease), background-color .35s, color .35s, box-shadow .35s;
}
.k-header { gap: 28px; padding: 16px var(--gutter); }
.k-brand { gap: 10px; flex: none; }
.k-brand .wp-block-site-title { margin: 0; font-stretch: 118%; }
.k-brand .wp-block-site-title a { color: inherit; }
.k-brand .wp-block-site-logo svg { display: block; }
.k-brand .wp-block-site-logo a { color: inherit; }
.k-nav { flex: 1; }
.k-nav .wp-block-navigation-item__content { padding: 10px 14px; border-radius: 99px; text-decoration: none; transition: background-color .25s; }
.k-nav .wp-block-navigation-item__content:hover,
.k-nav .wp-block-navigation-item__content.is-on { background: color-mix(in srgb, currentColor 12%, transparent); }
.k-nav .wp-block-navigation__container { gap: 6px; }
.k-header-cta { flex: none; }
.k-header-cta .wp-block-button__link { padding: 12px 22px; min-height: 46px; }
/* Header sitting over the colour-field hero (front page) */
body:has(.k-hero) .k-site-header { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--on1); }
body:has(.k-hero) .k-site-header .k-header-cta .wp-block-button__link { background: var(--on1); color: var(--c1); }
body:has(.k-hero) .k-site-header.is-solid {
	background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--ink);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
}
body:has(.k-hero) .k-site-header.is-solid .k-header-cta .wp-block-button__link { background: var(--ink); color: var(--bg); }
.k-site-header.is-hidden { transform: translateY(-110%); }
/* Mobile overlay menu: Kontur shows it up to 960px */
.k-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--c2) !important; color: var(--on2) !important; padding: 100px var(--gutter) 40px;
}
.k-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(34px, 9vw, 60px); line-height: 1.15; padding: 0;
}
.k-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; }
@media (max-width: 960px) {
	.k-header-cta { display: none; }
	.k-nav { justify-content: flex-end !important; }
	.k-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.k-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- Hero ---------- */
.k-hero { background: var(--c1); color: var(--on1); padding: clamp(120px, 12vw, 160px) var(--gutter) 0; position: relative; overflow: hidden; transition: background-color .5s, color .5s; }
.k-hero-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.k-hero-inner > * { margin: 0; }
.k-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1.5px solid currentColor; border-radius: 99px; font-weight: 600; font-size: 15px; margin: 0 0 26px; }
.k-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 var(--acc); animation: k-pulse 2s infinite; }
@keyframes k-pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.k-hero-title { font-size: clamp(42px, 5.6vw, 82px) !important; line-height: .98; letter-spacing: -.035em; margin: 0; }
.k-hero-title em { font-style: normal; display: inline-block; position: relative; white-space: nowrap; }
.k-hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .09em; background: var(--acc); transform-origin: 0 50%; }
.k-hero-title em.is-drawn::after { animation: k-under .9s var(--ease) .25s both; }
.k-hero-title .k-ch { display: inline-block; transition: transform .6s var(--ease), opacity .4s; }
.k-hero-title .k-ch.is-out { transform: translateY(-60%); opacity: 0; }
.k-hero-title .k-ch.is-in { transform: translateY(60%); opacity: 0; }
@keyframes k-under { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.k-hero-lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 34em; margin-top: 26px; opacity: .86; }
.k-hero-actions { margin-top: 34px; gap: 14px; }
.k-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--on1); color: var(--c1); }
.k-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--c2); color: var(--on2); }
.k-hero .is-style-outline .wp-block-button__link:hover { background: var(--on1); color: var(--c1); border-color: var(--on1); }

.k-hero-visual { position: relative; justify-self: end; width: min(100%, 520px); }
.k-hero-frame { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--arch) var(--arch) var(--r) var(--r); overflow: hidden; background: color-mix(in srgb, var(--on1) 12%, transparent); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.k-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-js .k-hero-frame img { clip-path: circle(0% at 50% 100%); transform: scale(1.15); transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease); }
.k-js .k-hero-frame img.is-on { clip-path: circle(150% at 50% 100%); transform: scale(1); z-index: 1; }
.k-js .k-hero-frame img.was-on { clip-path: circle(150% at 50% 100%); transform: scale(1); z-index: 0; }
.k-badge { position: absolute; left: -46px; top: 18%; width: 120px; height: 120px; margin: 0; border-radius: 50%; background: var(--acc); color: var(--onacc); display: grid; place-items: center; z-index: 2; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; padding: 14px; }
.k-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: k-spin 14s linear infinite; }
.k-badge text { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; fill: currentColor; }
.k-badge .k-badge-arrow { font-size: 28px; }
@keyframes k-spin { to { transform: rotate(360deg); } }
.k-hero-card { position: absolute; right: -18px; bottom: 44px; z-index: 2; background: var(--surface); color: var(--ink); padding: 16px 20px; border-radius: var(--r); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); max-width: 250px; transition: opacity .4s, transform .5s var(--ease); }
.k-hero-card > * { margin: 0; }
.k-hero-card.is-flip { opacity: 0; transform: translateY(12px); }
.k-hero-card-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.k-hero-card-text { font-size: 14px; color: var(--muted); }

.k-hero-tabs { max-width: var(--wrap); margin: clamp(40px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid color-mix(in srgb, var(--on1) 30%, transparent); }
.k-hero-tabs > * { margin: 0; }
.k-htab { position: relative; text-align: left; background: transparent; border: 0; color: inherit; font: inherit; padding: 20px 14px 26px 0; display: flex; flex-direction: column; opacity: .55; transition: opacity .3s; cursor: pointer; }
.k-htab > * { margin: 0; }
.k-htab:hover, .k-htab.is-on { opacity: 1; }
.k-htab-name { font-size: 18px; font-weight: 700; }
.k-htab-sub { font-size: 14px; }
.k-htab-data { display: none; }
.k-htab-bar { position: absolute; top: -1.5px; left: 0; height: 3px; width: 100%; background: var(--on1); transform: scaleX(0); transform-origin: 0 50%; }
.k-htab.is-on .k-htab-bar { animation: k-fill var(--k-dur, 5s) linear forwards; }
.k-hero.is-paused .k-htab.is-on .k-htab-bar { animation-play-state: paused; }
@keyframes k-fill { to { transform: scaleX(1); } }

/* Centred hero variant (style switcher) */
.k-hero[data-layout="center"] .k-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.k-hero[data-layout="center"] .k-hero-lead { margin-inline: auto; }
.k-hero[data-layout="center"] .k-hero-actions { justify-content: center; }
.k-hero[data-layout="center"] .k-hero-visual { justify-self: center; width: min(100%, 880px); }
.k-hero[data-layout="center"] .k-hero-frame { aspect-ratio: 16 / 9; }
.k-hero[data-layout="center"] .k-hero-card { right: 24px; }

@media (max-width: 860px) {
	.k-hero-inner { grid-template-columns: 1fr; }
	.k-hero-visual { justify-self: center; width: min(100%, 460px); margin-top: 10px; }
	.k-badge { left: -10px; width: 96px; height: 96px; }
	.k-hero-card { right: 0; }
	.k-hero-tabs { grid-template-columns: repeat(5, minmax(130px, 1fr)); overflow-x: auto; scrollbar-width: none; }
	.k-hero-tabs::-webkit-scrollbar { display: none; }
}

/* ---------- Logo marquee ---------- */
.k-marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 26px 0; }
.k-marquee-track { display: flex; gap: 64px; width: max-content; align-items: center; }
.k-js .k-marquee-track { animation: k-marq 34s linear infinite; }
.k-marquee:hover .k-marquee-track { animation-play-state: paused; }
.k-marquee-track > * { margin: 0 !important; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); opacity: .75; white-space: nowrap; }
.k-marquee .k-m-serif { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 600; }
.k-marquee .k-m-wide { font-stretch: 125%; font-size: clamp(18px, 2vw, 24px); }
@keyframes k-marq { to { transform: translateX(-50%); } }

/* ---------- Statement / about ---------- */
.k-statement-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.k-statement-grid > * { margin: 0; }
.k-statement-img { margin: 0; }
.k-statement-img img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.k-statement-text { font-family: var(--display); font-stretch: var(--stretch); font-weight: 650; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.015em; }
.k-statement-text .k-w { opacity: .16; transition: opacity .25s; }
.k-statement-text .k-w.is-lit { opacity: 1; }
@media (max-width: 760px) { .k-statement-grid { grid-template-columns: 1fr; } .k-statement-img { max-width: 320px; } }

/* ---------- Section heads ---------- */
.k-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px) !important; }
.k-sec-head > * { margin: 0; }
.k-sec-head p { max-width: 30em; color: var(--muted); }
.k-sec-head.is-centered { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Services ---------- */
.k-services { position: relative; }
.k-svc-list { border-top: 1.5px solid var(--ink); }
.k-svc { border-bottom: 1.5px solid var(--ink); margin: 0 !important; }
.k-svc-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; align-items: center; gap: 20px; padding: 26px 0; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.k-svc-name { font-size: clamp(28px, 4vw, 52px) !important; margin: 0; transition: transform .45s var(--ease); }
.k-svc-head:hover .k-svc-name { transform: translateX(14px); }
.k-svc-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.k-svc-tags span { font-size: 14px; font-weight: 600; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 99px; white-space: nowrap; }
.k-svc-plus { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.k-svc-plus::before, .k-svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: currentColor; }
.k-svc-plus::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.k-svc.is-open .k-svc-plus { background: var(--acc); border-color: var(--acc); color: var(--onacc); transform: rotate(180deg); }
.k-svc.is-open .k-svc-plus::after { transform: rotate(0); }
.k-svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; gap: 32px; padding: 0 0 32px; margin: 0; }
.k-svc-body > * { margin: 0; }
.k-svc-body > p { color: var(--muted); max-width: 32em; }
.k-svc-img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.k-js .k-svc-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.k-js .k-svc.is-open .k-svc-drawer { grid-template-rows: 1fr; }
.k-js .k-svc-drawer > div { overflow: hidden; }
.k-svc-float { position: fixed; top: 0; left: 0; width: 260px; aspect-ratio: 4 / 5; border-radius: var(--arch) var(--arch) var(--r) var(--r); overflow: hidden; pointer-events: none; z-index: 30; opacity: 0; transform: scale(.7); transition: opacity .3s; }
.k-svc-float.is-show { opacity: 1; }
.k-svc-float img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse), (max-width: 900px) { .k-svc-float { display: none; } }
@media (max-width: 900px) { .k-svc-tags { display: none; } .k-svc-head { grid-template-columns: minmax(0, 1fr) 52px; } .k-svc-body { grid-template-columns: 1fr; } .k-svc-img { max-width: 260px; } }
@media (min-width: 901px) { .k-js .k-svc-img { display: none; } .k-js .k-svc-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Stats ---------- */
.k-stats { background: var(--c2); color: var(--on2); transition: background-color .5s, color .5s; }
.k-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.k-stats-grid > * { margin: 0; }
.k-stat { border-top: 2px solid currentColor; padding-top: 20px; }
.k-stat > * { margin: 0; }
.k-count { font-family: var(--display); font-stretch: var(--stretch); font-weight: 800; font-size: clamp(48px, 6.5vw, 96px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.k-stat p:last-child { font-weight: 600; opacity: .85; }
.k-stats .k-sample-note { color: inherit; opacity: .7; }
@media (max-width: 760px) { .k-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Work ---------- */
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.k-chip:hover { border-color: var(--ink); }
.k-chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.k-work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.k-work-grid > * { margin: 0 !important; }
.k-card { grid-column: span 4; position: relative; transition: opacity .45s, transform .6s var(--ease); }
.k-card.is-wide { grid-column: span 8; }
.k-card.is-hidden { display: none; }
.k-card.is-fade { opacity: 0; transform: translateY(24px) scale(.98); }
.k-js .k-card { cursor: pointer; }
.k-card-img { margin: 0; overflow: hidden; border-radius: var(--r); height: clamp(240px, 25vw, 360px); transition: transform .5s var(--ease); }
.k-card:nth-child(3n+2):not(.is-wide) .k-card-img { border-radius: var(--arch) var(--arch) var(--r) var(--r); }
.k-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.k-card:hover .k-card-img img { transform: scale(1.06); }
.k-card-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; align-items: baseline; }
.k-card-meta > * { margin: 0; }
.k-card-title { font-size: 20px; font-weight: 700; }
.k-card-cat { color: var(--muted); font-size: 15px; white-space: nowrap; }
@media (max-width: 900px) { .k-card, .k-card.is-wide { grid-column: span 6; } }
@media (max-width: 560px) { .k-card, .k-card.is-wide { grid-column: span 12; } }

/* ---------- Process ---------- */
.k-process { background: var(--surface); transition: background-color .4s; }
.k-process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.k-process-grid > * { margin: 0; }
.k-process-side { position: sticky; top: 110px; display: grid; gap: 22px; justify-items: start; }
.k-process-side > * { margin: 0; }
.k-process-side p { color: var(--muted); max-width: 28em; }
.k-meter { width: 100%; max-width: 360px; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.k-meter i { display: block; height: 100%; width: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
.k-steps { display: grid; gap: 18px; }
.k-steps > * { margin: 0; }
.k-step { padding: 30px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--bg); transition: opacity .5s, transform .6s var(--ease), background-color .4s, color .4s, border-color .4s; }
.k-step > * { margin: 0; }
.k-js .k-step { opacity: .45; transform: scale(.97); }
.k-js .k-step.is-on, .k-step.is-on { opacity: 1; transform: none; background: var(--c1); color: var(--on1); border-color: var(--c1); }
.k-step-n { font-weight: 700; font-size: 15px; }
.k-step h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 6px 0 10px; }
.k-step.is-on p { opacity: .85; }
@media (max-width: 860px) { .k-process-grid { grid-template-columns: 1fr; } .k-process-side { position: static; } }

/* ---------- Testimonials ---------- */
.k-slider-nav { display: flex; gap: 10px; }
.k-q-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; outline: none; max-width: var(--wrap); }
.k-q-track::-webkit-scrollbar { display: none; }
.k-q-track > * { margin: 0 !important; }
.k-q { flex: 0 0 min(560px, 86%); scroll-snap-align: start; padding: clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 26px; justify-content: space-between; }
.k-q > * { margin: 0; }
.k-q:nth-child(2n) { background: var(--c1); color: var(--on1); border-color: var(--c1); }
.k-stars { letter-spacing: 3px; color: var(--acc); }
.k-q:nth-child(2n) .k-stars { color: var(--on1); }
.k-q-text { font-family: var(--display); font-stretch: var(--stretch); font-weight: 600; font-size: clamp(21px, 2vw, 27px); line-height: 1.3; letter-spacing: -.01em; }
.k-q-who { gap: 14px; }
.k-q-who figure { margin: 0; flex: none; }
.k-q-who .wp-block-group > * { margin: 0; }
.k-q-name { font-weight: 700; }
.k-q-role { font-size: 15px; opacity: .75; }

/* ---------- Pricing ---------- */
.k-toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); }
.k-tg { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; border-radius: 99px; cursor: pointer; transition: color .3s; }
.k-tg em { font-style: normal; color: var(--acc); margin-left: 4px; }
.k-tg.is-on { color: var(--bg); }
.k-tg.is-on em { color: inherit; }
.k-tg-knob { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 99px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.k-billing { display: flex; gap: 12px; }
.k-billing > * { margin: 0; }
.k-js .k-billing { display: none; }
.k-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.k-plans > * { margin: 0 !important; }
.k-plan { padding: 34px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 20px; transition: transform .5s var(--ease); }
.k-plan > * { margin: 0; }
.k-plan:hover { transform: translateY(-6px); }
.k-plan.is-featured { background: var(--c2); color: var(--on2); border-color: var(--c2); }
.k-plan-top > * { margin: 0; }
.k-plan-name { font-size: 20px; font-weight: 700; }
.k-tag { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: var(--acc); color: var(--onacc); }
.k-price { gap: 8px; }
.k-price > * { margin: 0; }
.k-price-m, .k-price-y { font-family: var(--display); font-stretch: var(--stretch); font-weight: 800; font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.k-price-y { display: none; }
.k-price-per { font-weight: 600; opacity: .7; padding-bottom: 6px; }
.k-plan-text { opacity: .8; }
.k-plan ul { margin: 0; padding: 20px 0 0; border-top: 1.5px solid color-mix(in srgb, currentColor 18%, transparent); flex: 1; }
.k-plan.is-featured ul li::before { color: inherit; }
.k-plan.is-featured .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--on2); color: var(--c2); }
@media (max-width: 900px) { .k-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ (core Details block) ---------- */
.k-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.k-faq-grid > * { margin: 0; }
.k-faq-grid .k-muted { margin-top: 18px; }
.k-acc > * { margin: 0 !important; }
.k-acc .wp-block-details { border-bottom: 1.5px solid var(--line); }
.k-acc .wp-block-details summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 700; font-size: clamp(18px, 1.6vw, 21px); cursor: pointer; list-style: none; }
.k-acc .wp-block-details summary::-webkit-details-marker { display: none; }
.k-acc .wp-block-details summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: transform .45s var(--ease), background-color .3s; }
.k-acc .wp-block-details[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--acc); border-color: var(--acc); color: var(--onacc); }
.k-acc .wp-block-details > :not(summary) { margin: 0 50px 24px 0; color: var(--muted); }
@media (max-width: 860px) { .k-faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.k-contact { background: var(--ink); color: var(--bg); transition: background-color .4s, color .4s; }
.k-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.k-contact-grid > * { margin: 0; }
.k-contact h2 { font-size: clamp(40px, 5.6vw, 76px); }
.k-contact-copy > * { margin: 0; }
.k-contact-copy > p { margin-top: 22px; opacity: .75; max-width: 30em; }
.k-contact-list { list-style: none; margin: 36px 0 0 !important; padding: 0; display: grid; gap: 14px; }
.k-contact-list li { display: flex; gap: 16px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); padding-top: 14px; }
.k-contact-list strong { width: 72px; flex: none; font-weight: 400; opacity: .6; }
@media (max-width: 860px) { .k-contact-grid { grid-template-columns: 1fr; } }

/* Form: Kontur preview + Contact Form 7 */
.k-form-wrap { margin: 0; }
.k-form, .k-form-wrap .wpcf7 { background: var(--bg); color: var(--ink); padding: clamp(22px, 3vw, 40px); border-radius: var(--r); }
.k-form-wrap .wpcf7 .k-form, .k-form-wrap.k-form .wpcf7 { padding: 0; background: none; }
.k-form, .k-form-wrap .wpcf7-form { display: grid; gap: 18px; }
.k-form-wrap .wpcf7-form > p { margin: 0; }
.k-field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.k-field label, .k-label { font-weight: 700; font-size: 15px; padding: 0; }
.k-field br { display: none; }
.k-field input:not([type="radio"]):not([type="checkbox"]), .k-field select, .k-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
	border: 1.5px solid var(--line); border-radius: calc(var(--r) * .6); padding: 13px 16px; min-height: 50px;
	transition: border-color .25s, box-shadow .25s; box-sizing: border-box;
}
.k-field textarea { resize: vertical; min-height: 120px; }
.k-field input:focus, .k-field select:focus, .k-field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 30%, transparent); }
.k-field.is-bad input, .k-field.is-bad textarea, .k-field .wpcf7-not-valid { border-color: #d23b1c !important; }
.wpcf7-not-valid-tip { color: #d23b1c; font-size: 14px; font-weight: 600; margin-top: 6px; }
html[data-mode="dark"] .wpcf7-not-valid-tip { color: #ff8a6b; }
/* Budget chips (radio buttons) */
.k-budget, .k-budget .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.k-budget .wpcf7-list-item { margin: 0; }
.k-budget label { position: relative; display: inline-flex; cursor: pointer; font-weight: 600; font-size: 15px; }
.k-budget input { position: absolute; opacity: 0; pointer-events: none; }
.k-budget label span, .k-budget .wpcf7-list-item-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line); transition: background-color .25s, color .25s, border-color .25s; }
.k-budget label:hover span, .k-budget label:hover .wpcf7-list-item-label { border-color: var(--ink); }
.k-budget input:checked + span, .k-budget input:checked + .wpcf7-list-item-label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.k-budget input:focus-visible + span, .k-budget input:focus-visible + .wpcf7-list-item-label { outline: 3px solid var(--acc); outline-offset: 2px; }
.k-submit, .k-form-wrap .wpcf7-submit {
	justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
	border: 0; border-radius: calc(var(--r) + 40px); background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer;
	transition: background-color .3s, color .3s;
}
.k-submit:hover, .k-form-wrap .wpcf7-submit:hover { background: var(--c2); color: var(--on2); }
.k-submit::after { content: "→"; }
.k-form-note { font-size: 14px; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.k-form-wrap .wpcf7-response-output { margin: 0 !important; border-radius: 12px; padding: 12px 14px !important; }
.k-form-wrap .wpcf7-spinner { margin: 0 0 0 10px; }

/* ---------- CTA band ---------- */
.k-cta { background: var(--c2); color: var(--on2); }
.k-cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.k-cta-inner > * { margin: 0; }
.k-cta-inner .wp-block-buttons { margin-top: 26px; }
.k-cta .is-style-outline .wp-block-button__link:hover { background: var(--on2); color: var(--c2); border-color: var(--on2); }
@media (max-width: 860px) { .k-cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.k-site-footer { margin: 0; }
.k-footer { background: var(--c1); color: var(--on1); padding: clamp(56px, 7vw, 96px) var(--gutter) 28px; overflow: hidden; transition: background-color .5s, color .5s; }
.k-footer > * { max-width: var(--wrap); margin-inline: auto; }
.k-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.k-footer-top > * { margin: 0; }
.k-footer-news > * { margin: 0 0 14px; max-width: 30em; }
.k-f-h { font-weight: 700; margin-bottom: 14px; }
.k-f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.k-f-cols > * { margin: 0; }
.k-f-cols .wp-block-group > * { margin: 0; }
.k-f-links { list-style: none; padding: 0; margin: 0; }
.k-f-links a { display: block; text-decoration: none; padding: 5px 0; opacity: .85; }
.k-f-links a:hover { opacity: 1; text-decoration: underline; }
.k-f-bottom { margin-top: clamp(40px, 6vw, 72px) !important; font-size: 14px; border-top: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 20px; gap: 12px; }
.k-f-bottom > * { margin: 0; }
.k-totop a { text-decoration: none; font-weight: 700; }
@media (max-width: 760px) { .k-footer-top { grid-template-columns: 1fr; } .k-f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Inner pages ---------- */
.k-page-hero { background: var(--c1); color: var(--on1); padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 80px); }
.k-page-hero > * { margin-block: 0; }
.k-page-hero > * + * { margin-top: 18px; }
.k-page-title { font-size: clamp(40px, 6vw, 88px) !important; line-height: .98; letter-spacing: -.035em; }
.k-page-hero a { color: inherit; }
.k-pill-terms a { display: inline-flex; padding: 6px 14px; border: 1.5px solid currentColor; border-radius: 99px; font-weight: 600; font-size: 14px; text-decoration: none; }
.k-pill-terms .wp-block-post-terms__separator { display: none; }
.k-post-meta { gap: 8px 18px; font-size: 15px; opacity: .85; }
.k-post-meta > * { margin: 0; }
.k-post-meta .wp-block-post-date { color: inherit; }
.k-content > * + * { margin-top: 1.4em; }
.k-feature-img { margin-bottom: clamp(32px, 5vw, 64px) !important; }
.k-feature-img img { border-radius: var(--r); width: 100%; object-fit: cover; }
.k-content .wp-block-post-content > * + * { margin-top: 1.2em; }
.k-content .wp-block-post-content h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 1.6em; }
.k-content .wp-block-post-content h3 { font-size: 26px; margin-top: 1.4em; }
.k-content .wp-block-post-content a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--acc); }
.k-tags a { display: inline-flex; margin: 0 6px 6px 0; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 14px; text-decoration: none; }
.k-tags .wp-block-post-terms__separator { display: none; }
.k-post-nav { border-top: 1.5px solid var(--line); padding-top: 24px; gap: 18px; }
.k-post-nav a { font-weight: 700; text-decoration: none; }
.k-landing .wp-block-post-content > * { margin-block: 0; }

/* Post grid (blog, archive, search, journal pattern) */
.k-posts .wp-block-post-template { gap: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 26px); }
.k-posts .wp-block-post > * { margin: 0 0 10px; }
.k-post-img { overflow: hidden; border-radius: var(--r); margin-bottom: 16px !important; }
.k-posts .wp-block-post:nth-child(3n+2) .k-post-img { border-radius: var(--arch) var(--arch) var(--r) var(--r); }
.k-post-img img { transition: transform 1s var(--ease); }
.k-post-img:hover img { transform: scale(1.05); }
.k-post-img:not(:has(img)) { display: none; }
.k-post-cat a { color: var(--muted); text-decoration: none; }
.k-post-title { font-size: clamp(22px, 2vw, 26px) !important; line-height: 1.15; }
.k-post-title a:hover { text-decoration: underline; text-decoration-color: var(--acc); }
.k-post-excerpt { color: var(--muted); }
.k-post-excerpt .wp-block-post-excerpt__more-text { display: none; }
.k-pagination { margin-top: clamp(40px, 5vw, 64px) !important; padding-top: 24px; border-top: 1.5px solid var(--line); font-weight: 700; }
.k-pagination a, .k-pagination .current { text-decoration: none; padding: 8px 14px; border-radius: 99px; }
.k-pagination .current { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .k-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .k-posts .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* Search + 404 */
.k-search .wp-block-search__inside-wrapper { border: 1.5px solid currentColor; border-radius: 99px; padding: 5px; background: transparent; max-width: 520px; }
.k-search .wp-block-search__input { border: 0; background: transparent; color: inherit; padding: 0 16px; font: inherit; min-height: 44px; }
.k-search .wp-block-search__input::placeholder { color: inherit; opacity: .6; }
.k-search .wp-block-search__button { border-radius: 99px; margin: 0; min-height: 44px; padding: 0 22px; }
.k-404-num { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(100px, 22vw, 280px); line-height: .8; letter-spacing: -.05em; margin: 0; }
.k-404 .wp-block-buttons { margin-top: 26px; }


/* Comments */
.k-comments { margin-top: clamp(48px, 6vw, 80px) !important; padding-top: 32px; border-top: 1.5px solid var(--line); }
.k-comments .wp-block-comment-template { padding: 0; list-style: none; }
.k-comments .wp-block-comment-template ol { list-style: none; padding-left: clamp(16px, 4vw, 56px); }
.k-comment { gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.k-comment-avatar img { border-radius: 50%; }
.k-comment-meta { gap: 6px 14px; font-size: 14px; }
.k-comment-meta > * { margin: 0; }
.k-comment-meta .wp-block-comment-author-name { font-weight: 700; font-size: 16px; }
.k-comments .comment-form input:not([type="submit"]):not([type="checkbox"]), .k-comments .comment-form textarea {
	width: 100%; font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: calc(var(--r) * .6); background: var(--surface); color: var(--ink); box-sizing: border-box;
}
.k-comments .comment-form .submit { min-height: 52px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.bypostauthor > .k-comment .wp-block-comment-author-name::after { content: "★"; margin-left: 6px; color: var(--acc); }

/* WordPress content basics */
.wp-block-image figcaption, .wp-element-caption { text-align: center; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.sticky .k-post-title::before { content: "★ "; color: var(--acc); }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--line); padding: 10px 12px; }
.wp-block-gallery img { border-radius: calc(var(--r) * .6); }

/* ---------- Runtime UI (added by kontur.js) ---------- */
.k-loader { position: fixed; inset: 0; z-index: 100000; background: var(--c1); color: var(--on1); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter); transition: transform 1s var(--ease); }
.k-loader.is-done { transform: translateY(-100%); }
.k-loader-mark { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(48px, 11vw, 170px); line-height: .9; letter-spacing: -.03em; }
.k-loader-count { font-weight: 700; font-size: clamp(20px, 3vw, 36px); font-variant-numeric: tabular-nums; }
.k-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); z-index: 99999; pointer-events: none; }
.k-lightbox { position: fixed; inset: 0; z-index: 99990; background: color-mix(in srgb, #0b0b0c 92%, transparent); color: #fff; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 24px; gap: 12px; opacity: 0; transition: opacity .35s; }
.k-lightbox.is-show { opacity: 1; }
.k-lightbox[hidden] { display: none; }
.k-lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.k-lightbox img { max-height: 76vh; width: auto; border-radius: var(--r); transform: scale(.94); transition: transform .5s var(--ease); }
.k-lightbox.is-show img { transform: none; }
.k-lightbox figcaption { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.k-lightbox figcaption b { font-size: 22px; }
.k-lightbox figcaption span { opacity: .7; }
.k-lb-close { position: absolute; top: 20px; right: 20px; }
.k-lightbox .k-round:hover { background: #fff; color: #111; border-color: #fff; }
@media (max-width: 600px) { .k-lightbox { grid-template-columns: 1fr; padding: 70px 14px; } .k-lb-prev, .k-lb-next { position: absolute; bottom: 22px; } .k-lb-prev { left: calc(50% - 62px); } .k-lb-next { right: calc(50% - 62px); } }
.k-toast { position: fixed; left: 50%; bottom: 28px; z-index: 99995; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 99px; font-weight: 600; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.k-toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* Style switcher */
.k-sw-open { position: fixed; right: 0; top: 50%; z-index: 99970; width: 54px; height: 54px; border: 0; border-radius: 14px 0 0 14px; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); transform: translateY(-50%); cursor: pointer; }
.k-sw-open svg { width: 24px; height: 24px; transition: transform .6s var(--ease); }
.k-sw-open:hover svg { transform: rotate(180deg); }
@media (max-width: 700px) { .k-sw-open { top: auto; bottom: 96px; transform: none; width: 46px; height: 46px; } }
.k-sw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99975; width: min(340px, 100%); background: var(--surface); color: var(--ink); padding: 24px; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s; display: flex; flex-direction: column; gap: 22px; }
.k-sw.is-open { transform: none; visibility: visible; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .35); transition: transform .55s var(--ease); }
.k-sw-head { display: flex; justify-content: space-between; align-items: center; }
.k-sw-head b { font-family: var(--display); font-stretch: var(--stretch); font-size: 24px; }
.k-sw-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.k-sw-group p { font-weight: 700; font-size: 14px; margin: 0 0 10px; color: var(--muted); }
.k-sw-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.k-sw-sw { width: 48px; height: 48px; border-radius: 50%; border: 3px solid transparent; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; cursor: pointer; transition: transform .3s var(--ease); }
.k-sw-sw:hover { transform: scale(1.08); }
.k-sw-sw.is-on { border-color: var(--ink); }
.k-sw-sw i { display: block; }
.k-sw-sw i:first-child { grid-row: span 2; }
.k-sw-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line); }
.k-sw-seg button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s; }
.k-sw-seg button.is-on { background: var(--ink); color: var(--bg); }
.k-sw-reset { min-height: 46px; border-radius: 12px; border: 1.5px dashed var(--line); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

/* Reveal on scroll */
.k-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.k-reveal.is-in { opacity: 1; transform: none; }
html[data-motion="off"] .k-reveal, .k-motion-off .k-reveal { opacity: 1; transform: none; transition: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.k-reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- Editor: show the hidden data so it can be edited ---------- */
.editor-styles-wrapper .k-htab-data { display: block; margin-top: 10px; padding: 10px; border: 1.5px dashed currentColor; border-radius: 10px; font-size: 13px; }
.editor-styles-wrapper .k-htab-data::before { content: "Cycling word · card title · card text · image"; display: block; font-weight: 700; opacity: .7; margin-bottom: 6px; }
.editor-styles-wrapper .k-htab { opacity: 1; }
.editor-styles-wrapper .k-hero-frame img { position: static; height: 100%; }
.editor-styles-wrapper .k-price-y { display: block; opacity: .55; }
.editor-styles-wrapper .k-price-y::after { content: " /yr"; font-size: 14px; }
.editor-styles-wrapper .k-billing { display: flex; }
.editor-styles-wrapper .k-site-header { position: relative !important; color: var(--ink) !important; }
.editor-styles-wrapper .k-q-track { overflow-x: auto; }
.editor-styles-wrapper .k-svc-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; }

/* 404 uses the support colour so it never merges with the field-coloured footer */
.k-page-hero.k-404 { background: var(--c2); color: var(--on2); padding-bottom: clamp(64px, 9vw, 120px); }
.k-404 .wp-block-button__link { background: var(--on2); color: var(--c2); }
.k-404 .k-search .wp-block-search__button { background: var(--on2); color: var(--c2); }
