/* ==========================================================================
   Kayytechin — minimal futuristic decorations
   Colours come from theme.json presets, so changing "Orange" in
   Appearance › Editor › Styles › Colors updates every dot, line and glow.
   ========================================================================== */

:root {
	--ac: var(--wp--preset--color--accent, #F3931E);
	--ac-light: var(--wp--preset--color--accent-light, #FDAE40);
	--ac-dark: var(--wp--preset--color--accent-dark, #F07A20);
	--kt-base: var(--wp--preset--color--base, #050505);
	--kt-line: var(--wp--preset--color--line, #1C1C1C);
	--kt-muted: var(--wp--preset--color--muted, #8A8A8A);
	--kt-mono: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	--kt-sora: var(--wp--preset--font-family--sora, Sora, sans-serif);
}

body { overflow-x: clip; }
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > * { margin-block-start: 0; }
.kt-main > * { margin-block-start: 0; }

/* ---------- Animations ---------- */
@keyframes kt-spin { to { transform: rotate(360deg); } }
@keyframes kt-scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes kt-blink { 50% { opacity: 0; } }
@keyframes kt-pulse { 50% { opacity: .35; } }
@keyframes kt-travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes kt-travel-y { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes kt-flow { to { stroke-dashoffset: -20; } }
.kt-pulse { animation: kt-pulse 2s ease-in-out infinite; }
.kt-travel { animation: kt-travel 4s linear infinite; }
.kt-travel-y { animation: kt-travel-y 5s linear infinite; }
.kt-flow { stroke-dasharray: 3 7; animation: kt-flow 1.4s linear infinite; }

/* ---------- Backgrounds ---------- */
.kt-gridbg {
	background-image: linear-gradient(#141414 1px, transparent 1px), linear-gradient(90deg, #141414 1px, transparent 1px);
	background-size: 80px 80px;
}
.kt-dotbg {
	background-image: radial-gradient(#262626 1px, transparent 1.6px);
	background-size: 22px 22px;
}
.kt-section { position: relative; padding-block: 96px; }
.kt-section > * { position: relative; z-index: 1; }
.kt-section-tight { padding-top: 0; }

/* ---------- Text helpers ---------- */
.kt-muted, .kt-lead { color: var(--kt-muted); }
.kt-lead { font-size: 1.125rem; max-width: 560px; }
.is-style-kt-mono, .kt-mono {
	font-family: var(--kt-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kt-muted);
}
.is-style-kt-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--kt-mono);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ac);
}
.is-style-kt-label::before {
	content: "";
	flex: 0 0 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
}
.is-style-kt-label::after {
	content: "";
	flex: 0 0 96px;
	height: 1px;
	background: linear-gradient(90deg, currentColor, transparent);
}
.kt-label-muted { color: var(--kt-muted) !important; }
.kt-label-dark { color: var(--kt-base) !important; }

/* ---------- Cards ---------- */
.is-style-kt-card {
	position: relative;
	border: 1px solid var(--kt-line);
	background: linear-gradient(160deg, color-mix(in srgb, var(--ac) 8%, #0B0B0B) 0%, #070707 45%, var(--kt-base) 100%);
	padding: 32px;
}
.is-style-kt-card::before,
.is-style-kt-card::after,
.is-style-kt-frame::before,
.is-style-kt-frame::after {
	content: "";
	position: absolute;
	width: 7px;
	height: 7px;
	background: var(--kt-base);
	border: 1px solid var(--ac);
	z-index: 2;
}
.is-style-kt-card::before, .is-style-kt-frame::before { top: -4px; left: -4px; }
.is-style-kt-card::after, .is-style-kt-frame::after { bottom: -4px; right: -4px; }

.is-style-kt-orange {
	background: linear-gradient(135deg, var(--ac-light) 0%, var(--ac) 50%, var(--ac-dark) 100%);
	color: var(--kt-base);
	padding: 40px;
}
.is-style-kt-orange :where(h1, h2, h3, h4, p, a:not(.wp-element-button)) { color: var(--kt-base); }

.is-style-kt-hud {
	position: relative;
	border: 1px solid #262626;
	padding: 40px;
	background:
		linear-gradient(var(--ac), var(--ac)) 8px 8px / 16px 1px no-repeat,
		linear-gradient(var(--ac), var(--ac)) 8px 8px / 1px 16px no-repeat,
		linear-gradient(var(--ac), var(--ac)) calc(100% - 8px) 8px / 16px 1px no-repeat,
		linear-gradient(var(--ac), var(--ac)) calc(100% - 8px) 8px / 1px 16px no-repeat,
		linear-gradient(var(--ac), var(--ac)) 8px calc(100% - 8px) / 16px 1px no-repeat,
		linear-gradient(var(--ac), var(--ac)) 8px calc(100% - 8px) / 1px 16px no-repeat,
		linear-gradient(var(--ac), var(--ac)) calc(100% - 8px) calc(100% - 8px) / 16px 1px no-repeat,
		linear-gradient(var(--ac), var(--ac)) calc(100% - 8px) calc(100% - 8px) / 1px 16px no-repeat,
		linear-gradient(160deg, color-mix(in srgb, var(--ac) 8%, #0B0B0B) 0%, #070707 45%, var(--kt-base) 100%);
}

.is-style-kt-frame { position: relative; border: 1px solid var(--kt-line); }
.is-style-kt-frame img { display: block; width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-kt-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid #2E2E2E;
}
.wp-block-button.is-style-kt-outline .wp-block-button__link:hover { border-color: var(--ac); color: var(--ac); }
.wp-block-button.is-style-kt-dark .wp-block-button__link { background: var(--kt-base); color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-kt-dark .wp-block-button__link:hover { color: var(--ac); }
.kt-buttons-stack .wp-block-button, .kt-buttons-stack .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Status bar & header ---------- */
.kt-statusbar {
	border-bottom: 1px solid var(--kt-line);
	padding-block: 8px;
	font-family: var(--kt-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kt-muted);
}
.kt-statusbar p { margin: 0; }
.kt-status { display: flex; align-items: center; gap: 8px; }
.kt-status::before { content: ""; width: 6px; height: 6px; background: var(--ac); animation: kt-pulse 2s ease-in-out infinite; }
.kt-header { border-bottom: 1px solid var(--kt-line); padding-block: 18px; }
.kt-brand-logo img { height: 30px; width: auto; display: block; }
.kt-site-title { font-family: var(--kt-sora); font-weight: 400; font-size: 1.0625rem; letter-spacing: 0.32em; text-transform: uppercase; margin: 0; }
.kt-site-title a { color: var(--wp--preset--color--contrast); }
.kt-nav a { color: var(--kt-muted); }
.kt-nav a:hover { color: var(--ac); }
.kt-header .wp-block-button__link { padding: 0.7rem 1.1rem; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.kt-hero { position: relative; overflow: hidden; padding-block: 96px 88px; }
.kt-hero > * { position: relative; z-index: 1; }
.kt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 50% 60% at 78% 45%, color-mix(in srgb, var(--ac) 18%, transparent), transparent 70%),
		radial-gradient(ellipse 40% 50% at 10% 0%, color-mix(in srgb, var(--ac) 7%, transparent), transparent 70%),
		linear-gradient(180deg, transparent 65%, var(--kt-base) 100%);
}
.kt-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ac), transparent);
	box-shadow: 0 0 16px var(--ac);
	pointer-events: none;
	animation: kt-scan 6s ease-in-out infinite;
	z-index: 1;
}
.kt-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--kt-mono);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kt-muted);
}
.kt-eyebrow::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 12px var(--ac); }
.kt-hero-title::after {
	content: "";
	display: inline-block;
	width: 0.08em;
	height: 0.8em;
	margin-left: 0.08em;
	vertical-align: -0.05em;
	background: var(--ac);
	animation: kt-blink 1s steps(1) infinite;
}
.kt-circuit, .kt-hero > .kt-circuit {
	position: absolute !important;
	inset: 0;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	z-index: 0;
}
.kt-circuit .kt-line { position: absolute; }
.kt-circuit .kt-line span { position: absolute; }
.kt-node-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ac); background: var(--kt-base); }
.kt-node-glow { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.kt-dots {
	position: absolute;
	background-image: radial-gradient(var(--ac) 1.2px, transparent 1.8px);
	background-size: 14px 14px;
	opacity: .55;
	pointer-events: none;
}

.kt-hud-id { position: absolute; top: 14px; left: 32px; margin: 0; font-size: 0.625rem !important; letter-spacing: 0.2em; }
.kt-orbit {
	position: relative;
	width: 220px;
	height: 220px;
	margin-inline: auto !important;
	border: 1px solid #262626;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kt-orbit::before {
	content: "";
	position: absolute;
	inset: 22px;
	border: 1px dashed #2E2E2E;
	border-radius: 50%;
	animation: kt-spin 30s linear infinite reverse;
}
.kt-orbit::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	background: radial-gradient(circle at calc(100% - 5px) 50%, var(--ac) 0 4px, transparent 5px);
	filter: drop-shadow(0 0 6px var(--ac));
	animation: kt-spin 18s linear infinite;
}
.kt-orbit .wp-block-image { margin: 0; position: relative; z-index: 1; }
.kt-orbit img { height: 120px; width: auto; display: block; filter: drop-shadow(0 0 32px color-mix(in srgb, var(--ac) 35%, transparent)); }
.kt-stat { font-family: var(--kt-sora); font-weight: 300; font-size: 2rem; line-height: 1.1; color: var(--ac); margin: 0; }
.kt-orange-title { font-family: var(--kt-sora); font-weight: 300; font-size: 2.125rem; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

/* ---------- Rail (line + dots between sections) ---------- */
.kt-rail { position: relative; height: 1px; background: var(--kt-line); }
.kt-rail span { position: absolute; }
.kt-rail .kt-rail-light { top: -1px; width: 120px; height: 3px; background: linear-gradient(90deg, transparent, var(--ac)); box-shadow: 0 0 10px var(--ac); }
.kt-rail .kt-node-dot { top: -3px; }
.kt-rail .kt-rail-hub { top: -4px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 12px var(--ac); }

/* ---------- Services ---------- */
.kt-services::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 45% 55% at 100% 0%, color-mix(in srgb, var(--ac) 10%, transparent), transparent 70%),
		linear-gradient(180deg, var(--kt-base) 0%, transparent 18%, transparent 82%, var(--kt-base) 100%);
}
.kt-card-meta { display: flex; justify-content: space-between; margin: 0; }
.kt-card-meta::after { content: "↗"; color: var(--ac); }

/* ---------- Why us / collaboration ---------- */
.kt-network { width: 100%; max-width: 520px; height: auto; display: block; overflow: visible; }
.kt-hub { position: relative; }
.kt-hub > * { position: relative; z-index: 1; }
.kt-hub::before {
	content: "";
	position: absolute;
	inset: -32px;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 50%, var(--ac) 0 5px, transparent 6px),
		linear-gradient(90deg, transparent, #3A3A3A 15%, #3A3A3A 85%, transparent) 0 50% / 100% 1px no-repeat,
		linear-gradient(180deg, transparent, #3A3A3A 15%, #3A3A3A 85%, transparent) 50% 0 / 1px 100% no-repeat;
}
.kt-hub::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border-radius: 50%;
	border: 1px solid var(--ac);
	box-shadow: 0 0 14px color-mix(in srgb, var(--ac) 50%, transparent);
	z-index: 2;
	pointer-events: none;
	animation: kt-pulse 2s ease-in-out infinite;
}
.kt-dot { margin: 0; width: 8px; height: 8px; background: var(--ac); box-shadow: 0 0 10px var(--ac); font-size: 0; line-height: 0; }
.kt-stack-title { font-family: var(--kt-sora); font-weight: 300; font-size: 1.25rem; margin: 0; }

/* ---------- Clients ---------- */
.kt-clients {
	border-top: 1px solid var(--kt-line);
	border-bottom: 1px solid var(--kt-line);
	padding-block: 48px;
	background: linear-gradient(90deg, var(--kt-base), color-mix(in srgb, var(--ac) 5%, #080808) 50%, var(--kt-base));
}
.kt-logo-slot {
	border: 1px dashed #2E2E2E;
	padding: 18px;
	text-align: center;
	margin: 0;
}
.kt-logo-slot img { max-height: 40px; width: auto; }

/* ---------- Results ---------- */
.kt-results::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 40%;
	right: 0;
	pointer-events: none;
	z-index: 0;
	background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--ac-dark) 8%, transparent) 35%, color-mix(in srgb, var(--ac) 18%, transparent) 75%, color-mix(in srgb, var(--ac-light) 24%, transparent) 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.kt-quote { font-family: var(--kt-sora); font-weight: 300; font-size: 1.125rem; line-height: 1.6; }
.kt-quote::before { content: "“"; color: var(--ac); }
.kt-quote::after { content: "”"; color: var(--ac); }
.kt-person { font-weight: 500; font-size: 0.9375rem; margin: 0; }

/* ---------- Contact ---------- */
.kt-contact { overflow: hidden; }
.kt-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 55% 70% at 15% 100%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 70%),
		linear-gradient(180deg, var(--kt-base) 0%, transparent 30%);
}
.kt-contact::after {
	content: "";
	position: absolute;
	top: 40px;
	right: 40px;
	width: 98px;
	height: 56px;
	background-image: radial-gradient(var(--ac) 1.2px, transparent 1.8px);
	background-size: 14px 14px;
	opacity: .55;
	pointer-events: none;
}
.kt-contact-title { font-weight: 200; letter-spacing: -0.04em; }

/* ---------- Footer ---------- */
.kt-footer {
	border-top: 1px solid var(--kt-line);
	padding-block: 28px;
	font-family: var(--kt-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kt-muted);
}
.kt-footer p { margin: 0; }
.kt-footer a { color: var(--kt-muted); }
.kt-footer a:hover { color: var(--ac); }
.kt-footer-logo img { height: 20px; width: auto; display: block; }

/* ---------- Blog / pages ---------- */
.kt-page-head { padding-block: 72px 32px; border-bottom: 1px solid var(--kt-line); }
.kt-post-card { height: 100%; }
.kt-post-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.kt-post-card .wp-block-post-title a:hover { color: var(--ac); }
.wp-block-query-pagination a { font-family: var(--kt-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.kt-section, .kt-hero { padding-block: 64px; }
	.kt-circuit { display: none; }
	.kt-hub::before { inset: -12px; }
	.is-style-kt-orange, .is-style-kt-hud { padding: 28px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.kt-pulse, .kt-travel, .kt-travel-y, .kt-flow,
	.kt-hero::after, .kt-hero-title::after, .kt-orbit::before, .kt-orbit::after,
	.kt-hub::after, .kt-status::before { animation: none; }
}

/* ---------- Small layout helpers ---------- */
.kt-intro { max-width: 420px; margin: 0; }
.kt-logo-grid { flex: 1 1 500px; }
.is-style-kt-card .kt-muted { font-size: 0.9375rem; }
.kt-pad-lg { padding: 40px; }
.kt-h3-lg { font-size: 1.875rem !important; line-height: 1.2; letter-spacing: -0.02em; }
.kt-header-cta .wp-block-button__link { border-color: var(--ac) !important; color: var(--ac) !important; }

/* Editor + small screens */
.kt-brand-logo, .kt-footer-logo { margin: 0; flex-shrink: 0; }
.kt-orbit .wp-block-image img { max-width: none; }
@media (max-width: 781px) {
	.is-style-kt-card { padding: 24px; }
	.kt-site-title { letter-spacing: 0.2em; }
}
