/* Koriz brand language: "a line that ends in a sensor".
   The K in the logo is one thick navy line that starts and ends in an orange dot.
   Full strength: the hero K window, whose line leaves the letter and runs along the page, + the band.
   Elsewhere: an echo (eyebrow, facts, menu, card hover). */
:root { --kz-line: 6px; --kz-o: #EB9C3B; --kz-navy: #273673; --kz-ink: #1A2350; --c-accent: #EB9C3B;
	/* orange as TEXT (the hero highlight, the FAQ "+"): the brand orange #EB9C3B is 2.06:1 on the page and 2.25:1 on
	   white, below AA. The same hue darkened, hsl(33 81% 40%) = #EB9C3B at 40% lightness: 3.60:1 on the page
	   #F6F5F2, 3.93:1 on white (AA for large/bold text and for icons). The bright #EB9C3B stays for the sensor dots,
	   the CTA background, the glows and the lines (decoration, not text). */
	--kz-o-text: #B96F13; }
body.site-koriz { background: #F6F5F2; --h-card-radius: 14px; }

/* eyebrow: a line segment ending in a sensor */
.site-koriz .h-eyebrow { gap: 0; color: var(--kz-navy); }
.site-koriz .h-eyebrow i { inline-size: 44px; block-size: var(--kz-line); border-radius: 6px; background: var(--kz-navy); position: relative; margin-inline-end: 24px; }
.site-koriz .h-eyebrow i::after { content: ""; position: absolute; inset-inline-end: -16px; inset-block-start: 50%; translate: 0 -50%; inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--kz-o); }

/* buttons: corners like the K's joints */
.site-koriz .h-btn, .site-koriz .wp-element-button { border-radius: 10px; }
.site-koriz .h-btn--line { color: var(--kz-navy); }
.site-koriz .h-btn--line:hover { background: #fff; }
.site-koriz .h-btn--cta:hover { box-shadow: 0 10px 24px -12px rgba(235, 156, 59, .9); }
.site-koriz .h-hl { color: var(--kz-o-text); }

/* header: navy call to action; the menu marks the current page with a sensor dot (desktop menu: under the item;
   phone menu: before it, base.css) */
.site-koriz .h-header__cta { background: var(--kz-navy); color: #fff; }
.site-koriz .h-header__cta:hover { background: var(--kz-ink); color: #fff; }
.site-koriz .h-nav-desk .h-menu > li > a { color: var(--kz-ink); }
.site-koriz .h-nav-desk .h-menu > li > a::after { inset-inline: 0; margin-inline: auto; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--kz-o); transform: scale(0); }
.site-koriz .h-nav-desk .h-menu > li > a:hover::after, .site-koriz .h-nav-desk .h-menu > .current-menu-item > a::after, .site-koriz .h-nav-desk .h-menu > .current-menu-ancestor > a::after { transform: scale(1); }
.site-koriz .h-nav__panel .h-menu :is(.current-menu-item, .current-menu-ancestor) > a { color: var(--kz-navy); }
.site-koriz .h-nav__panel .h-menu :is(.current-menu-item, .current-menu-ancestor) > a::before { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--kz-o); }

/* ---------- hero: the K as a window, its line runs on along the page ----------
   --kz-t: the running line's weight. The approved reference draws it at ~42% of the K's stroke (25px against 60px,
   measured), continuing the outer edge of the K's left bar; at the full stroke (9.69% of the K) it read as a second
   band merging into the navy band below. */
.site-koriz .h-hero2 { --h-title: clamp(44px, 6.1vw, 96px); --kz-drop: clamp(48px, 5.2vw, 76px); padding-block-end: calc(var(--kz-drop) + clamp(26px, 2.4vw, 36px)); }
@media (min-width: 861px) { .site-koriz .h-hero2__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: clamp(28px, 3vw, 44px); } }
/* desktop and laptop: the whole first section fits the screen (sections.css). The words get a wider column and a
   smaller title (the long headline in 3-4 lines, not 5), and the K follows the screen height. */
@media (min-width: 861px) and (orientation: landscape) {
	.site-koriz .h-hero2 { --h-title: clamp(44px, 4.7vw, 76px); }
	.site-koriz .h-hero2__in { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
	.site-koriz .h-hero2__in > .h-kwin { max-inline-size: min(560px, calc(var(--h-fold) * .72)); }
}
.site-koriz .h-hero2__title { color: var(--kz-ink); }
/* the K reaches a little past the container toward the page edge on wide screens */
.h-kwin { --kz-bleed: clamp(0px, (100vw - 1248px) / 2, 56px); position: relative; inline-size: calc(100% + var(--kz-bleed)); max-inline-size: 600px; aspect-ratio: 382 / 392; justify-self: start; direction: ltr; container-type: inline-size; }
.h-kwin__ph { position: absolute; inset: .7%; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; overflow: hidden; }
.h-kwin__ph img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 78% 35%; transform: scale(1.12); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.h-kwin:hover .h-kwin__ph img { transform: scale(1.16); }
.h-kwin__k { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
/* the running line: down from the letter's bottom-left corner, a rounded turn, then along the hero to the page edge
   (physical left/bottom on purpose: the K never mirrors). It covers the K's own rounded corner, so the stroke reads as one line. */
.h-kwin__run {
	--kz-t: 4.2cqi;
	position: absolute; left: 0; top: calc(100% - 5cqi); box-sizing: border-box; inline-size: 100vw; block-size: calc(5cqi + var(--kz-drop));
	border: 0 solid var(--kz-navy); border-left-width: var(--kz-t); border-bottom-width: var(--kz-t); border-bottom-left-radius: calc(var(--kz-t) * 2.4);
	pointer-events: none; animation: kz-run 1.5s cubic-bezier(.65, 0, .35, 1) .5s both;
}
@keyframes kz-run { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* the two sensors: a soft steady glow, and one ping when the page opens */
.h-ping { position: absolute; inline-size: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--kz-o); pointer-events: none;
	box-shadow: 0 0 0 1.4cqi rgba(235, 156, 59, .22), 0 0 7cqi 1cqi rgba(235, 156, 59, .5); }
.h-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--kz-o); animation: kz-ping 1.6s ease-out 1s 2 both; }
@keyframes kz-ping { from { transform: scale(1); opacity: .75; } to { transform: scale(2.5); opacity: 0; } }
.h-ping--1 { left: 22.5%; top: 23.1%; }
.h-ping--2 { left: 40.2%; top: 61.6%; }

/* a simple page (thanks, privacy): no photo for the window, so the K stands as the logo's mark, smaller, beside the
   message; its line still leaves the letter and runs along the hero (sections.php .h-kwin--plain) */
@media (min-width: 861px) { .site-koriz .h-hero2__in > .h-kwin--plain { inline-size: min(100%, 280px); justify-self: center; } }

/* facts: a vertical line with a sensor on top */
.site-koriz .h-facts div { position: relative; padding-inline-start: 22px; }
.site-koriz .h-facts div::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 4px; inline-size: var(--kz-line); border-radius: 6px; background: var(--kz-navy); }
.site-koriz .h-facts div::after { content: ""; position: absolute; inset-inline-start: -5px; inset-block-start: -6px; inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--kz-o); }

/* the band (second full-strength moment): navy wire, big words, orange sensors between the services */
.site-koriz .h-band2 { background: var(--kz-navy); --h-band-size: clamp(22px, 3vw, 44px); }
.site-koriz .h-band2__in span { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.site-koriz .h-band2__in span + span::before { content: ""; flex: none; inline-size: clamp(14px, 1.4vw, 20px); aspect-ratio: 1; border-radius: 50%; background: var(--kz-o); box-shadow: 0 0 14px 2px rgba(235, 156, 59, .45); }

/* cards: the logo's line wraps them on hover and a sensor lights in the corner */
.site-koriz .h-svc, .site-koriz .h-inc, .site-koriz .h-pack { border-radius: 14px; }
.site-koriz .h-svc { transition: transform .2s var(--h-ease), box-shadow .2s var(--h-ease); }
.site-koriz .h-svc::before { content: ""; position: absolute; inset-inline-end: -7px; inset-block-start: -7px; inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--kz-o); transform: scale(0); transition: transform .2s; }
.site-koriz .h-svc:has(a):hover { box-shadow: inset 0 0 0 var(--kz-line) var(--kz-navy); }
.site-koriz .h-svc:has(a):hover::before { transform: scale(1); }
.site-koriz .h-svc__ico, .site-koriz .h-inc__ico { position: relative; display: inline-grid; justify-self: start; }
.site-koriz .h-svc__ico::after, .site-koriz .h-inc__ico::after { content: ""; position: absolute; inset-inline-start: -3px; inset-block-start: -3px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--kz-o); }
.site-koriz .h-inc { background: #fff; }

/* photos: one corner cut at the angle of the K's arm */
.site-koriz .h-prj__ph { border-radius: 14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 13% 100%, 0 78%); }
.site-koriz .h-steps > li::before { background: var(--kz-navy); }
.site-koriz .h-checks li::before { background: var(--kz-navy); }
.site-koriz .h-faq__item summary::after { color: var(--kz-o-text); }
.site-koriz .h-price__cta { background: var(--kz-navy); }

/* ---------- phones: the K on top, its line becomes a rail beside the text and turns under it ---------- */
@media (max-width: 860px) {
	.site-koriz .h-hero2 { --h-title: clamp(36px, 11.2vw, 60px); --kz-kw: min(100vw - 2 * var(--h-gutter), 340px); --kz-t: calc(var(--kz-kw) * .042); --kz-drop: 28px; padding-block-end: calc(var(--kz-drop) + 28px); }
	.site-koriz .h-hero2__in > .h-kwin { inline-size: var(--kz-kw); justify-self: end; }
	@media (min-width: 600px) { .site-koriz .h-hero2 { --kz-kw: 420px; } }
	/* a phone held sideways (a short screen): the K is sized by the screen's height, so the headline follows it within
	   the first swipe instead of two screens down */
	@media (max-height: 500px) { .site-koriz .h-hero2 { --kz-kw: min(420px, 52vh); } }
	.site-koriz .h-hero2--simple { --kz-kw: 128px; } /* the mark, small: the thanks message is in the first screen */
	.h-kwin__run { visibility: hidden; } /* not display:none: toggling display would replay its entrance */
	.site-koriz .h-hero2__text { padding-inline-end: calc(var(--kz-t) + 16px); }
	.site-koriz .h-hero2__text::after {
		content: ""; position: absolute; inset-inline-end: 0; inset-block-start: -48px; inset-block-end: calc(-1 * var(--kz-drop));
		inline-size: 100vw; border: 0 solid var(--kz-navy); border-inline-end-width: var(--kz-t); border-block-end-width: var(--kz-t);
		border-end-end-radius: calc(var(--kz-t) * 2.4); pointer-events: none;
	}
}

/* ---------- hero creative (Moti, 29.11; assets/js/creative.js) ---------- */
/* Koriz hero creative: the K is a camera that watches the visitor.
   A lens reticle (rings, ticks, crosshair) sits on the upper sensor and follows the mouse; the window shows a CCTV
   feed (REC, camera id, a live clock, a scan line); the lower sensor sends motion pulses; a spark runs along the line. */
.h-kcam { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.h-kcam * { vector-effect: non-scaling-stroke; }
.kc-ret { transition: opacity .6s; }
.kc-r1 { fill: none; stroke: #fff; stroke-opacity: .85; stroke-width: 1.6; }
.kc-r2 { fill: none; stroke: #EB9C3B; stroke-width: 2.2; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; animation: kc-spin 14s linear infinite; }
.kc-r3 { fill: none; stroke: #EB9C3B; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: kc-spin 7s linear infinite reverse; }
.kc-ticks { stroke: #273673; stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: kc-spin 40s linear infinite; }
.kc-cross { stroke: #fff; stroke-opacity: .7; stroke-width: 1.2; }
.kc-lock { fill: none; stroke: #EB9C3B; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: scale(1.8); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.h-kcam.is-locked .kc-lock { opacity: 1; transform: scale(1); }
.h-kcam.is-locked .kc-r2 { animation-duration: 3s; }
.kc-r2, .kc-r3, .kc-lock { filter: drop-shadow(0 0 3px rgba(235, 156, 59, .85)); }
.kc-sight { stroke: #EB9C3B; stroke-width: 1.8; stroke-dasharray: 2 6; animation: kc-dash .7s linear infinite; }
.kc-cone { mix-blend-mode: screen; }
@keyframes kc-dash { to { stroke-dashoffset: -8; } }
.kc-pupil { fill: #1A2350; }
.kc-glint { fill: #fff; opacity: .9; }
.kc-frame { fill: none; stroke: #273673; stroke-width: 2.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: kc-breathe 3.2s ease-in-out infinite; }
.kc-pulse { fill: none; stroke: #EB9C3B; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: kc-pulse 2.6s ease-out infinite; }
.kc-pulse--2 { animation-delay: 1.3s; }
@keyframes kc-spin { to { transform: rotate(360deg); } }
@keyframes kc-breathe { 50% { transform: scale(1.025); } }
@keyframes kc-pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }

/* the feed inside the window (clipped by the K's mask with the photo) */
.h-kcam__hud { position: absolute; inset: 0; pointer-events: none; font-family: "IBM Plex Mono", ui-monospace, monospace; color: #fff; font-size: 2.3cqi; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); direction: ltr; }
.h-kcam__rec { position: absolute; left: 16.5%; top: 13.5%; display: flex; align-items: center; gap: .5em; font-weight: 600; }
.h-kcam__rec::before { content: ""; inline-size: .8em; block-size: .8em; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 .6em #ff3b30; animation: kc-blink 1.2s steps(2, jump-none) infinite; }
.h-kcam__cam { position: absolute; left: 16.5%; top: 19%; opacity: .85; }
.h-kcam__time { position: absolute; left: 16.5%; top: 76%; white-space: pre; line-height: 1.45; font-variant-numeric: tabular-nums; }
.h-kcam__scan { position: absolute; inset-inline: 0; block-size: 18%; top: -18%; background: linear-gradient(180deg, transparent, rgba(235, 156, 59, .16) 70%, rgba(255, 255, 255, .35) 98%, transparent); animation: kc-scan 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
.h-kcam__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10, 16, 40, .35)); }
@keyframes kc-blink { 50% { opacity: 0; } }
@keyframes kc-scan { to { top: 100%; } }

/* on lock the feed zooms in on the target (transform-origin follows the reticle, koriz-cam.js) */
.site-koriz .h-kwin.is-locked .h-kwin__ph img { transform: scale(1.3); transition-duration: .8s; }

/* a spark runs along the line from the K to the page edge */
.site-koriz .h-kwin__run::after { content: ""; position: absolute; left: 0; bottom: calc(-1 * var(--kz-t)); inline-size: 14cqi; block-size: var(--kz-t); border-radius: 99px;
	background: linear-gradient(90deg, transparent, #EB9C3B 60%, #fff); filter: drop-shadow(0 0 1.2cqi #EB9C3B); animation: kc-spark 3.6s cubic-bezier(.5, 0, .2, 1) 2.2s infinite; opacity: 0; }
@keyframes kc-spark { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(90vw); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.kc-r2, .kc-r3, .kc-ticks, .kc-frame, .kc-pulse, .h-kcam__scan, .h-kcam__rec::before, .site-koriz .h-kwin__run::after { animation: none; }
	.kc-pulse, .h-kcam__scan { display: none; }
}
