/* Kinal Home: Case studies archive and single pages. */
.kcs, .kcs *, .kcs *::before, .kcs *::after { box-sizing: border-box; }
.kcs {
  --gutter: max(clamp(20px, 4vw, 72px), calc((100vw - 1600px) / 2));
  --navy: #273244; --accent: #e8603c; --cream: #f7f1ec; --line: #efe7e1; --muted: #6b7280;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 96px);
  background: #fff; color: #52525b; overflow-x: clip;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.kcs h1, .kcs h2, .kcs h3 { color: var(--navy); text-wrap: balance; }
.kcs-eyebrow { display: inline-block; margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.kcs em { font-style: normal; background: linear-gradient(135deg, #FFB45F 0%, #FD9A6D 40%, #F77C91 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.kcs .kinal-cta-btn { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- archive hero ---------- */
.kcs-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin: 0 0 clamp(48px, 7vw, 96px); }
.kcs-top h1, .kcs-split h1 { margin: 0 0 20px; font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; }
.kcs-top-lead { max-width: 560px; margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--muted); }
.kcs-top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0 0 clamp(28px, 4vw, 48px); }
.kcs-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #d9cfc7; }
.kcs-link:hover { text-decoration-color: var(--accent); color: var(--accent); }
.kcs-figs { display: flex; flex-wrap: wrap; gap: 20px clamp(24px, 4vw, 56px); margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.kcs-figs dt { color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; line-height: 1; }
.kcs-figs dd { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.kcs-stack { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.kcs-stack-card { position: absolute; width: 58%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--cream); box-shadow: 0 30px 60px -28px rgba(39, 50, 68, 0.45); border: 6px solid #fff; }
.kcs-stack-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcs-stack-card.is-1 { left: 22%; top: 0; z-index: 3; rotate: -2deg; }
.kcs-stack-card.is-2 { left: 0; bottom: 0; z-index: 2; rotate: -9deg; }
.kcs-stack-card.is-3 { right: 0; bottom: 4%; z-index: 1; rotate: 8deg; }
@media (prefers-reduced-motion: no-preference) {
  .kcs-stack-card { transition: rotate 0.7s cubic-bezier(0.22, 1, 0.36, 1), translate 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .kcs-stack:hover .is-1 { translate: 0 -8px; }
  .kcs-stack:hover .is-2 { rotate: -12deg; translate: -8px 0; }
  .kcs-stack:hover .is-3 { rotate: 11deg; translate: 8px 0; }
}

/* ---------- story ---------- */
.kcs-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); margin: 0 0 clamp(56px, 8vw, 112px); padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--cream); }
.kcs-story-text p { margin: 0 0 1em; font-size: 17px; line-height: 1.8; }
.kcs-story-text p:last-child { margin: 0; }
.kcs-story blockquote { align-self: center; margin: 0; padding: 0 0 0 clamp(20px, 3vw, 36px); border-left: 3px solid var(--accent); color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; line-height: 1.3; }

/* ---------- sections ---------- */
.kcs-sec { margin: 0 0 clamp(56px, 8vw, 112px); }
.kcs-sec-head { max-width: 760px; margin: 0 0 clamp(24px, 3.4vw, 44px); }
.kcs-sec-head h2 { margin: 0; font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
.kcs-sec-head p { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }

.kcs-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.kcs-rows li { display: grid; grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.kcs-rows b, .kcs-steps b { color: var(--accent); font-size: 13px; letter-spacing: 0.12em; }
.kcs-rows strong { color: var(--navy); font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.025em; }
.kcs-rows span { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- featured ---------- */
.kcs-feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin: 0 0 clamp(40px, 5vw, 72px); padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line); border-radius: 36px; background: #fff; box-shadow: 0 30px 70px -50px rgba(39, 50, 68, 0.5); }
.kcs-feature-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px; background: var(--cream); }
.kcs-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.kcs-feature:hover .kcs-feature-media img { scale: 1.04; }
.kcs-feature-body { padding: clamp(4px, 2vw, 24px) clamp(4px, 2vw, 24px) clamp(4px, 2vw, 24px) 0; }
.kcs-feature-body h3 { margin: 14px 0 8px; font-size: clamp(26px, 3vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
.kcs-feature-body h3 a { color: inherit; text-decoration: none; }
.kcs-feature-body p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.75; }
.kcs-client { color: var(--muted); font-weight: 600; font-size: 15px !important; }
.kcs-feature-label { margin: 22px 0 6px !important; color: var(--accent); font-size: 12.5px !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kcs-tags, .kcs-inds, .kcs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kcs-tags { margin: 18px 0 26px; }
.kcs-tags li, .kcs-chips li { padding: 8px 14px; border-radius: 9999px; background: var(--cream); color: #52525b; font-size: 13.5px; font-weight: 600; }
.kcs-chip { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 13px; border-radius: 9999px; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; }
.kcs-chip-flat { position: static; display: inline-block; background: var(--cream); }

/* ---------- filters and grid ---------- */
.kcs-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.kcs-filters button { padding: 10px 18px; border: 1px solid #d9cfc7; border-radius: 9999px; background: #fff; color: var(--navy); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.kcs-filters button:hover, .kcs-filters button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.kcs-filters button:focus-visible, .kcs-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kcs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.kcs-card { display: flex; flex-direction: column; gap: 18px; color: inherit; text-decoration: none; }
.kcs-card[hidden] { display: none; }
.kcs-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px; background: var(--cream); }
.kcs-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.kcs-card:hover .kcs-card-media img { scale: 1.06; }
.kcs-go-dot { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); transition: background-color 0.3s, color 0.3s, rotate 0.4s; }
.kcs-go-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kcs-card:hover .kcs-go-dot { background: var(--accent); color: #fff; rotate: -45deg; }
.kcs-card-body { display: flex; flex-direction: column; gap: 6px; }
.kcs-card-body small { color: #8e8d88; font-size: 13px; font-weight: 600; }
.kcs-card-body strong { color: var(--navy); font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.kcs-card-body > span { font-size: 15px; line-height: 1.65; color: var(--muted); }
.kcs-empty { color: var(--muted); }

/* ---------- numbers, process, industries, why ---------- */
.kcs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kcs-stats div { padding: 26px; border-radius: 22px; border: 1px solid var(--line); }
.kcs-stats strong { display: block; color: var(--accent); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(36px, 4.4vw, 56px); font-weight: 500; line-height: 1.05; }
.kcs-stats span { color: var(--muted); font-size: 15px; }

.kcs-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kcs-steps li { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; background: var(--cream); }
.kcs-steps strong { color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.kcs-steps span { font-size: 15px; line-height: 1.65; color: var(--muted); }
.kcs-steps b { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: 0; }

.kcs-inds { gap: 10px 12px; }
.kcs-inds li { padding: 14px 24px; border: 1px solid #d9cfc7; border-radius: 9999px; color: var(--navy); font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.01em; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.kcs-inds li:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.kcs-why { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.kcs-why .kcs-sec-head { position: sticky; top: 150px; margin: 0; }
.kcs-why-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.kcs-why-list li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 0 20px 44px; border-bottom: 1px solid var(--line); }
.kcs-why-list li::before { content: ''; position: absolute; left: 0; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.kcs-why-list strong { color: var(--navy); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.kcs-why-list span { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- closing call to action ---------- */
.kcs-final { position: relative; overflow: hidden; margin: 0 0 clamp(48px, 6vw, 88px); padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); border-radius: 36px; background: var(--navy); color: #d9dde5; text-align: center; isolation: isolate; }
.kcs-final h2 { max-width: 820px; margin: 0 auto 18px; color: #fff; font-size: clamp(30px, 4.6vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; }
.kcs-final p { max-width: 640px; margin: 0 auto 30px; font-size: 18px; line-height: 1.7; }
.kcs-orb { position: absolute; z-index: -1; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232, 96, 60, 0.55), transparent 68%); filter: blur(20px); }

/* ---------- single ---------- */
.kcs-back { display: inline-block; margin: 0 0 22px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.kcs-back:hover { color: var(--accent); }
.kcs-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin: 0 0 clamp(48px, 7vw, 96px); }
.kcs-split h1 { font-size: clamp(32px, 4.4vw, 58px); }
.kcs-split-img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 32px; background: var(--cream); box-shadow: 0 40px 80px -48px rgba(39, 50, 68, 0.55); }
.kcs-split-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcs-meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.kcs-meta dt { margin: 0 0 4px; color: #8e8d88; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.kcs-meta dd { margin: 0; color: var(--navy); font-size: 16px; font-weight: 600; }
.kcs-body { max-width: 920px; margin: 0 auto clamp(48px, 6vw, 88px); }
.kcs-block { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px 48px; padding: clamp(24px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.kcs-block h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.kcs-block h2 span { display: block; margin: 0 0 8px; color: var(--accent); font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 500; }
.kcs-block p { margin: 0 0 1em; font-size: 17px; line-height: 1.8; }
.kcs-block p:last-child { margin-bottom: 0; }
.kcs-results ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.kcs-results li { position: relative; padding: 16px 18px 16px 52px; border-radius: 16px; background: var(--cream); color: var(--navy); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.kcs-results li::before { content: ''; position: absolute; left: 18px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kcs-impact > div > p { color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }
.kcs-sub { margin: 28px 0 12px; color: var(--navy); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.kcs-more h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .kcs-top, .kcs-story, .kcs-feature, .kcs-why, .kcs-split { grid-template-columns: 1fr; }
  .kcs-stack { max-width: 420px; }
  .kcs-why .kcs-sec-head { position: static; }
  .kcs-feature-body { padding: 4px 8px 12px; }
  .kcs-split-img { max-width: 480px; }
}
@media (max-width: 720px) {
  .kcs-rows li { grid-template-columns: 44px minmax(0, 1fr); }
  .kcs-rows span { grid-column: 2; }
  .kcs-block { grid-template-columns: 1fr; }
  .kcs-final, .kcs-feature, .kcs-story { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .kcs-card-media img, .kcs-feature-media img, .kcs-go-dot, .kcs-stack-card { transition: none; }
}
