/* ==========================================================================
   Kodelink theme — main stylesheet
   Tokens → base → layout → header/footer → patterns → motion → responsive
   ========================================================================== */

:root {
	--kl-navy: #0B0A1F;
	--kl-navy-2: #120F33;
	--kl-surface: rgba(255, 255, 255, 0.03);
	--kl-surface-hover: rgba(255, 255, 255, 0.06);
	--kl-line: rgba(255, 255, 255, 0.09);
	--kl-line-strong: rgba(255, 255, 255, 0.18);
	--kl-text: #EDEBFA;
	--kl-text-2: #B9B6D6;
	--kl-text-3: #A9A6C7;
	--kl-white: #FFFFFF;
	--kl-teal: #22D3B6;
	--kl-teal-light: #7FE9D6;
	--kl-blue: #22A6F2;
	--kl-lav: #A78BDB;
	--kl-lav-light: #C3ADEB;
	--kl-pink: #E7B4CF;
	--kl-grad: linear-gradient(100deg, #22D3B6 0%, #22A6F2 45%, #A78BDB 80%, #E7B4CF 100%);
	--kl-grad-btn: linear-gradient(100deg, #22D3B6, #22A6F2);
	--kl-font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--kl-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--kl-radius-lg: 26px;
	--kl-radius-md: 18px;
	--kl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--kl-container: 1240px;
	--kl-gutter: clamp(20px, 4vw, 32px);
	--kl-section-y: clamp(72px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--kl-navy);
	color: var(--kl-text);
	font-family: var(--kl-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--kl-teal); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--kl-teal-light); }
:focus-visible { outline: 2px solid var(--kl-teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--kl-font-display); color: var(--kl-white); line-height: 1.12; letter-spacing: -0.02em; }

.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;
}
.kl-skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
	background: var(--kl-teal); color: var(--kl-navy); border-radius: 10px; font-weight: 700;
}
.kl-skip-link:focus { top: 12px; color: var(--kl-navy); }

/* Inside homepage sections, spacing comes from flex/grid gaps, not element margins. */
.kl-section :is(h1, h2, h3, p, ul, figure, details) { margin: 0; }

/* ---------- Layout ---------- */
.kl-container {
	width: 100%;
	max-width: calc(var(--kl-container) + 2 * var(--kl-gutter));
	margin-inline: auto;
	padding-inline: var(--kl-gutter);
}
.kl-section { position: relative; padding-block: var(--kl-section-y); }
.kl-section--tight { padding-top: 24px; }
.kl-section--flush { padding-top: 0; }
.kl-section--band { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)); border-top: 1px solid rgba(255,255,255,0.06); }
.kl-stack { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.kl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.kl-split--top { align-items: start; }
.kl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.kl-main--full { overflow: hidden; }
.kl-page { padding-block: clamp(48px, 7vw, 88px) var(--kl-section-y); }
.kl-page__title { font-size: clamp(34px, 5vw, 52px); margin: 0 0 28px; }
.kl-entry__content > * + * { margin-top: 1.1em; }
.kl-entry__content h2 { margin-top: 1.8em; }

/* ---------- Type ---------- */
.kl-h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.kl-h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.kl-h2--sm { font-size: clamp(28px, 3.4vw, 44px); }
.kl-h1 em, .kl-h2 em {
	font-style: normal;
	background: var(--kl-grad);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.kl-h1 em { animation: kl-shift 9s linear infinite; background-size: 300% 100%; background-image: linear-gradient(100deg, #22D3B6, #22A6F2, #A78BDB, #E7B4CF, #22D3B6); }
.kl-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--kl-text-2); max-width: 60ch; }
.kl-eyebrow { font-family: var(--kl-font-display); font-weight: 700; font-size: 15px; color: var(--kl-teal); }
.kl-eyebrow--pink { color: var(--kl-pink); }

.kl-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.kl-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.kl-head__main { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.kl-head__side { max-width: 400px; color: var(--kl-text-2); }
.kl-head--center { text-align: center; align-items: center; max-width: 760px; margin-inline: auto; }

/* ---------- Buttons (theme links + core button blocks) ---------- */
.kl-btn,
.wp-block-button[class*="kl-b-"] .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: 999px;
	font-family: var(--kl-font-display); font-weight: 700; font-size: 16px; line-height: 1;
	border: 1px solid transparent; text-decoration: none;
	transition: transform 0.3s var(--kl-ease), box-shadow 0.3s, background-color 0.3s, color 0.3s;
}
.kl-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.kl-btn--primary,
.wp-block-button.kl-b-primary .wp-block-button__link { background: var(--kl-grad-btn); color: var(--kl-navy); }
.kl-btn--ghost,
.wp-block-button.kl-b-ghost .wp-block-button__link { background: rgba(255,255,255,0.04); border-color: var(--kl-line-strong); color: var(--kl-text); }
.wp-block-button.kl-b-pink .wp-block-button__link { background: var(--kl-pink); color: #1A1640; }
.kl-btn--primary:hover,
.wp-block-button.kl-b-primary .wp-block-button__link:hover,
.wp-block-button.kl-b-pink .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(34, 211, 182, 0.7); color: var(--kl-navy); }
.kl-btn--ghost:hover,
.wp-block-button.kl-b-ghost .wp-block-button__link:hover { background: rgba(255,255,255,0.1); color: var(--kl-white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.kl-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 10, 31, 0.72);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255,255,255,0.07);
	transition: background-color 0.3s;
}
.admin-bar .kl-header { top: 32px; }
.kl-header.is-scrolled { background: rgba(11, 10, 31, 0.92); }
.kl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.kl-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--kl-white); }
.kl-logo:hover { color: var(--kl-white); }
.kl-logo__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--kl-grad-btn); position: relative; }
.kl-logo__mark::after { content: "K"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--kl-font-display); font-weight: 800; color: var(--kl-navy); }
.kl-logo__text { font-family: var(--kl-font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.custom-logo { max-height: 40px; width: auto; }
.kl-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.kl-menu a { color: #CFCCE8; font-weight: 500; font-size: 15px; }
.kl-menu a:hover, .kl-menu .current-menu-item > a { color: var(--kl-white); }
.kl-menu .sub-menu { display: none; }
.kl-header__actions { display: flex; align-items: center; gap: 12px; }
.kl-cart-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--kl-text); border: 1px solid var(--kl-line); }
.kl-cart-link:hover { color: var(--kl-white); border-color: var(--kl-line-strong); }
.kl-nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--kl-line-strong); background: transparent; cursor: pointer; }
.kl-nav-toggle__bars, .kl-nav-toggle__bars::before, .kl-nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: var(--kl-white); margin: 0 auto; position: relative; transition: transform 0.3s;
}
.kl-nav-toggle__bars::before, .kl-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.kl-nav-toggle__bars::before { top: -6px; }
.kl-nav-toggle__bars::after { top: 6px; }
.kl-nav-toggle[aria-expanded="true"] .kl-nav-toggle__bars { background: transparent; }
.kl-nav-toggle[aria-expanded="true"] .kl-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.kl-nav-toggle[aria-expanded="true"] .kl-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Footer ---------- */
.kl-footer { background: #08071A; border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 0 28px; }
.kl-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.kl-footer__brand p { color: var(--kl-text-3); font-size: 15px; max-width: 340px; margin: 16px 0 0; }
.kl-footer__title { font-size: 16px; margin: 0 0 14px; }
.kl-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #CFCCE8; }
.kl-footer__list a { color: #CFCCE8; }
.kl-footer__list a:hover { color: var(--kl-white); }
.kl-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 14px; color: var(--kl-text-3); }
.kl-footer__bottom p { margin: 0; }
.kl-footer__bottom a { color: var(--kl-text-3); }

/* ---------- Icons (CSS masks, colour = currentColor) ---------- */
.kl-icon { display: inline-block; width: 24px; height: 24px; background-color: currentColor; -webkit-mask: var(--kl-i) center / contain no-repeat; mask: var(--kl-i) center / contain no-repeat; flex: none; }
:root {
	--kl-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	--kl-i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2l2.2 6.6L21 11l-6.8 2.4L12 20l-2.2-6.6L3 11l6.8-2.4z'/%3E%3C/svg%3E");
	--kl-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
	--kl-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--kl-i-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M4 18h5l2-5V6H4v7h3zM13 18h5l2-5V6h-7v7h3z'/%3E%3C/svg%3E");
	--kl-i-plus-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3B6' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.kl-icon--web { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 8h18M8 21h8'/%3E%3C/svg%3E"); }
.kl-icon--trend { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E"); }
.kl-icon--insta { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E"); }
.kl-icon--pin { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.kl-icon--server { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.kl-icon--calendar { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E"); }
.kl-icon--card { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.kl-icon--mail { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4zM4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.kl-icon--search { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5'/%3E%3C/svg%3E"); }
.kl-icon--chat { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.5-4A8 8 0 1 1 9 19.5z'/%3E%3C/svg%3E"); }
.kl-icon--nfc { --kl-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7a7 7 0 0 1 0 10M12 4a11 11 0 0 1 0 16M4 10a3 3 0 0 1 0 4'/%3E%3C/svg%3E"); }

.kl-icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.kl-icon-tile--grad { background: var(--kl-grad-btn); color: var(--kl-navy); }
.kl-icon-tile--teal { background: rgba(34, 211, 182, 0.16); color: var(--kl-teal); }
.kl-icon-tile--blue { background: rgba(34, 166, 242, 0.16); color: var(--kl-blue); }
.kl-icon-tile--lav { background: rgba(167, 139, 219, 0.2); color: var(--kl-lav-light); }
.kl-icon-tile--pink { background: rgba(231, 180, 207, 0.16); color: var(--kl-pink); }

/* ---------- Hero ---------- */
.kl-hero { padding-top: clamp(56px, 8vw, 96px); }
.kl-hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kl-orb { position: absolute; border-radius: 50%; filter: blur(22px); }
.kl-orb--teal { width: 620px; height: 620px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(34,211,182,0.42), rgba(34,211,182,0) 65%); animation: kl-float 14s ease-in-out infinite; }
.kl-orb--blue { width: 700px; height: 700px; right: -240px; top: 20px; background: radial-gradient(circle, rgba(34,166,242,0.38), rgba(167,139,219,0.18) 45%, rgba(0,0,0,0) 70%); animation: kl-float-2 18s ease-in-out infinite; }
.kl-gridlines {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.kl-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.kl-hero__copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.kl-pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
	border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
	font-size: 14px; color: #CFCCE8;
}
.kl-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kl-teal); animation: kl-pulse 1.8s ease-out infinite; }
.kl-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--kl-text-3); }
.kl-checks li, .kl-check { display: flex; gap: 10px; align-items: flex-start; }
.kl-checks li::before, .kl-check::before {
	content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--kl-teal);
	-webkit-mask: var(--kl-i-check) center / contain no-repeat; mask: var(--kl-i-check) center / contain no-repeat;
}

.kl-hero__visual { position: relative; min-height: 520px; }
.kl-ring { position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(167,139,219,0.35); animation: kl-spin 22s linear infinite; }
.kl-ring--inner { inset: 70px; border: 1px solid rgba(34,211,182,0.18); animation-duration: 30s; animation-direction: reverse; }
.kl-console {
	position: absolute; left: 20px; right: 20px; top: 50px; border-radius: 22px; overflow: hidden;
	border: 1px solid rgba(255,255,255,0.12);
	background: linear-gradient(160deg, rgba(31,28,70,0.92), rgba(15,13,40,0.95));
	box-shadow: 0 40px 90px -30px rgba(34,166,242,0.5);
}
.kl-console__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: var(--kl-text-3); }
.kl-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--kl-pink); }
.kl-console__bar i:nth-child(2) { background: var(--kl-lav); }
.kl-console__bar i:nth-child(3) { background: var(--kl-teal); }
.kl-console__bar span { margin-left: 10px; }
.kl-console__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.kl-console__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--kl-font-display); color: var(--kl-white); }
.kl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--kl-teal); }
.kl-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kl-teal); animation: kl-pulse 1.8s ease-out infinite; }
.kl-feed { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid; opacity: 0; animation: kl-feed 8s ease-in-out infinite; }
.kl-feed > .kl-icon { width: 22px; height: 22px; margin-inline: 4px; }
.kl-feed b { display: block; color: var(--kl-white); font-size: 14px; font-weight: 600; }
.kl-feed small { font-size: 12px; color: var(--kl-text-3); }
.kl-feed--teal { background: rgba(34,211,182,0.1); border-color: rgba(34,211,182,0.25); color: var(--kl-teal); }
.kl-feed--blue { background: rgba(34,166,242,0.1); border-color: rgba(34,166,242,0.25); color: var(--kl-blue); animation-delay: 1.2s; }
.kl-feed--lav { background: rgba(167,139,219,0.12); border-color: rgba(167,139,219,0.3); color: var(--kl-lav-light); animation-delay: 2.4s; }
.kl-feed--pink { background: rgba(231,180,207,0.1); border-color: rgba(231,180,207,0.28); color: var(--kl-pink); animation-delay: 3.6s; }
.kl-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 6px; }
.kl-bars i { flex: 1; height: 100%; border-radius: 6px; transform-origin: bottom; animation: kl-bar 2.6s ease-in-out infinite; background: linear-gradient(var(--kl-teal), rgba(34,211,182,0.15)); }
.kl-bars i:nth-child(2) { animation-delay: 0.3s; background: linear-gradient(var(--kl-blue), rgba(34,166,242,0.15)); }
.kl-bars i:nth-child(3) { animation-delay: 0.6s; background: linear-gradient(var(--kl-lav), rgba(167,139,219,0.15)); }
.kl-bars i:nth-child(4) { animation-delay: 0.9s; }
.kl-bars i:nth-child(5) { animation-delay: 1.2s; background: linear-gradient(var(--kl-pink), rgba(231,180,207,0.15)); }
.kl-bars i:nth-child(6) { animation-delay: 1.5s; background: linear-gradient(var(--kl-blue), rgba(34,166,242,0.15)); }
.kl-bars i:nth-child(7) { animation-delay: 1.8s; background: linear-gradient(var(--kl-lav), rgba(167,139,219,0.15)); }

/* ---------- Clients marquee ---------- */
.kl-clients { padding: 30px 0; border-block: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.kl-clients__label { margin: 0 0 18px; text-align: center; font-size: 14px; color: var(--kl-text-3); }
.kl-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.kl-marquee__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; gap: 72px; animation: kl-marquee 32s linear infinite; }
.kl-marquee:hover .kl-marquee__track { animation-play-state: paused; }
.kl-marquee__track li { font-family: var(--kl-font-display); font-size: 22px; font-weight: 700; color: #8E8AB4; white-space: nowrap; }

/* ---------- Cards ---------- */
.kl-card {
	position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px;
	border-radius: var(--kl-radius-lg); border: 1px solid var(--kl-line); background: var(--kl-surface);
	transition: transform 0.45s var(--kl-ease), border-color 0.45s, background-color 0.45s, box-shadow 0.45s;
}
.kl-card:hover { transform: translateY(-6px); border-color: rgba(34,211,182,0.5); background: var(--kl-surface-hover); box-shadow: 0 30px 60px -30px rgba(34,166,242,0.55); }
.kl-card h3 { font-size: 23px; font-weight: 700; }
.kl-card p { color: var(--kl-text-2); font-size: 15.5px; }
.kl-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kl-card--wide { grid-column: span 2; }
.kl-card--feature { min-height: 340px; justify-content: flex-end; overflow: hidden; }
.kl-card--feature::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,182,0.28), transparent 65%); pointer-events: none; }
.kl-card--feature .kl-icon-tile { position: absolute; top: 32px; left: 32px; }
.kl-card--feature h3 { font-size: 30px; }
.kl-card--feature p { max-width: 560px; font-size: 16px; }
.kl-card--row { flex-direction: row; align-items: center; gap: 22px; background: linear-gradient(120deg, rgba(167,139,219,0.14), rgba(34,166,242,0.08)); }
.kl-card__text { display: flex; flex-direction: column; gap: 10px; }
.kl-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kl-tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(34,211,182,0.12); color: var(--kl-teal-light); }

/* ---------- Why (orbit) ---------- */
.kl-orbit { position: relative; height: 520px; display: grid; place-items: center; }
.kl-orbit__ring { position: absolute; border-radius: 50%; }
.kl-orbit__ring--outer { width: 440px; height: 440px; border: 1px solid rgba(255,255,255,0.08); }
.kl-orbit__ring--inner { width: 300px; height: 300px; border: 1px dashed rgba(34,211,182,0.3); }
.kl-orbit__core {
	position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 34px; display: grid; place-items: center;
	background: linear-gradient(135deg, #22D3B6, #22A6F2 60%, #A78BDB); box-shadow: 0 30px 70px -20px rgba(34,166,242,0.8);
	font-family: var(--kl-font-display); font-weight: 800; font-size: 17px; letter-spacing: 0.04em; color: var(--kl-navy);
}
.kl-orbit__spin { position: absolute; width: 440px; height: 440px; animation: kl-spin 36s linear infinite; }
.kl-chip {
	position: absolute; width: 116px; padding: 10px 0; text-align: center; border-radius: 999px;
	background: #1A1740; border: 1px solid rgba(34,211,182,0.45); font-size: 14px; font-weight: 600; color: var(--kl-text);
	animation: kl-spin 36s linear infinite reverse;
}
.kl-chip--1 { left: 162px; top: -21px; border-color: rgba(34,211,182,0.45); }
.kl-chip--2 { left: 334px; top: 62px; border-color: rgba(34,166,242,0.45); }
.kl-chip--3 { left: 376px; top: 248px; border-color: rgba(231,180,207,0.45); }
.kl-chip--4 { left: 257px; top: 397px; border-color: rgba(167,139,219,0.45); }
.kl-chip--5 { left: 67px; top: 397px; border-color: rgba(231,180,207,0.45); }
.kl-chip--6 { left: -52px; top: 248px; border-color: rgba(34,211,182,0.45); }
.kl-chip--7 { left: -10px; top: 62px; border-color: rgba(34,166,242,0.45); }
.kl-points { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 10px; }
.kl-point { padding: 18px 20px 18px 54px; border-radius: var(--kl-radius-md); background: var(--kl-surface); border: 1px solid var(--kl-line); position: relative; }
.kl-point::before { content: ""; position: absolute; left: 20px; top: 21px; width: 20px; height: 20px; background: var(--kl-teal); -webkit-mask: var(--kl-i-arrow) center / contain no-repeat; mask: var(--kl-i-arrow) center / contain no-repeat; }
.kl-point:nth-child(2)::before { background: var(--kl-blue); }
.kl-point:nth-child(3)::before { background: var(--kl-lav); }
.kl-point h3 { font-size: 17px; font-family: var(--kl-font-body); font-weight: 600; letter-spacing: 0; }
.kl-point p { font-size: 15px; color: var(--kl-text-3); }

/* ---------- Process ---------- */
.kl-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: kl-step; }
.kl-steps::before, .kl-steps::after { content: ""; position: absolute; left: 32px; right: 8%; top: 31px; height: 2px; background: rgba(255,255,255,0.08); }
.kl-steps::after { background: var(--kl-grad); transform-origin: left; transform: scaleX(0); transition: transform 2.2s cubic-bezier(0.6, 0, 0.2, 1) 0.3s; }
.kl-steps.is-visible::after { transform: scaleX(1); }
.kl-step { position: relative; display: flex; flex-direction: column; gap: 14px; counter-increment: kl-step; }
.kl-step::before {
	content: counter(kl-step); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
	background: var(--kl-navy); border: 2px solid var(--kl-teal); color: var(--kl-teal);
	font-family: var(--kl-font-display); font-weight: 800; font-size: 20px; position: relative; z-index: 1;
}
.kl-step:nth-child(2)::before { border-color: var(--kl-blue); color: var(--kl-blue); }
.kl-step:nth-child(3)::before { border-color: var(--kl-lav); color: var(--kl-lav-light); }
.kl-step:nth-child(4)::before { border-color: var(--kl-pink); color: var(--kl-pink); }
.kl-step h3 { font-size: 22px; }
.kl-step p { font-size: 15.5px; color: var(--kl-text-2); }

/* ---------- Pricing ---------- */
.kl-price { gap: 16px; }
.kl-price h3 { font-size: 26px; }
.kl-price__kind { font-size: 14px; font-weight: 600; color: var(--kl-text-3) !important; }
.kl-price__amount { font-family: var(--kl-font-display); font-size: 32px !important; font-weight: 800; color: var(--kl-teal) !important; margin-bottom: 6px !important; }
.kl-price__amount--lav { color: var(--kl-lav-light) !important; }
.kl-price .kl-check { color: #CFCCE8; font-size: 15px; }
.kl-price__cta { margin-top: auto !important; padding-top: 12px; }
.kl-price__cta .wp-block-button, .kl-price__cta .wp-block-button__link { width: 100%; }
.kl-price--featured { border-color: rgba(34,211,182,0.5); background: linear-gradient(160deg, rgba(34,211,182,0.14), rgba(34,166,242,0.08)); box-shadow: 0 30px 70px -35px rgba(34,211,182,0.7); }

/* ---------- NFC band ---------- */
.kl-nfc-band {
	position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center;
	padding: clamp(32px, 5vw, 56px); border-radius: 34px; border: 1px solid rgba(255,255,255,0.1);
	background: linear-gradient(125deg, #1A1640 0%, #13254A 55%, #123A47 100%);
}
.kl-nfc-band .kl-lead { color: #CFCCE8; }
.kl-price-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kl-price-chips li { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.07); font-size: 14px; }
.kl-price-chips b { color: var(--kl-teal); }
.kl-tapcard { position: relative; height: 380px; display: grid; place-items: center; }
.kl-ripple { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(34,211,182,0.6); animation: kl-ripple 2.4s ease-out infinite; }
.kl-ripple--2 { border-color: rgba(34,166,242,0.6); animation-delay: 0.8s; }
.kl-ripple--3 { border-color: rgba(231,180,207,0.6); animation-delay: 1.6s; }
.kl-tapcard__card {
	position: relative; width: 300px; max-width: 90%; aspect-ratio: 300 / 190; border-radius: 20px; padding: 24px;
	display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-8deg);
	background: linear-gradient(135deg, #0B0A1F, #241F55); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.kl-tapcard__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--kl-font-display); letter-spacing: 0.04em; color: var(--kl-white); }
.kl-tapcard__top .kl-icon { color: var(--kl-teal); width: 30px; height: 30px; }
.kl-tapcard__title { margin: 0; font-family: var(--kl-font-display); font-size: 20px; font-weight: 700; color: var(--kl-white); }
.kl-tapcard__hint { margin: 4px 0 0; font-size: 13px; color: var(--kl-text-3); }

/* ---------- Testimonials ---------- */
.kl-quote::before { content: ""; width: 34px; height: 34px; background: var(--kl-teal); -webkit-mask: var(--kl-i-quote) center / contain no-repeat; mask: var(--kl-i-quote) center / contain no-repeat; }
.kl-quote:nth-child(2)::before { background: var(--kl-blue); }
.kl-quote:nth-child(3)::before { background: var(--kl-lav-light); }
.kl-quote .kl-quote__text { font-size: 17px; color: var(--kl-text); }
.kl-quote__name { margin-top: auto !important; font-size: 14px; color: var(--kl-text-3) !important; }
.kl-quote__name strong { color: var(--kl-white); font-size: 16px; }

/* ---------- FAQ (core/details) ---------- */
.kl-faqs { display: flex; flex-direction: column; gap: 14px; }
.kl-faq { border-radius: 20px; border: 1px solid var(--kl-line); background: var(--kl-surface); transition: border-color 0.3s, background-color 0.3s; }
.kl-faq:hover { border-color: rgba(167,139,219,0.5); }
.kl-faq[open] { background: rgba(34,211,182,0.07); }
.kl-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 64px; padding: 18px 24px; font-family: var(--kl-font-display); font-size: 18px; font-weight: 700; color: var(--kl-white);
}
.kl-faq summary::-webkit-details-marker { display: none; }
.kl-faq summary::after {
	content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,0.08) var(--kl-i-plus-bg) center / 16px no-repeat; transition: transform 0.35s var(--kl-ease);
}
.kl-faq[open] summary::after { transform: rotate(45deg); }
.kl-faq p { padding: 0 24px 24px; color: var(--kl-text-2); }

/* ---------- Contact ---------- */
.kl-contact {
	position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: 34px;
	border: 1px solid rgba(255,255,255,0.1); background: var(--kl-navy-2);
}
.kl-contact::before, .kl-contact::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.kl-contact::before { left: -120px; top: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(34,211,182,0.3), transparent 65%); animation: kl-float 14s ease-in-out infinite; }
.kl-contact::after { right: -140px; bottom: -160px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(167,139,219,0.3), transparent 65%); animation: kl-float-2 18s ease-in-out infinite; }
.kl-contact > * { position: relative; z-index: 1; }
.kl-contact .kl-lead { color: #CFCCE8; }
.kl-contact__line { font-size: 16px; }
.kl-contact__line a { color: var(--kl-text); }
.kl-contact__form { padding: 32px; border-radius: 24px; background: rgba(11,10,31,0.7); border: 1px solid rgba(255,255,255,0.1); }
.kl-contact-fallback { display: flex; flex-direction: column; gap: 14px; }

/* Shared form field look (used by the Kodelink Core form and WooCommerce). */
.kl-field, .kl-contact__form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04);
	color: var(--kl-white); font: inherit; font-size: 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.kl-contact__form :is(input, select, textarea):focus { outline: none; border-color: var(--kl-teal); box-shadow: 0 0 0 4px rgba(34,211,182,0.18); }
.kl-contact__form select { background-color: #17143A; }

/* ---------- Posts list ---------- */
.kl-post-list { display: grid; gap: 20px; }
.kl-post-card { padding: 28px; border-radius: var(--kl-radius-lg); border: 1px solid var(--kl-line); background: var(--kl-surface); }
.kl-post-card h2 { margin: 0 0 10px; font-size: 24px; }
.kl-post-card h2 a { color: var(--kl-white); }
.kl-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes kl-shift { to { background-position: 300% 0; } }
@keyframes kl-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kl-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } }
@keyframes kl-float-2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 40px); } }
@keyframes kl-marquee { to { transform: translateX(-50%); } }
@keyframes kl-spin { to { transform: rotate(360deg); } }
@keyframes kl-feed { 0% { opacity: 0; transform: translateX(24px); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes kl-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,182,0.55); } 100% { box-shadow: 0 0 0 12px rgba(34,211,182,0); } }
@keyframes kl-ripple { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes kl-bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* Hero load sequence: one orchestrated entrance. */
.kl-js .kl-load { opacity: 0; animation: kl-up 0.9s var(--kl-ease) forwards; }
.kl-load--1 { animation-delay: 0.1s !important; }
.kl-load--2 { animation-delay: 0.25s !important; }
.kl-load--3 { animation-delay: 0.4s !important; }
.kl-load--4 { animation-delay: 0.55s !important; }
.kl-load--5 { animation-delay: 0.7s !important; }

/* Scroll reveal: only hidden once JS is confirmed (html.kl-js). */
.kl-js .kl-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--kl-ease), transform 0.8s var(--kl-ease); }
.kl-js .kl-reveal.is-visible { opacity: 1; transform: none; }
.kl-js .kl-reveal-group > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--kl-ease), transform 0.7s var(--kl-ease), border-color 0.45s, background-color 0.45s, box-shadow 0.45s; }
.kl-js .kl-reveal-group.is-visible > * { opacity: 1; transform: none; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.32s, 0.32s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.4s, 0.4s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > *:nth-child(7) { transition-delay: 0.48s, 0.48s, 0s, 0s, 0s; }
.kl-js .kl-reveal-group.is-visible > .kl-card:hover { transform: translateY(-6px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.kl-hero__grid, .kl-split, .kl-nfc-band { grid-template-columns: minmax(0, 1fr); }
	.kl-hero__visual { min-height: 0; max-width: 560px; width: 100%; margin-inline: auto; }
	.kl-console { position: relative; left: auto; right: auto; top: auto; }
	.kl-ring { display: none; }
	.kl-bento, .kl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
	.kl-steps::before, .kl-steps::after { display: none; }
	.kl-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kl-orbit { transform: scale(0.85); }
}

@media (max-width: 900px) {
	.kl-nav-toggle { display: inline-block; }
	.kl-header__actions .kl-btn { display: none; }
	.kl-nav {
		position: absolute; left: 0; right: 0; top: 100%; display: none;
		background: rgba(11,10,31,0.97); border-bottom: 1px solid var(--kl-line); padding: 12px var(--kl-gutter) 24px;
	}
	.kl-nav.is-open { display: block; }
	.kl-menu { flex-direction: column; gap: 0; }
	.kl-menu a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.06); }
	.admin-bar .kl-header { top: 46px; }
}

@media (max-width: 640px) {
	.kl-bento, .kl-grid-3, .kl-steps, .kl-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.kl-card--wide { grid-column: auto; }
	.kl-card--row { flex-direction: column; }
	.kl-card--feature { min-height: 0; padding-top: 112px; }
	.kl-orbit { height: 420px; transform: scale(0.7); margin-block: -40px; }
	.kl-tapcard { height: 300px; }
	.kl-contact__form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.kl-js .kl-load, .kl-js .kl-reveal, .kl-js .kl-reveal-group > *, .kl-feed { opacity: 1 !important; transform: none !important; }
	.kl-steps::after { transform: scaleX(1); }
}

/* ==========================================================================
   WordPress layout neutraliser
   Core gives Group blocks a "constrained" layout that caps children at the
   global content size and centres them with !important margins. Kodelink
   sections size themselves with grids, so that cap is removed here.
   ========================================================================== */
.kl-main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.kl-main .is-layout-flow > * {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.kl-main .wp-block-group.kl-container {
	max-width: calc(var(--kl-container) + 2 * var(--kl-gutter));
	margin-left: auto !important;
	margin-right: auto !important;
}
.kl-main .kl-section :is(.is-layout-constrained, .is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }
.kl-main .wp-block-group.kl-head--center { margin-left: auto !important; margin-right: auto !important; }

/* Fallback (and block editor): if the Group inner wrapper is still present, let its children
   take part in the parent's grid/flex layout. */
.wp-block-group[class*="kl-"] > .wp-block-group__inner-container { display: contents; }

/* ==========================================================================
   Inner pages: service header, included card, related links
   ========================================================================== */
.kl-svc-hero { padding-top: clamp(48px, 7vw, 88px); }
.kl-svc-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.kl-svc-hero--center .kl-head { position: relative; margin-bottom: 0; }
.kl-h1--page { font-size: clamp(34px, 4.4vw, 56px); }
.kl-eyebrow a { color: inherit; }
.kl-eyebrow a:hover { color: var(--kl-teal-light); }
.kl-included { gap: 14px; background: linear-gradient(160deg, rgba(31,28,70,0.92), rgba(15,13,40,0.95)); box-shadow: 0 40px 90px -40px rgba(34,166,242,0.55); }
.kl-included:hover { transform: none; }
.kl-included__title { font-family: var(--kl-font-display); font-size: 20px !important; font-weight: 700; color: var(--kl-white) !important; margin-top: 4px !important; }
.kl-included .kl-check { color: #CFCCE8; font-size: 15.5px; }
.kl-card--plain { background: transparent; }
.kl-card .kl-h3 { font-size: 23px; font-weight: 700; }
.kl-related h3 a, .kl-related .kl-h3 a { color: var(--kl-white); }
.kl-related h3 a::after, .kl-related .kl-h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.kl-related h3 a:hover { color: var(--kl-teal-light); }
.kl-more { margin-top: auto !important; }
.kl-more a { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.kl-more a::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--kl-i-arrow) center / contain no-repeat; mask: var(--kl-i-arrow) center / contain no-repeat; transition: transform 0.3s; }
.kl-more a:hover::after { transform: translateX(4px); }

/* Breadcrumbs (Rank Math / Yoast output) */
.kl-breadcrumbs { padding-top: 20px; font-size: 14px; color: var(--kl-text-3); }
.kl-breadcrumbs a { color: var(--kl-text-2); }
.kl-breadcrumbs p { margin: 0; }

@media (max-width: 1080px) {
	.kl-svc-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Header dropdown (one sub-level)
   ========================================================================== */
.kl-menu > li { position: relative; }
.kl-menu .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.kl-menu .menu-item-has-children > a::after {
	content: ""; width: 10px; height: 10px; background: currentColor;
	-webkit-mask: var(--kl-i-chevron) center / contain no-repeat; mask: var(--kl-i-chevron) center / contain no-repeat;
	transition: transform 0.25s;
}
.kl-menu .sub-menu {
	display: block; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 250px; list-style: none; margin: 0; padding: 10px;
	background: rgba(18, 15, 51, 0.98); border: 1px solid var(--kl-line); border-radius: 18px;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.kl-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.kl-menu li:hover > .sub-menu,
.kl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.kl-menu li:hover > a::after, .kl-menu li:focus-within > a::after { transform: rotate(180deg); }
.kl-menu .sub-menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.kl-menu .sub-menu a:hover, .kl-menu .sub-menu .current-menu-item > a { background: rgba(255,255,255,0.06); color: var(--kl-white); }

@media (max-width: 900px) {
	.kl-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
		background: transparent; border: 0; box-shadow: none; padding: 0 0 8px 14px;
	}
	.kl-menu .sub-menu::before { display: none; }
	.kl-menu .sub-menu a { padding: 10px 0; border-bottom: 0; font-size: 15px; color: var(--kl-text-2); }
	.kl-menu .menu-item-has-children > a::after { display: none; }
}

/* About: mission / vision / motto */
.kl-mvv { display: flex; flex-direction: column; gap: 16px; }
.kl-mvv .kl-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 18px; row-gap: 8px; padding: 26px; }
.kl-mvv .kl-card h3 { flex: 1 1 200px; align-self: center; font-size: 21px; }
.kl-mvv .kl-card p { flex: 1 1 100%; }

/* Contact: map */
.kl-map { border-radius: var(--kl-radius-lg); overflow: hidden; border: 1px solid var(--kl-line); aspect-ratio: 16 / 6; min-height: 320px; background: var(--kl-navy-2); }
.kl-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.7); }
@media (max-width: 640px) { .kl-map { aspect-ratio: 4 / 5; } }

/* Client logo strip: uniform white logos on the dark band, full colour on hover */
.kl-marquee--logos .kl-marquee__track { align-items: center; gap: clamp(40px, 6vw, 88px); }
.kl-client-logo { margin: 0; flex: none; }
.kl-client-logo img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain;
	filter: brightness(0) invert(1); opacity: 0.65; transition: filter 0.3s, opacity 0.3s; }
.kl-client-logo img:not([src]), .kl-client-logo img[src=""] { display: none; } /* empty placeholder never shows on the site */
.kl-marquee--logos:hover .kl-client-logo img { opacity: 0.85; }
.kl-client-logo img:hover { filter: none; opacity: 1; }
.kl-marquee--logos:not(.is-looping) .kl-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
@media (max-width: 640px) { .kl-client-logo img { height: 34px; max-width: 130px; } }

/* ==========================================================================
   v1.4.1 — section label pill + heading spacing
   ========================================================================== */
/* The WP layout neutraliser zeroes block margins inside sections; give headers their gap back. */
.kl-main .kl-section .wp-block-group.kl-head { margin-bottom: clamp(40px, 5vw, 60px); }

/* Section label as a pill (was plain small text) */
.kl-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	padding: 7px 16px 7px 12px; border-radius: 999px;
	border: 1px solid rgba(34, 211, 182, 0.35); background: rgba(34, 211, 182, 0.08);
	font-size: 15px; line-height: 1.2; letter-spacing: 0.01em;
}
.kl-eyebrow::before {
	content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
	-webkit-mask: var(--kl-i-spark) center / contain no-repeat; mask: var(--kl-i-spark) center / contain no-repeat;
}
.kl-eyebrow--pink { border-color: rgba(231, 180, 207, 0.4); background: rgba(231, 180, 207, 0.08); }
.kl-head--center .kl-eyebrow { align-self: center; }
/* Label sits closer to its heading than the rest of the stack */
.kl-main .kl-stack > .kl-eyebrow { margin-bottom: -8px !important; }
.kl-main .kl-section.kl-svc-hero .wp-block-group.kl-head { margin-bottom: 0; }

/* Hide the client strip until at least one logo is set in the Customizer */
.kl-clients:not(:has(.kl-client-logo)) { display: none; }

/* v1.5.1 — feature card: icon back in normal flow (the "learn more" link's margin-top:auto
   was pulling the text to the top, under the absolutely placed icon). */
.kl-card--feature { justify-content: flex-start; }
.kl-card--feature .kl-icon-tile { position: static; margin-bottom: 8px; }
.kl-card--feature .kl-more { margin-top: auto !important; padding-top: 8px; }
@media (max-width: 640px) { .kl-card--feature { padding-top: 32px; } }

/* v1.6.2 — header: account icon, tighter spacing on mid widths, touch-friendly dropdown */
.kl-header__actions { gap: 10px; }
@media (max-width: 1180px) and (min-width: 901px) {
	.kl-menu { gap: 20px; }
	.kl-header__inner { gap: 16px; }
	.kl-header__actions .kl-btn--sm { padding: 0 16px; }
}
@media (max-width: 420px) {
	.kl-header__actions { gap: 6px; }
	.kl-cart-link, .kl-nav-toggle { width: 40px; height: 40px; }
	.kl-logo__text { font-size: 17px; }
}
/* Touch screens: sub-menu opens on first tap (JS adds .is-open), not on hover */
.kl-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.kl-menu li.is-open > a::after { transform: rotate(180deg); }

/* Mobile menu keeps the main call to action */
.kl-nav__cta { display: none; }
@media (max-width: 900px) { .kl-nav.is-open .kl-nav__cta { display: flex; width: 100%; margin-top: 16px; } }
