/* ==========================================================================
   Category pages — presentation design language (Oct 2026).
   Colour-mood hero, facets, folded cube-face galleries, full-bleed walls
   with brand tags, renewal tracks / partners / 9 steps, closing CTA.
   Markup: taxonomy-project_category.php + template-parts/category/story.php
   ========================================================================== */
.kcs, .kcs-cta {
	--kcs-navy: #0C163A;
	--kcs-blue: #3E57B1;
	--kcs-blue2: #416FC5;
	--kcs-green: #209E4A;
	--kcs-green2: #42A147;
	--kcs-copper: #9C603B;
	--kcs-copper2: #CE835B;
	--kcs-soft: #F5F6FA;
}
.kcs-num { font-family: -apple-system, 'Segoe UI', Arial, sans-serif; direction: ltr; unicode-bidi: isolate; }
.kcs-ltr { direction: ltr; unicode-bidi: isolate; }
.kcs-mark { width: 13px; height: auto; display: inline-block; vertical-align: middle; margin-inline-end: 10px; }
.kcs-anchor { scroll-margin-top: 110px; }


/* ---------- SECTIONS ---------- */
.kcs { color: var(--kleyman-text, #1A1D24); }
.kcs-sec { position: relative; overflow: hidden; padding-block: clamp(70px, 8vw, 120px); }
.kcs-sec--soft { background: var(--kcs-soft); }
.kcs-sec--blue { background: linear-gradient(225deg, #416FC5 0%, #3E57B1 55%, #2C3F86 100%); color: #fff; }
.kcs-sec--navy { background: var(--kcs-navy); color: #fff; }
.kcs-gap { height: 16px; }

.kcs-head { margin-bottom: clamp(30px, 4vw, 52px); max-width: 860px; }
.kcs-head--center { text-align: center; margin-inline: auto; }
.kcs-eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .03em; margin: 0 0 12px; }
.kcs-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; font-weight: 300; margin: 0; color: var(--kcs-navy); letter-spacing: -.01em; }
.kcs-title b { font-weight: 800; }
.kcs-sec--blue .kcs-title, .kcs-sec--navy .kcs-title { color: #fff; }
.kcs-lead { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.65; color: var(--kleyman-text-muted, #5B6270); }
.kcs-head--center .kcs-lead { margin-inline: auto; max-width: 44em; }
.kcs-body { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.7; margin: 0; color: var(--kleyman-text-muted, #5B6270); }
.kcs-sec--blue .kcs-body, .kcs-sec--navy .kcs-body { color: rgba(255,255,255,.88); }

.kcs-c-green { color: var(--kcs-green); }
.kcs-c-blue { color: var(--kcs-blue); }
.kcs-c-copper { color: var(--kcs-copper2); }
.kcs-c-white { color: #fff; }
.kcs-sec--blue .kcs-c-green { color: #7EE29A; }
.kcs-sec--blue .kcs-eyebrow .kcs-mark, .kcs-sec--navy .kcs-eyebrow .kcs-mark { filter: brightness(0) invert(1); }

/* split: text + facet */
.kcs-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }
.kcs-split__txt .kcs-head { margin-bottom: 22px; }
.kcs-split__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.kcs-facet, .kp-facet, .kp-hexpic, .kp-iso { overflow: visible; }

.kcs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; max-width: 520px; }
.kcs-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.kcs-tile { border-top: 3px solid var(--kcs-green); background: var(--kcs-soft); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.kcs-tile:nth-child(2) { border-top-color: var(--kcs-blue); }
.kcs-tile:nth-child(3) { border-top-color: var(--kcs-copper2); }
.kcs-tile b { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; color: var(--kcs-navy); line-height: 1.1; text-align: right; }
.kcs-tile span { font-size: 15px; color: var(--kleyman-text-muted, #5B6270); }
.kcs-sec--navy .kcs-tile { background: rgba(255,255,255,.06); }
.kcs-sec--navy .kcs-tile b { color: #fff; }
.kcs-sec--navy .kcs-tile span { color: rgba(255,255,255,.75); }
.kcs-pill { display: inline-block; background: var(--kcs-copper2); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

/* iso line-work deco */
.kcs-deco { position: absolute; top: 34px; left: 34px; width: 230px; height: auto; opacity: .35; pointer-events: none; z-index: 0; }
.kcs-deco--light { opacity: .6; }

/* fold gallery (SVG from kp_fold) */
.kcs-foldwrap { position: relative; }
.kcs-fold svg { display: block; width: 100%; height: auto; }
.kcs-fold .kp-svgt { font-family: var(--kleyman-font); font-size: 27px; font-weight: 800; fill: #fff; text-anchor: middle; direction: rtl; }
.kcs-fold .kp-svgt--c { font-size: 30px; }
.kcs-fold .kp-svgs { font-family: var(--kleyman-font); font-size: 18px; font-weight: 400; fill: rgba(255,255,255,.88); text-anchor: middle; direction: rtl; }
.kcs-fold .kp-svgbig { font-family: -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 66px; font-weight: 800; fill: #fff; text-anchor: middle; direction: ltr; }
.kcs-fold image { transition: transform .8s var(--kleyman-ease, ease); transform-box: fill-box; transform-origin: center; }
.kcs-fold .kp-ftile:hover image { transform: scale(1.04); }

/* full-bleed wall */
.kcs-wall { position: relative; height: clamp(420px, 52vw, 820px); overflow: hidden; isolation: isolate; }
.kcs-wall .kp-wallsvg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.kcs-wtag { position: absolute; right: 0; bottom: clamp(30px, 5vw, 70px); display: flex; align-items: stretch; filter: drop-shadow(0 18px 40px rgba(12,22,58,.28)); }
.kcs-wtag__main { background: var(--kcs-navy); color: #fff; padding: 26px clamp(40px, 7vw, 110px) 30px 46px; clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 86%); display: flex; flex-direction: column; gap: 4px; min-width: min(420px, 80vw); }
.kcs-wtag__face { width: 34px; margin-left: -1px; clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%); order: -1; }
.kcs-wtag__face--green { background: var(--kcs-green); } .kcs-wtag__face--blue { background: var(--kcs-blue2); } .kcs-wtag__face--copper { background: var(--kcs-copper2); } .kcs-wtag__face--navy { background: var(--kcs-green2); }
.kcs-wtag__cat { margin: 0; font-size: 15px; font-weight: 700; color: #5CC77A; letter-spacing: .02em; }
.kcs-wtag__t { margin: 0; font-size: clamp(26px, 3vw, 44px); font-weight: 800; line-height: 1.08; }
.kcs-wtag__s { margin: 0; font-size: clamp(14px, 1.2vw, 18px); color: rgba(255,255,255,.82); }

/* renewal tracks */
.kcs-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 70px); }
.kcs-track svg { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.kcs-track__k { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--kcs-blue); }
.kcs-track--green .kcs-track__k { color: var(--kcs-green); }
.kcs-track__t { margin: 0 0 12px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 800; color: var(--kcs-navy); }

/* partners cards */
.kcs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; z-index: 1; }
.kcs-card { background: #fff; color: var(--kcs-navy); border-radius: 16px; padding: 26px 24px; box-shadow: 0 22px 50px rgba(12,22,58,.16); border-top: 4px solid var(--kcs-blue); display: flex; flex-direction: column; gap: 10px; }
.kcs-card:nth-child(3n+2) { border-top-color: var(--kcs-green); }
.kcs-card:nth-child(3n) { border-top-color: var(--kcs-copper2); }
.kcs-card__n { display: flex; align-items: center; justify-content: space-between; }
.kcs-card__n b { font-size: 32px; font-weight: 800; color: var(--kcs-blue); }
.kcs-card:nth-child(3n+2) .kcs-card__n b { color: var(--kcs-green); }
.kcs-card:nth-child(3n) .kcs-card__n b { color: var(--kcs-copper); }
.kcs-card__n .kcs-mark { margin: 0; width: 11px; }
.kcs-card__t { margin: 0; font-size: 22px; font-weight: 800; }
.kcs-card__d { margin: 0; font-size: 16px; line-height: 1.65; color: var(--kleyman-text-muted, #5B6270); }

/* 9 steps */
.kcs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 24px; }
.kcs-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.kcs-steps { justify-items: center; }
.kcs-step:nth-child(n+6) { transform: translateX(-50%); }
.kcs-step__hex { position: relative; width: 84px; height: 97px; display: grid; place-items: center; }
.kcs-step__hex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kcs-step__hex polygon { fill: var(--kcs-blue); }
.kcs-step--green .kcs-step__hex polygon { fill: var(--kcs-green); }
.kcs-step--copper .kcs-step__hex polygon { fill: var(--kcs-copper); }
.kcs-step__hex b { position: relative; font-size: 36px; font-weight: 800; color: #fff; }
.kcs-step__t { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--kcs-navy); max-width: 13em; }

/* industry trio */
.kcs-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); position: relative; z-index: 1; }
.kcs-hex { margin: 0; text-align: center; }
.kcs-hex svg { display: block; width: 78%; height: auto; margin: 0 auto 14px; }
.kcs-hex figcaption b { display: block; font-size: 22px; font-weight: 800; color: var(--kcs-navy); }
.kcs-hex figcaption span { display: block; font-size: 15px; color: var(--kleyman-text-muted, #5B6270); }

/* closing CTA — white, with clear space before the footer */
.kcs-cta { padding-block: clamp(70px, 8vw, 110px); margin-bottom: clamp(48px, 6vw, 90px); }
.kcs-cta__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--kleyman-border, #E4E7EC); padding-top: clamp(40px, 5vw, 64px); }
.kcs-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kcs-btn-outline { border: 1.5px solid var(--kcs-navy); color: var(--kcs-navy); direction: ltr; }
.kcs-btn-outline:hover { background: var(--kcs-navy); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
	.kcs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kcs-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kcs-step:nth-child(n+6) { transform: none; }
}
@media (max-width: 900px) {
	.kcs-split { grid-template-columns: 1fr; }
	.kcs-split__art { order: -1; }
}
@media (max-width: 760px) {
	.kcs-tiles--3 { grid-template-columns: 1fr 1fr; }
	.kcs-tracks, .kcs-cards { grid-template-columns: 1fr; }
	.kcs-steps { grid-template-columns: 1fr; justify-items: stretch; gap: 14px; }
	.kcs-step { flex-direction: row; text-align: right; gap: 16px; }
	.kcs-step__hex { width: 54px; height: 62px; flex: none; }
	.kcs-step__hex b { font-size: 24px; }
	.kcs-trio { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
	/* fold: swipe sideways rather than shrink the captions to nothing */
	.kcs-foldwrap { margin-inline: calc(var(--kleyman-gutter, 20px) * -1); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline: 20px; }
	.kcs-foldwrap::-webkit-scrollbar { display: none; }
	.kcs-fold { width: 1050px; }
	.kcs-wall { height: 115vw; }
	.kcs-wtag { bottom: 22px; }
	.kcs-wtag__main { padding: 18px 30px 22px 26px; min-width: 0; max-width: 86vw; }
	.kcs-deco { width: 140px; top: 14px; left: 14px; }
	.kcs-cta__inner { flex-direction: column; align-items: flex-start; }
}
