/* Klyne & Co. — homepage showcase and chat contact form.
   1. Hero: apps, sheets, emails and notes drift, then merge into one dashboard.
   2. Before / after slider (a change-order flowchart).
   3. Chat-style contact form.
   Every class is prefixed ks- so nothing here collides with style.css. */

/* ───────────── 1. HERO STAGE ───────────── */
.ks-track { position: relative; }
.ks-track.ks-pin { height: calc(100vh + 240vh); height: calc(100svh + 240vh); }
.ks-track.ks-pin .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: 5.5rem; padding-bottom: 2.25rem; }

/* Words (headline, subline, buttons) fade away on scroll; the stage, caption and closing buttons take the screen. */
.ks-words { will-change: transform, opacity; }
.ks-stage { position: absolute; left: 50%; top: 45%; width: min(1000px, 94vw); transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.ks-caption { position: absolute; left: 50%; bottom: 16%; width: min(560px, 90vw); transform: translateX(-50%); margin: 0; text-align: center; font-size: 0.9rem; color: #B9C0C4; z-index: 3; opacity: 0; }
.ks-caption b { color: #3B82F6; font-weight: 600; }
.ks-cta-end { position: absolute; left: 0; right: 0; bottom: 8%; padding: 0 5vw; z-index: 4; display: flex; justify-content: center; opacity: 0; visibility: hidden; }

.ks-cta-end .hero-actions { flex-wrap: wrap; justify-content: center; margin: 0; }

/* Items live in a layer over the whole hero so they can arrive from every edge. */
.ks-field { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

.ks-item {
    position: absolute;
    left: 0;
    top: 0;
    width: 126px;
    will-change: transform, opacity;
}

.ks-item.ks-wide { width: 196px; }

.ks-item-in {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.97);
    color: #1C2120;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    animation: ksDrift 3.2s ease-in-out infinite alternate;
    animation-delay: var(--f, 0s);
}

.ks-item-in svg { flex: none; display: block; }
.ks-item-in span { overflow: hidden; text-overflow: ellipsis; }

.ks-note .ks-item-in { background: #fff; color: #1C2120; border-top: 3px solid #3B82F6; border-radius: 4px; }
.ks-mail .ks-item-in { background: #D9DCDB; border-left: 3px solid #EA4335; border-radius: 4px; }
.ks-sheet .ks-item-in { background: #F1FAF4; border: 1px solid #BFE3CB; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 0.64rem; }

@keyframes ksDrift {
    from { transform: translateY(-3px); }
    to { transform: translateY(4px); }
}

.ks-field.ks-late .ks-item-in { animation-play-state: paused; }

/* Script drives opacity and scale from the scroll position. */
.ks-dash {
    position: relative;
    opacity: 0;
    background: #1C2120;
    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 14px;
    padding: 1.6rem 1.8rem 1.5rem;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 24px 70px rgba(59, 130, 246, 0.25);
    pointer-events: none;
}

.ks-dash-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ks-dash-top b { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.ks-pill { font-size: 0.8rem; letter-spacing: 0.06em; color: #fff; background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(59, 130, 246, 0.45); padding: 0.18rem 0.55rem; border-radius: 99px; white-space: nowrap; }
.ks-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 1.2rem; }
.ks-kpi { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 0.85rem 1rem; }
.ks-kpi b { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.ks-kpi span { font-size: 0.86rem; color: #8C8C8C; }
.ks-dash-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ks-rows { display: grid; gap: 0.55rem; }
.ks-col-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--soft-gray); margin-bottom: 0.35rem; }
.ks-sops .ks-row::before { content: ''; border-radius: 3px; width: 15px; height: 20px; background: rgba(59, 130, 246, 0.25); border: 1.5px solid #80C0FF; }
.ks-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; background: rgba(255, 255, 255, 0.05); border-radius: 9px; padding: 0.65rem 0.8rem; color: #fff; }
.ks-row::before { content: '\2713'; flex: none; width: 21px; height: 21px; border-radius: 50%; background: #3B82F6; color: #fff; font-size: 0.65rem; display: grid; place-items: center; }


.ks-autos .ks-row::before { content: '\2192'; background: transparent; border: 1.5px solid #3B82F6; color: #3B82F6; font-size: 0.7rem; }
.ks-connected { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ks-connected .ks-col-label { margin: 0; }
.ks-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ks-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.85rem 0.45rem 0.5rem; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; color: #fff; font-size: 0.9rem; font-weight: 500; }
.ks-chip i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.ks-chip i svg { width: 20px; height: 20px; }
.ks-chip em { font-style: normal; }

@media (max-width: 900px) {
    .ks-kpis { grid-template-columns: repeat(2, 1fr); }
    .ks-dash-cols { grid-template-columns: 1fr 1fr; }
    .ks-col-auto { display: none; }
}

@media (max-width: 560px) {
    .ks-dash { padding: 0.85rem; }
    .ks-dash-top { margin-bottom: 0.6rem; }
    .ks-kpis { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-bottom: 0.7rem; }
    .ks-kpi:nth-child(4) { display: none; }
    .ks-kpi { padding: 0.45rem 0.5rem; }
    .ks-kpi b { font-size: 1.25rem; }
    .ks-kpi span { font-size: 0.64rem; }
    .ks-dash-cols { grid-template-columns: 1fr; gap: 0.55rem; }
    .ks-dash-cols .ks-rows .ks-row:nth-child(n+3) { display: none; }
    .ks-row { padding: 0.4rem 0.55rem; font-size: 0.74rem; }
    .ks-connected { margin-top: 0.7rem; padding-top: 0.6rem; gap: 0.5rem; }
    .ks-chip em { display: none; }
    .ks-chip { padding: 0.3rem; }
    .ks-chip i { width: 28px; height: 28px; }
    .ks-caption { bottom: 19%; font-size: 0.82rem; }
    .ks-cta-end { bottom: 5%; }
    .ks-cta-end .btn { padding: 0.8rem 0.9rem; font-size: 0.7rem; }
}

/* With reduced motion the stage shows its finished state and the items never appear. */
@media (prefers-reduced-motion: reduce) {
    .ks-field { display: none; }
}

/* ───────────── 2. BEFORE / AFTER ───────────── */
.ks-compare { background: var(--off-white); padding: 6rem 5vw; }
.ks-compare-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.ks-compare .section-title { margin-bottom: 1rem; }
.ks-compare-sub { max-width: 560px; margin: 0 auto 2.25rem; color: var(--gray-text-safe); font-size: 1rem; line-height: 1.7; }
.ks-compare-foot { margin-top: 1rem; font-size: 0.8rem; color: var(--gray-text-safe); }

.ks-ba {
    --pos: 50%;
    position: relative;
    height: 440px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(28, 33, 32, 0.12);
    box-shadow: 0 20px 50px rgba(28, 33, 32, 0.12);
    user-select: none;
    touch-action: pan-y;
    text-align: left;
}

.ks-side { position: absolute; inset: 0; padding: 1.25rem; }
.ks-before { background: #1C2120; z-index: 1; }
.ks-after { background: #1C2120; clip-path: inset(0 0 0 var(--pos)); z-index: 2; }
.ks-tag { transition: opacity 0.2s ease; }
.ks-ba.ks-lo .ks-tag-b, .ks-ba.ks-hi .ks-tag-a { opacity: 0; }

.ks-tag { position: absolute; top: 12px; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 99px; z-index: 3; }
.ks-tag-b { left: 12px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.ks-tag-a { right: 12px; background: rgba(59, 130, 246, 0.25); color: #fff; }

.ks-mess { position: absolute; font-size: 0.72rem; padding: 0.5rem 0.65rem; border-radius: 6px; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35); max-width: 190px; }
.ks-mess.n { background: #fff; color: #1C2120; border-top: 3px solid #3B82F6; }
.ks-mess.w { background: #DCF8C6; color: #1d3a12; }
.ks-mess.m { background: #D9DCDB; color: #1C2120; }
.ks-mess.ap { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; background: rgba(255, 255, 255, 0.97); color: #1C2120; font-weight: 500; padding: 0.35rem 0.55rem; }
.ks-mess.ap svg { flex: none; display: block; }

.ks-flow { position: absolute; inset: 2.8rem 1rem 0.75rem 1rem; }
.ks-flow svg { width: 100%; height: 100%; display: block; }
.ks-flow-tall { display: none !important; }
.ks-flow text { font-family: var(--sans); text-anchor: middle; fill: #fff; }
.ks-flow .t1 { font-size: 12.5px; font-weight: 500; }
.ks-flow .t3 { font-size: 9px; letter-spacing: 0.16em; font-weight: 600; fill: var(--soft-gray); }
.ks-flow .lab { font-size: 11px; font-weight: 600; fill: #fff; }
.ks-flow .nd { fill: rgba(59, 130, 246, 0.16); stroke: rgba(59, 130, 246, 0.6); stroke-width: 1.2; }
.ks-flow .trig { fill: #3B82F6; }
.ks-flow .dec { fill: rgba(59, 130, 246, 0.14); stroke: #3B82F6; stroke-width: 1.5; }
.ks-flow .end { fill: rgba(59, 130, 246, 0.22); stroke: #3B82F6; stroke-width: 1.5; }
.ks-flow .ln { fill: none; stroke: #3B82F6; stroke-width: 1.8; }

.ks-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #3B82F6; z-index: 4; pointer-events: none; }
.ks-handle::after { content: '\2194'; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: #3B82F6; color: #fff; display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); }
.ks-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.ks-ba input[type=range]:focus-visible + .ks-handle::after { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
    .ks-compare { padding: 4.5rem 5vw; }
    .ks-ba { height: 640px; }
    .ks-flow-wide { display: none !important; }
    .ks-flow-tall { display: block !important; }
    .ks-mess.ap { font-size: 0.62rem; padding: 0.3rem 0.45rem; }
}

/* ───────────── 3. CHAT CONTACT FORM ───────────── */
.ks-chat { display: none; flex-direction: column; gap: 0.75rem; height: min(560px, 82vh); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 1.25rem; }
.ks-chat.ks-on { display: flex; }
.ks-chat-head { flex: none; display: flex; gap: 0.6rem; align-items: center; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 0.9rem; color: #fff; }
.ks-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 0.8rem; }
.ks-msgs { display: grid; gap: 0.5rem; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 0.25rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.ks-slot { flex: none; }
.ks-bubble { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; animation: ksPop 0.35s ease both; overflow-wrap: anywhere; }
.ks-bubble.bot { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; border-bottom-left-radius: 4px; justify-self: start; }
.ks-bubble.me { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.ks-bubble.err { background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.3); color: #fca5a5; justify-self: start; border-bottom-left-radius: 4px; }
@keyframes ksPop { from { opacity: 0; transform: translateY(8px); } }
.ks-picks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ks-pick { background: transparent; color: #fff; border: 1px solid var(--blue); border-radius: 99px; padding: 0.45rem 0.95rem; font: inherit; font-size: 0.84rem; cursor: pointer; transition: background 0.2s; }
.ks-pick:hover { background: var(--blue); }
.ks-entry { display: flex; gap: 0.5rem; }
.ks-entry input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 99px; padding: 0.6rem 1rem; font: inherit; font-size: 0.9rem; }
.ks-entry input:focus { outline: none; border-color: var(--blue); }
.ks-entry button { background: var(--blue); color: #fff; border: 0; border-radius: 99px; padding: 0.6rem 1.2rem; font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.ks-entry button:disabled { opacity: 0.6; cursor: default; }
.ks-switch { flex: none; align-self: flex-start; background: none; border: 0; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 0.78rem; text-decoration: underline; cursor: pointer; padding: 0; margin-top: auto; }
.ks-switch:hover { color: #fff; }
.ks-chat-link { display: none; align-self: flex-start; margin: 0 0 0.75rem; background: none; border: 0; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 0.78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.ks-chat-link.ks-on { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
    .ks-bubble { animation: none; }
}

/* ───────────── PLATFORM STRIP ─────────────
   Real logos where we have them (Monday.com, Google Workspace as wordmarks; ClickUp, Make and
   Fillout as icons with the name). The rest show the name until their logo files are added to images/logos/. */
.tools-marquee-track .ks-plat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.95rem;
    background: var(--white);
    border: 1px solid rgba(28, 33, 32, 0.08);
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    opacity: 0.92;
    transition: opacity 0.3s, transform 0.3s;
}

.tools-marquee-track .ks-plat img {
    display: block;
    height: 22px;
    width: auto;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    opacity: 1;
}

.tools-marquee-track .tool-logo-link:hover .ks-plat { opacity: 1; transform: translateY(-2px); }
.tools-marquee-track .tool-logo-link:hover .ks-plat img { transform: none; }



/* ───────────── PLATFORM WALL (bricks) ─────────────
   Replaces the scrolling ribbon. Three courses of three bricks; the middle course is shifted half a brick. */
.tools-banner .ks-wall {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 8px;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 max(16px, 5vw);
    box-sizing: content-box;
}

.ks-wall .ks-brick { display: block; text-decoration: none; }
.ks-wall .ks-brick:nth-child(1) { grid-column: 1 / span 2; }
.ks-wall .ks-brick:nth-child(2) { grid-column: 3 / span 2; }
.ks-wall .ks-brick:nth-child(3) { grid-column: 5 / span 2; }
.ks-wall .ks-brick:nth-child(4) { grid-column: 2 / span 2; }
.ks-wall .ks-brick:nth-child(5) { grid-column: 4 / span 2; }
.ks-wall .ks-brick:nth-child(6) { grid-column: 6 / span 2; }
.ks-wall .ks-brick:nth-child(7) { grid-column: 1 / span 2; }
.ks-wall .ks-brick:nth-child(8) { grid-column: 3 / span 2; }
.ks-wall .ks-brick:nth-child(9) { grid-column: 5 / span 2; }
.ks-wall .ks-brick:nth-child(10) { grid-column: 2 / span 2; }
.ks-wall .ks-brick:nth-child(11) { grid-column: 4 / span 2; }
.ks-wall .ks-brick:nth-child(12) { grid-column: 1 / span 2; }
.ks-wall .ks-brick:nth-child(13) { grid-column: 3 / span 2; }

@media (min-width: 700px) {
    .tools-banner .ks-wall { grid-template-columns: repeat(8, 1fr); max-width: 940px; }
    .ks-wall .ks-brick:nth-child(1) { grid-column: 1 / span 2; }
    .ks-wall .ks-brick:nth-child(2) { grid-column: 3 / span 2; }
    .ks-wall .ks-brick:nth-child(3) { grid-column: 5 / span 2; }
    .ks-wall .ks-brick:nth-child(4) { grid-column: 7 / span 2; }
    .ks-wall .ks-brick:nth-child(5) { grid-column: 2 / span 2; }
    .ks-wall .ks-brick:nth-child(6) { grid-column: 4 / span 2; }
    .ks-wall .ks-brick:nth-child(7) { grid-column: 6 / span 2; }
    .ks-wall .ks-brick:nth-child(8) { grid-column: 1 / span 2; }
    .ks-wall .ks-brick:nth-child(9) { grid-column: 3 / span 2; }
    .ks-wall .ks-brick:nth-child(10) { grid-column: 5 / span 2; }
    .ks-wall .ks-brick:nth-child(11) { grid-column: 2 / span 2; }
    .ks-wall .ks-brick:nth-child(12) { grid-column: 4 / span 2; }
    .ks-wall .ks-brick:nth-child(13) { grid-column: 6 / span 2; }
}

.ks-wall .ks-plat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 72px;
    padding: 0 0.75rem;
    background: var(--white);
    border: 1px solid rgba(28, 33, 32, 0.1);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(28, 33, 32, 0.05), 0 8px 18px rgba(28, 33, 32, 0.05);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    opacity: 1;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ks-wall .ks-plat img { height: 26px; max-width: 100%; object-fit: contain; }
.ks-wall .ks-plat img[src$="fillout.svg"] { height: 24px; }
.ks-wall .ks-plat img[src$="gemini.svg"] { height: 30px; }
.ks-wall .ks-brick:hover .ks-plat,
.ks-wall .ks-brick:focus-visible .ks-plat {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 14px 28px rgba(28, 33, 32, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.25);
}

@media (max-width: 600px) {
    .ks-wall .ks-plat { height: 56px; padding: 0 0.4rem; font-size: 0.78rem; gap: 0.35rem; }
    .ks-wall .ks-plat img { height: 20px; }
}

.ks-dot { pointer-events: none; filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.9)); transition: opacity 0.3s; }

.ks-wall.ks-build .ks-brick { will-change: transform, opacity; }

/* ───────────── SPRINT TIMELINE (sprint page) ───────────── */
.ks-rail { position: relative; height: 92px; margin: 0 2px 0.75rem; }
.ks-rail-line { position: absolute; left: 0; right: 0; top: 17px; height: 4px; border-radius: 4px; background: rgba(28, 33, 32, 0.1); }
.ks-rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-light)); box-shadow: 0 0 14px rgba(59, 130, 246, 0.5); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
.ks-rail-node { position: absolute; top: 9px; left: var(--at); transform: translateX(-50%); text-align: center; white-space: nowrap; }
.ks-rail-node.ks-first { transform: none; text-align: left; }
.ks-rail-node.ks-last { transform: translateX(-100%); text-align: right; }
.ks-rail-node i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid rgba(28, 33, 32, 0.2); transition: background 0.35s, border-color 0.35s, box-shadow 0.35s; }
.ks-rail-node:not(.ks-first):not(.ks-last) i { margin: 0 auto; }
.ks-rail-node.ks-last i { margin-left: auto; }
.ks-rail-node b { display: block; margin-top: 0.6rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--gray-text-safe); transition: color 0.35s; }
.ks-rail-node small { display: block; font-size: 0.72rem; color: var(--gray-text-safe); }
.ks-rail-node.ks-on i { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2); }
.ks-rail-node.ks-on b { color: var(--dark); }
.ks-sprint-grid .s-card { transition: border-color 0.5s, box-shadow 0.5s; }
.ks-sprint-grid .s-card.ks-lit { border-top-color: var(--blue) !important; box-shadow: 0 18px 40px rgba(59, 130, 246, 0.14); }
.ks-sprint-grid .s-card.ks-lit > span:first-child { color: var(--blue) !important; transition: color 0.5s; }

@media (max-width: 960px) {
    .ks-rail { display: none; }
    .ks-sprint-grid { position: relative; padding-left: 1.6rem; }
    .ks-sprint-grid::before { content: ''; position: absolute; left: 0.45rem; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: rgba(28, 33, 32, 0.1); }
    .ks-sprint-grid::after { content: ''; position: absolute; left: 0.45rem; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--blue), var(--blue-light)); box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); transform: scaleY(var(--p, 1)); transform-origin: 50% 0; }
}

/* ───────────── SERVICE CARD ANIMATIONS (services page) ─────────────
   Each plays when the block scrolls into view and again on hover. With no script, or with reduced
   motion, everything shows its finished state. */
.ks-armed .ks-flowsvg .ks-l { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ks-armed .ks-flowsvg .ks-n { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.6); }
.ks-play .ks-flowsvg .ks-n { animation: ksNodeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ks-play .ks-flowsvg .ks-l { stroke-dasharray: 1; animation: ksDraw 0.5s ease both; }
.ks-play .ks-flowsvg .ks-n:nth-of-type(1) { animation-delay: 0s; }
.ks-play .ks-flowsvg .ks-l:nth-of-type(1) { animation-delay: 0.3s; }
.ks-play .ks-flowsvg .ks-n:nth-of-type(2) { animation-delay: 0.7s; }
.ks-play .ks-flowsvg .ks-l:nth-of-type(2), .ks-play .ks-flowsvg .ks-l:nth-of-type(3) { animation-delay: 1.05s; }
.ks-play .ks-flowsvg .ks-n:nth-of-type(3), .ks-play .ks-flowsvg .ks-n:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes ksNodeIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes ksDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.ks-boltsvg .ks-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ks-boltsvg .ks-orbit, .ks-boltsvg .ks-bolt { transform-box: view-box; transform-origin: 60px 60px; }
.ks-play .ks-boltsvg .ks-ring { animation: ksRing 1.6s ease-out 2; }
.ks-play .ks-boltsvg .ks-ring2 { animation-delay: 0.5s; }
.ks-play .ks-boltsvg .ks-orbit { animation: ksOrbit 3.2s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
.ks-play .ks-boltsvg .ks-bolt { animation: ksPulse 0.8s ease-in-out 3; }
@keyframes ksRing { 0% { opacity: 0.7; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes ksOrbit { from { transform: rotate(-200deg); } to { transform: rotate(0); } }
@keyframes ksPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

.ks-armed .ks-fixsvg .ks-gap { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ks-armed .ks-fixsvg .ks-ok, .ks-armed .ks-fixsvg .ks-tick { opacity: 0; }
.ks-fixsvg .ks-crack { display: none; }
.ks-armed .ks-fixsvg .ks-crack { display: inline; }
.ks-play .ks-fixsvg .ks-crack { animation: ksFade 0.3s ease 0.6s reverse both; }
.ks-play .ks-fixsvg .ks-gap { stroke-dasharray: 1; animation: ksDraw 0.6s ease 0.6s both; }
.ks-play .ks-fixsvg .ks-ok { animation: ksPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both; transform-box: fill-box; transform-origin: center; }
.ks-play .ks-fixsvg .ks-tick { animation: ksFade 0.3s ease 1.45s both; }
@keyframes ksFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ksPop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }

/* Sprint steps on /services: numbers fill in order and a line links them. */
.ks-steps .sp-step { position: relative; }
.ks-steps .sp-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: -1.6rem; width: 2px; background: var(--blue); opacity: 0.35; transform: scaleY(1); transform-origin: 50% 0; }
.ks-armed.ks-steps .sp-step:not(:last-child)::after { transform: scaleY(0); }
.ks-play.ks-steps .sp-step:not(:last-child)::after { animation: ksLine 0.5s ease both; animation-delay: calc(var(--k, 0) * 0.55s + 0.35s); }
.ks-play.ks-steps .sp-num { animation: ksNum 0.5s ease both; animation-delay: calc(var(--k, 0) * 0.55s); }
@keyframes ksLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ksNum { from { } to { background: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18); } }

/* About: the software and automation team card now stands alone (names removed). */
.dev-team-container { grid-template-columns: 1fr; }

/* ───────────── HEADLINE CLIPPING FIX (italic gradient text) ─────────────
   background-clip:text only paints inside the element's own box. When the italic line wraps, only the
   last fragment got the right padding, so the italic overhang of the first fragment was cut off.
   box-decoration-break: clone gives every wrapped fragment its own padding. */
.hero h1 em {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-left: 0.05em;
    padding-right: 0.16em;
    margin-left: -0.05em;
}


/* ───────────── EFFECT: dashboard numbers count up, one task ticks itself done ───────────── */
.ks-kpi b { transition: color 0.6s var(--m-ease, ease-out); }
.ks-kpi b.ks-settle { animation: ksSettle 0.7s var(--m-ease, ease-out) both; }
@keyframes ksSettle { 0% { transform: scale(1.15); color: #3B82F6; } 100% { transform: scale(1); color: #fff; } }
.ks-row.ks-undone::before { background: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px #3B82F6; }
.ks-row { transition: opacity 0.4s var(--m-ease, ease-out); }
.ks-row::before { transition: background 0.35s var(--m-ease, ease-out), color 0.35s var(--m-ease, ease-out), box-shadow 0.35s; }
.ks-row.ks-done { opacity: 0.72; }

.ks-snap-armed { opacity: 0; transform: scale(0.96); }
.ks-snap-armed.is-snapped { opacity: 1; transform: scale(1); transition: opacity 0.3s var(--m-ease, ease-out), transform 0.3s var(--m-ease, ease-out); }
.ks-snap-armed.is-instant { transition: none; }

/* ───────────── EFFECT: closing band, flame becomes a check, button glows now and then ───────────── */
.ks-flame { position: relative; width: 44px; height: 44px; margin: 0 auto 1.25rem; color: var(--blue); }
.ks-flame svg { position: absolute; inset: 0; display: block; }
.ks-flame-fire { display: none; }
.ks-flame.ks-flame-armed .ks-flame-fire { display: block; transition: opacity 0.8s var(--m-ease, ease-out), transform 0.8s var(--m-ease, ease-out); transform-origin: 50% 70%; }
.ks-flame.ks-flame-armed .ks-check-ring, .ks-flame.ks-flame-armed .ks-check-tick { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ks-flame.ks-flame-armed.ks-morph .ks-flame-fire { opacity: 0; transform: scale(0.6); }
.ks-flame.ks-flame-armed.ks-morph .ks-check-ring { animation: ksDraw 0.8s var(--m-ease, ease-out) 0.2s both; }
.ks-flame.ks-flame-armed.ks-morph .ks-check-tick { animation: ksDraw 0.6s var(--m-ease, ease-out) 0.9s both; }
.ks-pulse-wrap { display: inline-block; position: relative; }
.ks-pulse-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 6px; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45), 0 0 28px 6px rgba(59, 130, 246, 0.35); opacity: 0; pointer-events: none; }
.ks-pulse-wrap.ks-pulsing::before { animation: ksGlow 1.2s ease-in-out 1; }
@keyframes ksGlow { 0% { opacity: 0; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
    .ks-snap-armed, .ks-flip-inner, .ks-kpi b, .ks-row, .ks-row::before { transition: none !important; animation: none !important; }
}


/* ───────────── PLATFORM WALL: landing flash, light sweep, hover tilt ───────────── */
.ks-wall .ks-plat { position: relative; overflow: hidden; }
.ks-wall .ks-plat::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(59, 130, 246, 0.22) 50%, transparent 62%); transform: translateX(-130%); }
.ks-wall .ks-brick.ks-landed .ks-plat::after { animation: ksSheen 0.8s ease both; }
.ks-wall.ks-sweep .ks-brick .ks-plat::after { animation: ksSheen 0.9s ease both; animation-delay: calc(var(--k, 0) * 110ms); }
@keyframes ksSheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.ks-wall .ks-plat img { transition: transform 0.3s var(--m-ease, ease-out); }
.ks-wall .ks-brick:hover .ks-plat img { transform: scale(1.08); }
.ks-wall .ks-plat { transition: box-shadow 0.3s, border-color 0.3s, transform 0.15s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .ks-wall .ks-plat::after { display: none; }
    .ks-wall .ks-brick:hover .ks-plat img { transform: none; }
}


/* ───────────── THE PROBLEM → THE FIX: three cards that flip as you scroll ───────────────
   Without script (or with reduced motion) each card simply shows the problem and the fix one above the other. */
.ks-flipset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.25rem; text-align: left; }
.ks-flip { outline: none; }
.ks-flip:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 16px; }
.ks-face { position: relative; padding: 1.75rem 1.75rem 1.9rem; border-radius: 16px; min-height: 0; }
.ks-front { background: var(--off-white); border: 1px solid var(--border); color: var(--dark); }
.ks-back { margin-top: 0.75rem; background: #1C2120; border: 1px solid rgba(59, 130, 246, 0.55); color: #fff; box-shadow: 0 18px 44px rgba(59, 130, 246, 0.18); }
.ks-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 1.1rem; }
.ks-icon-x { background: rgba(28, 33, 32, 0.08); color: var(--gray-text-safe); }
.ks-icon-ok { background: var(--blue); color: #fff; }
.ks-eyebrow { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.6rem; }
.ks-front .ks-eyebrow { color: var(--gray-text-safe); }
.ks-back .ks-eyebrow { color: var(--soft-gray); }
.ks-issue { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.8rem; }
.ks-issue-sub { font-size: 0.95rem; line-height: 1.55; color: var(--gray-text-safe); margin: 0; }
.ks-back h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.6rem; color: #fff; }
.ks-back p { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); margin: 0; }

.ks-flipset.ks-flip-on .ks-flip { perspective: 1200px; cursor: pointer; min-height: 290px; }
.ks-flipset.ks-flip-on .ks-flip-inner { position: relative; width: 100%; height: 100%; min-height: 290px; transform-style: preserve-3d; transition: transform 0.9s var(--m-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.ks-flipset.ks-flip-on .ks-face { position: absolute; inset: 0; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ks-flipset.ks-flip-on .ks-back { transform: rotateY(180deg); }
.ks-flipset.ks-flip-on .ks-flip.is-flipped .ks-flip-inner { transform: rotateY(180deg); }
.ks-flipset.ks-flip-on .ks-flip.is-instant .ks-flip-inner { transition: none; }

@media (max-width: 900px) {
    .ks-flipset { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .ks-flipset.ks-flip-on .ks-flip, .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 250px; }
}

/* Scroll-driven version: the section is pinned while you scroll. Card 1, 2, 3 arrive one by one showing the problem,
   then (further scroll) card 1, 2, 3 flip to the fix one by one, then the closing line lands. */
.ks-ps.ks-seq .ks-pstrack { height: 580vh; position: relative; }
.ks-ps.ks-seq .ks-psstick { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 4.5rem 0 1.5rem; box-sizing: border-box; }
.ks-ps.ks-seq .ks-psstick > .container { width: 100%; }
.ks-seq .ks-flip { opacity: 0; transform: translateY(46px) scale(0.97); transition: opacity 0.6s var(--m-ease, ease-out), transform 0.7s var(--m-ease, ease-out); }
.ks-seq .ks-flip.is-in { opacity: 1; transform: none; }
.ks-seq .ks-closing { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--m-ease, ease-out), transform 0.6s var(--m-ease, ease-out); }
.ks-seq .ks-closing.is-in { opacity: 1; transform: none; }
.ks-seq .ks-snap-armed { opacity: 1; transform: none; }
@media (max-width: 900px) {
    .ks-ps.ks-seq .ks-pstrack { height: 520vh; }
    .ks-ps.ks-seq .ks-psstick { padding: 4rem 0 1rem; }
    .ks-seq .section-title { font-size: 1.7rem; }
    .ks-seq .accent-line { margin: 0.8rem auto !important; }
    .ks-seq .ks-flipset { gap: 0.6rem; margin-top: 1rem; }
    .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip, .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 150px; }
    .ks-seq .ks-face { padding: 1rem 1.2rem; }
    .ks-seq .ks-icon { width: 26px; height: 26px; margin-bottom: 0.5rem; }
    .ks-seq .ks-issue { font-size: 1.05rem; margin-bottom: 0.3rem; }
    .ks-seq .ks-back h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
    .ks-seq .ks-back p { font-size: 0.9rem; line-height: 1.45; }
    .ks-seq .ks-closing { margin-top: 1.2rem !important; }
    .ks-seq .ks-closing h3 { font-size: 1.35rem !important; }
}

/* About: team details. One card design for every person. */
.ks-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 2rem auto 0; padding: 0 5vw; box-sizing: border-box; }
.ks-person { position: relative; background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem 1.5rem 1.6rem; text-align: left; }
.ks-pic { width: 76px; height: 76px; border-radius: 50%; display: block; margin-bottom: 1rem; }
.ks-person h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.ks-role { display: block; font-size: 0.78rem; font-weight: 700; color: #1d6fd1; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }
.ks-loc { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--gray-text-safe); margin: 0.45rem 0 0.8rem; }
.ks-loc svg { flex: none; color: var(--blue); }
.ks-bio { font-size: 0.95rem; line-height: 1.6; color: var(--dark); margin: 0; }
.ks-li { position: absolute; top: 1.4rem; right: 1.4rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: #0a66c2; transition: background 0.2s, color 0.2s, transform 0.2s; }
.ks-li:hover, .ks-li:focus-visible { background: #0a66c2; color: #fff; transform: translateY(-2px); }
.ks-tags, .ks-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; }
.ks-tags li { font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(59, 130, 246, 0.1); color: #1d6fd1; }
.ks-toolslabel { margin: 1.1rem 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-text-safe); }
.ks-tools { margin-top: 0.5rem; }
.ks-tools li { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem 0.3rem 0.45rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 0.78rem; font-weight: 500; }
.ks-tools img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
@media (max-width: 900px) { .ks-people { grid-template-columns: 1fr; max-width: 520px; } }

/* four cards across */
.ks-ps .container { max-width: 1240px !important; }
.ks-face { padding: 1.5rem 1.4rem 1.6rem; }
.ks-flipset.ks-flip-on .ks-flip, .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 310px; }
.ks-issue { font-size: 1.15rem; }
.ks-back h3 { font-size: 1.3rem; }
.ks-back p { font-size: 0.95rem; }
@media (max-width: 1100px) and (min-width: 901px) { .ks-flipset { grid-template-columns: repeat(2, 1fr); } .ks-flipset.ks-flip-on .ks-flip, .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 220px; } }
@media (max-width: 900px) { .ks-flipset { grid-template-columns: 1fr; } .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip, .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 128px; } .ks-seq .ks-issue-sub { font-size: 0.8rem; line-height: 1.35; } .ks-seq .ks-face { padding: 0.8rem 1.1rem; } .ks-seq .ks-icon { margin-bottom: 0.35rem; } .ks-seq .ks-eyebrow { margin-bottom: 0.3rem; } .ks-seq .ks-flipset { gap: 0.45rem; } .ks-seq .ks-issue { font-size: 1rem; } .ks-seq .ks-back p { font-size: 0.85rem; } .ks-seq .ks-back h3 { font-size: 1.1rem; } }
@media (max-width: 900px) { .ks-seq .ks-icon { display: none; } .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip, .ks-seq.ks-ps .ks-flipset.ks-flip-on .ks-flip-inner { min-height: 134px; } .ks-ps.ks-seq .ks-psstick { padding: 3.6rem 0 0.5rem; } .ks-seq .section-title { font-size: 1.5rem; } .ks-seq .ks-closing { margin-top: 0.7rem !important; } .ks-seq .ks-closing h3 { font-size: 1.2rem !important; } .ks-seq .ks-snap { font-size: 1rem !important; } }

/* ───────────── Services: file-cabinet tabs ───────────── */
.ks-tabbar { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; padding: 0 0.5rem; margin-bottom: -1px; position: relative; z-index: 2; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ks-tabbar::-webkit-scrollbar { display: none; }
.ks-tab { flex: 0 0 auto; position: relative; padding: 0.85rem 1.35rem 0.8rem; font-size: 0.9rem; font-weight: 600; color: var(--gray-text-safe); text-decoration: none; white-space: nowrap; background: var(--off-white); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; margin-top: 8px; transition: color 0.2s, background 0.2s, transform 0.25s var(--m-ease, ease-out), margin 0.25s var(--m-ease, ease-out), padding 0.25s var(--m-ease, ease-out); }
.ks-tab:hover { color: var(--dark); transform: translateY(-3px); }
.ks-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ks-tab[aria-selected="true"] { background: var(--white); color: var(--dark); margin-top: 0; padding-top: 1.1rem; padding-bottom: 1rem; box-shadow: 0 -6px 18px rgba(28, 33, 32, 0.05); }
.ks-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--white); }
.ks-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); }
.ks-drawer { background: var(--white); border: 1px solid var(--border); border-radius: 0 16px 16px 16px; padding: 2.75rem 2.5rem; box-shadow: 0 18px 44px rgba(28, 33, 32, 0.06); position: relative; z-index: 1; }
.ks-cabinet.ks-tabs-on .ks-panel[hidden] { display: none; }
.ks-cabinet.ks-tabs-on .ks-panel:not([hidden]) { animation: ksDrawerIn 0.45s var(--m-ease, ease-out); }
@keyframes ksDrawerIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ks-panel { outline: none; }
.ks-cabinet:not(.ks-tabs-on) .ks-panel + .ks-panel { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.ks-phead { text-align: center; margin-bottom: 2rem; }
.ks-phead.ks-left { text-align: left; margin-bottom: 1.25rem; }
.ks-phead .section-title { margin: 0.5rem 0 0; }
.ks-badge { display: inline-block; background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.ks-badge-line { background: transparent; color: var(--blue-text-safe, var(--blue)); border: 1px solid var(--blue); }
.ks-badge-gray { color: var(--gray-text-safe); border-color: var(--gray-text-safe); }
.ks-lead { font-size: 1.1rem; color: var(--gray-text-safe); line-height: 1.55; margin: 1rem auto 0; max-width: 680px; }
.ks-left .ks-lead { margin-left: 0; }
.ks-price { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin: 0 0 1rem; }
.ks-checks { list-style: none; padding: 0; margin: 0; }
.ks-checks li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.55rem; line-height: 1.5; color: var(--dark); }
.ks-checks i { color: var(--blue); margin-top: 0.25rem; font-size: 0.85rem; flex: none; }
.ks-split { display: flex; gap: 3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ks-pmain { flex: 1.4; min-width: 280px; }
.ks-pvis { flex: 1; min-width: 200px; display: flex; justify-content: center; }
.ks-orb { background: var(--off-white); padding: 3rem; border-radius: 50%; border: 1px solid var(--border); }
.ks-deliver { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.5rem; }
.ks-dcard { background: var(--off-white); border-radius: 14px; padding: 1.75rem; }
.ks-dcard h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--blue); margin: 0 0 1rem; }
.ks-dcard .ks-checks li { font-size: 0.93rem; color: var(--gray-text-safe); }
.ks-minibox { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px dashed var(--border); }
.ks-minilabel { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text-safe, var(--blue)); margin: 0 0 1rem; }
.ks-mini { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; padding: 0; margin: 0; counter-reset: none; position: relative; }
.ks-mini li { position: relative; padding-top: 0.2rem; }
.ks-mini li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 42px; right: -1.1rem; height: 2px; background: var(--blue); }
.ks-mini b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(59, 130, 246, 0.12); color: var(--blue-text-safe, var(--blue)); font-size: 0.9rem; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.ks-mini h4 { font-size: 1.02rem; margin: 0 0 0.3rem; font-family: var(--serif); }
.ks-mini p { font-size: 0.88rem; line-height: 1.5; color: var(--gray-text-safe); margin: 0; }
@media (max-width: 800px) {
    .ks-drawer { padding: 1.75rem 1.25rem; border-radius: 0 12px 12px 12px; }
    .ks-deliver { grid-template-columns: 1fr; }
    .ks-mini { grid-auto-flow: row; gap: 1.1rem; }
    .ks-mini li { padding-left: 2.8rem; }
    .ks-mini li b { position: absolute; left: 0; top: 0; margin: 0; }
    .ks-mini li:not(:last-child)::after { top: 34px; left: 15px; right: auto; width: 2px; height: calc(100% - 22px); background: var(--blue); }
    .ks-tab { padding: 0.8rem 1rem 0.75rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .ks-cabinet.ks-tabs-on .ks-panel:not([hidden]) { animation: none; } .ks-tab { transition: none; } }

/* Services: second round */
.ks-block { display: flex !important; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; }
.ks-fit { width: 100%; max-width: 340px; background: var(--off-white); border-radius: 14px; padding: 1.4rem; }
.ks-fit p { font-size: 0.9rem; line-height: 1.5; color: var(--dark); margin: 0 0 0.9rem; }
.ks-fit .ks-minilabel { margin-bottom: 0.25rem; }
.ks-faq { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px dashed var(--border); }
.ks-faq p { font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.1rem; color: var(--dark); }
.ks-faq span { color: var(--gray-text-safe); }
.ks-faq .ks-note { font-size: 0.8rem; color: var(--gray-text-safe); margin: 1.5rem 0 0; }
/* shield: scans continuously */
.ks-shieldsvg .ks-scan, .ks-shieldsvg .ks-scanline { animation: ksScan 2.6s ease-in-out infinite alternate; }
.ks-shieldsvg .ks-shieldtick { stroke-dasharray: 1; stroke-dashoffset: 0; animation: ksTickPulse 2.6s ease-in-out infinite; }
@keyframes ksScan { from { transform: translateY(0); } to { transform: translateY(84px); } }
@keyframes ksTickPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ks-shieldsvg .ks-scan, .ks-shieldsvg .ks-scanline, .ks-shieldsvg .ks-shieldtick { animation: none; } }

/* Platform wall: just the logos, no card around them */
.ks-wall .ks-plat { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.ks-wall .ks-plat::after { display: none; }
.ks-wall .ks-brick:hover .ks-plat, .ks-wall .ks-brick:focus-visible .ks-plat { border-color: transparent; box-shadow: none; transform: translateY(-3px); }
.ks-wall .ks-brick:focus-visible { outline: 2px solid #3B82F6; outline-offset: 4px; border-radius: 6px; }
/* Brand logo in the nav and footer */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; width: 176px; height: auto; }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 1rem; }
.footer-logo img { display: block; width: 208px; height: auto; }
@media (max-width: 480px) { .logo img { width: 160px; } }

/* "How we help": same pinned sequence as "Something isn't working".
   Without script, on small screens or with reduced motion, each card simply shows the name, the line and the price one under another. */
.ks-svcgrid .ks-svc { padding: 0; display: block; grid-column: span 2; background: none; border: 0; }
.ks-svcgrid .ks-svc:nth-child(4) { grid-column: 2 / span 2; }
.ks-svcgrid .ks-svc:nth-child(5) { grid-column: 4 / span 2; }
.ks-sflip-inner { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 1.75rem; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; }
.ks-svc-sig .ks-sflip-inner { border-color: var(--blue); }
.ks-sface { display: flex; flex-direction: column; }
.ks-sfront .ks-badge { align-self: flex-start; margin-bottom: 0.9rem; }
.ks-sfront h3 { margin: 0 0 0.6rem; }
.ks-sback .ks-eyebrow { display: none; }
.ks-sback { margin-top: auto; }
/* pinned version (desktop only, set by script) */
.ks-sv.ks-svseq .ks-svtrack { height: 640vh; position: relative; }
.ks-sv.ks-svseq .ks-svstick { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 4rem 0 1rem; box-sizing: border-box; }
.ks-sv.ks-svseq .ks-svwrap { width: 100%; }
.ks-svseq .ks-svc { opacity: 0; transform: translateY(46px) scale(0.97); transition: opacity 0.6s var(--m-ease, ease-out), transform 0.7s var(--m-ease, ease-out); perspective: 1200px; min-height: 236px; }
.ks-svseq .ks-svc.is-in { opacity: 1; transform: none; }
.ks-svseq .ks-sflip-inner { position: relative; padding: 0; background: none; border: 0; display: block; min-height: 236px; transform-style: preserve-3d; transition: transform 0.9s var(--m-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.ks-svseq .ks-sface { position: absolute; inset: 0; box-sizing: border-box; padding: 1.75rem 1.6rem; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ks-svseq .ks-sfront { background: var(--white); border: 1px solid var(--border); }
.ks-svseq .ks-svc-sig .ks-sfront { border-color: var(--blue); }
.ks-svseq .ks-sback { margin-top: 0; background: var(--dark); border: 1px solid rgba(59, 130, 246, 0.55); color: #fff; transform: rotateY(180deg); justify-content: center; box-shadow: 0 18px 44px rgba(59, 130, 246, 0.18); }
.ks-svseq .ks-sback .ks-eyebrow { display: block; color: var(--soft-gray); margin-bottom: 0.8rem; }
.ks-svseq .ks-sback .ks-svc-price { color: #fff; font-size: 1.5rem; margin: 0 0 1rem !important; }
.ks-svseq .ks-sback .ks-svc-link { color: #fff; text-decoration: underline; margin: 0; }
.ks-svseq .ks-svc.is-flipped .ks-sflip-inner { transform: rotateY(180deg); }
.ks-svseq .ks-svcta { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--m-ease, ease-out), transform 0.6s var(--m-ease, ease-out); }
.ks-svseq .ks-svcta.is-in { opacity: 1; transform: none; }
.ks-svseq .s-card-icon { margin-bottom: 1rem; }
/* Services: one set of names, taglines and price lines used on the home cards and the Services tabs */
.ks-lead.ks-lead { font-weight: 600; color: var(--dark); margin-top: 1rem; }
.ks-left .ks-lead { margin-left: 0; }
.ks-sub { font-size: 1rem; color: var(--gray-text-safe); line-height: 1.55; margin: 0.6rem auto 0; max-width: 680px; }
.ks-left .ks-sub { margin-left: 0; }
.ks-priceline { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--blue-text-safe, var(--blue)); margin: 0.9rem 0 0; }
.ks-phead:not(.ks-left) .ks-priceline { margin-left: auto; margin-right: auto; }
.ks-svcgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.ks-svcgrid .ks-svc { grid-column: span 2; display: flex; flex-direction: column; padding: 2rem 1.75rem; }
.ks-svcgrid .ks-svc:nth-child(4) { grid-column: 2 / span 2; }
.ks-svcgrid .ks-svc:nth-child(5) { grid-column: 4 / span 2; }
.ks-svc .ks-badge { align-self: flex-start; margin-bottom: 0.9rem; }
.ks-svc h3 { margin: 0 0 0.6rem; }
.ks-svc-tag { margin: 0 0 1rem; line-height: 1.5; }
.ks-svc-price { margin-top: auto !important; padding-top: 0.5rem; }
.ks-svc-link { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; color: var(--blue-text-safe, var(--blue)); text-decoration: none; }
@media (max-width: 900px) { .ks-svcgrid { grid-template-columns: 1fr 1fr; } .ks-svcgrid .ks-svc, .ks-svcgrid .ks-svc:nth-child(4), .ks-svcgrid .ks-svc:nth-child(5) { grid-column: auto; } .ks-svcgrid .ks-svc:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ks-svcgrid { grid-template-columns: 1fr; } .ks-svcgrid .ks-svc:nth-child(5) { grid-column: auto; } }
.s-card p.ks-priceline { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--blue-text-safe, var(--blue)); }

/* How we help: cards are plain wrappers; the faces carry the card look */
.ks-svcgrid .ks-svc { padding: 0; display: block; background: none; border: 0; }
.ks-sface p.ks-priceline { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--blue-text-safe, var(--blue)); margin: 0.9rem 0 0; }
.ks-sface .ks-svc-tag { margin: 0 0 1rem; line-height: 1.5; color: var(--gray); }
.ks-sface .ks-svc-link { display: inline-block; margin-top: 0.7rem; font-size: 0.9rem; font-weight: 600; color: var(--blue-text-safe, var(--blue)); text-decoration: none; }
.ks-sfront h3 { font-size: 1.35rem; }
.ks-svseq .ks-sface p.ks-priceline.ks-svc-price { color: #fff; font-size: 1.5rem; margin: 0 0 1rem !important; }
.ks-svseq .ks-sface.ks-sback .ks-svc-link { color: #fff; text-decoration: underline; margin: 0; }
.ks-sface .s-card-icon { flex: none; width: 52px; height: 52px; }
.ks-svseq .ks-svcta { margin-top: 1.5rem !important; }
.ks-svseq .ks-sface { padding: 1.4rem 1.5rem; }
.ks-svseq .ks-sface .s-card-icon { width: 44px; height: 44px; margin-bottom: 0.8rem; }
.ks-svseq .ks-sfront h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.ks-svseq .ks-sfront .ks-badge { margin-bottom: 0.7rem; }
.ks-svseq .ks-sfront .ks-svc-tag { margin: 0; font-size: 0.92rem; }
.ks-svseq .services-header { margin-bottom: 1rem; }
.ks-svseq .services-header .accent-line { margin: 0.75rem auto 0; }
.ks-svseq .ks-svcgrid { gap: 1rem; }

/* ── Small text: Brand Black or gray with a blue accent line (no small blue text on white) ── */
.ks-role { color: var(--dark); position: relative; padding-bottom: 0.4rem; }
.ks-role::after { content: ''; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--blue); }
.ks-tags li { color: var(--dark); }
.ks-badge-line { color: var(--dark); border-color: var(--blue); }
.ks-badge-gray { color: var(--gray); border-color: var(--gray); }
.ks-minilabel { color: var(--gray); }
.ks-priceline, .s-card p.ks-priceline, .ks-sface p.ks-priceline { color: var(--dark); }
.ks-phead .ks-priceline { display: inline-block; border-bottom: 2px solid var(--blue); padding-bottom: 0.2rem; }
.ks-svc-link, .ks-sface .ks-svc-link { color: var(--dark); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ks-mini b, .sp-num { color: var(--dark) !important; }
.ks-dcard h3 { color: var(--dark); }
.ks-snap { color: var(--dark) !important; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 6px; }
/* dark surfaces keep their white / soft gray text */
.ks-svseq .ks-sface.ks-sback p.ks-priceline.ks-svc-price { color: #fff; border-bottom: 0; }
.ks-svseq .ks-sface.ks-sback .ks-svc-link { color: #fff; text-decoration-color: var(--blue); }

/* Option B: white sections between dark bands. The dark nav is in style.css. */
.about, .testimonials, .tools-banner, .ks-compare { background: var(--white); }
.ks-compare, .tools-banner { border-top: 1px solid var(--border); }
.testimonials-header p { color: var(--gray); }
/* The nav button is an inline link, so its shine sweep leaked over the menu item beside it: make it a box so it clips */
.nav-links .nav-cta { display: inline-block; }
@media (max-width: 900px) { .nav-links .nav-cta { display: block; } }

/* Nav alignment + wordmark / stacked logo */
.nav-links { align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { line-height: 1; }
.logo img { width: 176px; }
.footer-logo img { width: 120px; height: auto; }

/* ── One card design for the whole site (matches the About team cards):
   off-white fill, 1px border, 16px corners, flat, no lift, no shadow ── */
html .s-card, html .testimonial-card, html .process-card, html .member-card,
html .step-card, html .about-stat, html .sprint-card, html .faq-item,
.ks-dcard, .ks-fit {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: none;
}
html .faq-item { overflow: hidden; }
html .s-card::before { display: none; }
html .s-card:hover, html .testimonial-card:hover, html .process-card:hover,
html .member-card:hover, html .sprint-card:hover, html .about-stat:hover,
html .step-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}
html .s-card:hover .learn-more { transform: none; }

/* Pills, meta lines, logo chips, faces */
.ks-pills li { background: #fff; border: 1px solid var(--border); color: var(--dark); font-size: 0.8rem; padding: 0.35rem 0.8rem; }
.ks-pillrow > div { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 0.8rem; color: var(--dark); }
.ks-phead .ks-priceline { display: inline-block; padding: 0.3rem 0.95rem; border: 1px solid var(--border); border-radius: 999px; background: var(--off-white); font-size: 1rem; }
.ks-meta { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--soft-gray); margin: 1.1rem 0 0; }
.ks-chips { justify-content: center; margin-top: 1.1rem; }
.ks-faces { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0 0 1.1rem; }
.ks-faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #E4E7E6; border: 2px solid var(--dark); margin-left: -14px; }
.ks-faces img:first-child { margin-left: 0; }
.ks-faces span { font-size: 0.85rem; color: var(--soft-gray); margin-left: 0.2rem; }
.hero-actions .ks-faces { margin: 1.2rem 0 0; display: flex; }
/* footer logo hard left */
footer .footer-brand { text-align: left; }
.footer-logo { display: block; width: 120px; margin-left: 0; margin-right: auto; }
.hero-actions { flex-wrap: wrap; justify-content: center; }
.hero-actions .ks-faces { flex: 0 0 100%; justify-content: center; margin: 1.4rem 0 0; }

/* ── No glow: flat buttons, no shine sweep, no soft halos ── */
.btn::after, .nav-cta::after, .btn-send::after { display: none !important; content: none !important; }
html .btn:hover, html .nav-cta:hover, html .btn-send:hover,
html .btn-primary:hover, html .btn-outline:hover { box-shadow: none !important; transform: none !important; }
.btn-primary:hover, .btn-send:hover, .nav-cta:hover { background: #2F6FDB !important; }
.ks-pulse-wrap::before { display: none; }
.scroll-progress { box-shadow: none; }
nav::after { box-shadow: none; }
.calc-pill-label input:checked ~ .calc-pill-span { box-shadow: none; }
.newsletter-form-container .s-card, .newsletter-form-container .s-card:hover { box-shadow: none !important; }
.ks-dash { box-shadow: none; }
.ks-back, .ks-svseq .ks-sback { box-shadow: none; }
.ks-handle::after { box-shadow: none; }
.ks-rail-fill, .ks-sprint-grid::after { box-shadow: none; }

/* Faces: overlapped stack like a review badge */
.ks-faces { display: inline-flex; align-items: center; gap: 0.9rem; margin: 0 0 1.25rem; }
.ks-faces .ks-stack { display: inline-flex; }
.ks-faces .ks-stack img { width: 48px; height: 48px; margin-left: -16px; border: 2px solid var(--dark); border-radius: 50%; background: #E4E7E6; object-fit: cover; }
.ks-faces .ks-stack img:first-child { margin-left: 0; }
.ks-faces .ks-ftext { display: flex; flex-direction: column; text-align: left; line-height: 1.25; margin: 0; }
.ks-faces .ks-ftext b { font-size: 0.9rem; font-weight: 600; color: #fff; }
.ks-faces .ks-ftext em { font-style: normal; font-size: 0.8rem; color: var(--soft-gray); }

/* Calculator: white band, tool chips with logos */
.calc-pill-span { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; }
.calc-pill-span img { width: 18px; height: 18px; }
.calc-pill-span i { width: 18px; text-align: center; color: var(--gray); }
.calc-pill-label input:checked ~ .calc-pill-span i { color: #fff; }
.calc-pill-label input:checked ~ .calc-pill-span { background: var(--blue); }
.calc-pill-span { border-color: transparent; font-size: 0.88rem; }
.calc-pill-label:hover .calc-pill-span { border-color: var(--blue); }

/* App Security Review: everything left */
#panel-security .ks-chips { justify-content: flex-start; }
#panel-security .ks-pmain, #panel-security .ks-phead { text-align: left; }
.calc-pill-span img, .calc-pill-span i { margin-right: 0.5rem; flex: none; }
.calc-pill-label input:checked ~ .calc-pill-span { box-shadow: none !important; }
.ks-phead, .ks-phead.ks-left { text-align: left; }
.ks-phead .ks-priceline { margin-left: 0; margin-right: 0; }
.ks-chips { justify-content: flex-start; }
.footer-logo { width: 220px; }
.footer-logo img { width: 220px; height: auto; }

/* Is / is not for you */
.ks-fitband { padding: 5rem 5vw; background: var(--white); }
.ks-fitwrap { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ks-fitcol { background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.ks-fitcol ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.ks-fitcol li { position: relative; padding: 0.55rem 0 0.55rem 1.75rem; font-size: 0.98rem; line-height: 1.5; color: var(--dark); }
.ks-fit-yes li::before { content: '\2713'; position: absolute; left: 0; top: 0.55rem; font-weight: 700; color: var(--blue); }
.ks-fit-no li::before { content: '\2715'; position: absolute; left: 0; top: 0.55rem; font-weight: 700; color: var(--soft-gray); }
@media (max-width: 760px) { .ks-fitwrap { grid-template-columns: 1fr; } }

/* Three steps under the booking button */
.ks-steps3 { list-style: none; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1.75rem 0 0; padding: 0; }
.ks-steps3 li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--soft-gray); }
.ks-steps3 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-dark); color: #fff; font-size: 0.8rem; font-weight: 600; }

/* Client proof (fill in) */
.ks-proofband { padding: 5rem 5vw 2rem; background: var(--white); }
.ks-proofhead { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.ks-proofhead .accent-line { margin-left: auto; margin-right: auto; }
.ks-proofgrid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ks-proofcard { display: flex; flex-direction: column; gap: 1.1rem; background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.ks-proofresult { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: var(--dark); margin: 0; padding-bottom: 1rem; border-bottom: 2px solid var(--blue); }
.ks-proofquote { font-size: 0.98rem; line-height: 1.6; color: var(--gray); margin: 0; flex: 1; }
.ks-proofwho { display: flex; align-items: center; gap: 0.8rem; }
.ks-proofpic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #E4E7E6; color: var(--soft-gray); font-size: 0.8rem; flex: none; }
.ks-proofwho b { display: block; font-size: 0.95rem; color: var(--dark); }
.ks-proofwho div span { font-size: 0.85rem; color: var(--gray); }
@media (max-width: 900px) { .ks-proofgrid { grid-template-columns: 1fr; } }

/* Credentials */
.ks-credband { padding: 2.5rem 5vw 3rem; background: var(--white); }
.ks-creds { list-style: none; max-width: 1000px; margin: 1.25rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.ks-creds li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1.1rem 0.6rem 0.8rem; background: var(--off-white); border: 1px solid var(--border); border-radius: 999px; }
.ks-creds img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.ks-creds b { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); line-height: 1.25; }
.ks-creds small { display: block; font-size: 0.78rem; color: var(--gray); }
.ks-credmark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E4E7E6; color: var(--gray); font-size: 0.85rem; flex: none; }
.ks-credcards { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 760px; gap: 1rem; }
.ks-credcards li { border-radius: 16px; padding: 1.1rem 1.25rem; }
.ks-credabout { padding-top: 4rem; }
@media (max-width: 640px) { .ks-credcards { grid-template-columns: 1fr; } .ks-creds li { border-radius: 16px; } }
.ks-credgroup { max-width: 1000px; margin: 2rem auto 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); text-align: center; }
.ks-credgroup + .ks-creds { margin-top: 0.75rem; }
.ks-creds img.ks-badgeimg { width: 40px; height: 40px; }
.ks-creds li:has(.ks-badgeimg) { padding-left: 0.55rem; }

/* Core values with day-to-day behaviors */
.ks-valuegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ks-value { padding: 2rem !important; }
.ks-value h3 { margin-bottom: 0.6rem; }
.ks-value > p { color: var(--gray); margin-bottom: 1rem; }
.ks-valuelist { margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--border); }
.ks-valuelist li { font-size: 0.92rem; line-height: 1.5; color: var(--dark); margin-bottom: 0.45rem; }
@media (max-width: 760px) { .ks-valuegrid { grid-template-columns: 1fr; } }

/* Mission */
.ks-mission { padding: 5rem 5vw; background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ks-missionwrap { max-width: 780px; margin: 0 auto; text-align: center; }
.ks-missionlead { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; color: var(--dark); margin: 0.6rem 0 1.5rem; }
.ks-missionwrap p:not(.section-label) { font-size: 1.05rem; line-height: 1.7; color: var(--gray); margin: 0 0 1rem; }

/* Credentials: 25% smaller */
.ks-credabout { padding: 3rem 5vw 2.25rem; }
.ks-credabout .section-title { font-size: 1.7rem; }
.ks-credabout .ks-proofhead { margin-bottom: 1.25rem; }
.ks-credabout .ks-creds { gap: 0.55rem; max-width: 780px; }
.ks-credabout .ks-creds li { gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.6rem; }
.ks-credabout .ks-creds li:has(.ks-badgeimg) { padding-left: 0.4rem; }
.ks-credabout .ks-creds img { width: 21px; height: 21px; }
.ks-credabout .ks-creds img.ks-badgeimg { width: 30px; height: 30px; }
.ks-credabout .ks-creds b { font-size: 0.66rem; }
.ks-credabout .ks-credmark { width: 21px; height: 21px; font-size: 0.65rem; }
.ks-credabout .ks-credgroup { margin-top: 1.5rem; font-size: 0.54rem; max-width: 780px; }

/* Credentials as folding columns, all chips one compact size */
.ks-credabout .ks-credcols { max-width: 1100px; margin: 1.5rem auto 0; display: grid; grid-template-columns: 2.1fr 1.15fr 1.25fr 1.1fr; gap: 1rem; align-items: start; }
.ks-credabout .ks-credcol { background: var(--off-white); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1rem 1.2rem; }
.ks-credabout .ks-credgroup { margin: 0 0 0.8rem; text-align: left; max-width: none; font-size: 0.6rem; }
.ks-credabout .ks-creds { margin: 0; max-width: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.45rem; }
.ks-credabout .ks-col-monday .ks-creds { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.ks-credabout .ks-creds li { background: #fff; padding: 0.4rem 0.8rem 0.4rem 0.55rem; gap: 0.45rem; }
.ks-credabout .ks-creds li:has(.ks-badgeimg) { padding-left: 0.55rem; }
.ks-credabout .ks-creds img, .ks-credabout .ks-creds img.ks-badgeimg { width: 21px; height: 21px; }
.ks-credabout .ks-creds b { font-size: 0.68rem; font-weight: 600; }
@media (max-width: 1000px) { .ks-credabout .ks-credcols { grid-template-columns: 1fr 1fr; } .ks-credabout .ks-col-monday { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ks-credabout .ks-credcols { grid-template-columns: 1fr; } .ks-credabout .ks-col-monday .ks-creds { grid-template-columns: 1fr; } }

/* Fold-out: columns unfold from the top, chips cascade in */
@media (prefers-reduced-motion: no-preference) {
    .ks-credabout.ks-armed .ks-credcol { opacity: 0; transform: perspective(900px) rotateX(-75deg); transform-origin: 50% 0; transition: opacity 0.7s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1); }
    .ks-credabout.ks-armed .ks-credcol:nth-child(2) { transition-delay: 0.12s; }
    .ks-credabout.ks-armed .ks-credcol:nth-child(3) { transition-delay: 0.24s; }
    .ks-credabout.ks-armed .ks-credcol:nth-child(4) { transition-delay: 0.36s; }
    .ks-credabout.ks-armed .ks-creds li { opacity: 0; transform: translateY(-8px) scale(0.96); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
    .ks-credabout.ks-armed.ks-in .ks-credcol { opacity: 1; transform: none; }
    .ks-credabout.ks-armed.ks-in .ks-creds li { opacity: 1; transform: none; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(1) { transition-delay: 0.5s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(2) { transition-delay: 0.58s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(3) { transition-delay: 0.66s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(4) { transition-delay: 0.74s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(5) { transition-delay: 0.82s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(6) { transition-delay: 0.9s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(7) { transition-delay: 0.98s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(8) { transition-delay: 1.06s; }
    .ks-credabout.ks-armed.ks-in .ks-creds li:nth-child(n+9) { transition-delay: 1.14s; }
}

/* Mockups for the credentials layout */
.ks-mk { padding: 4rem 5vw; background: var(--white); }
.ks-mk + .ks-mk { border-top: 1px solid var(--border); background: var(--off-white); }
.ks-mkhead { text-align: center; margin-bottom: 2rem; }
.ks-mkhead .accent-line { margin-left: auto; margin-right: auto; }
.ks-mk .ks-creds { margin: 0; max-width: none; justify-content: flex-start; gap: 0.5rem; }
.ks-mk .ks-creds li { background: #fff; padding: 0.4rem 0.85rem 0.4rem 0.55rem; gap: 0.45rem; }
.ks-mk .ks-creds img { width: 21px; height: 21px; }
.ks-mk .ks-creds b { font-size: 0.72rem; font-weight: 600; }
.ks-mkrows { max-width: 1000px; margin: 0 auto; }
.ks-mkrow { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--border); align-items: start; }
.ks-mkrow:last-child { border-bottom: 1px solid var(--border); }
.ks-mkname b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--dark); }
.ks-mkname span { font-size: 0.8rem; color: var(--gray); }
.ks-mkacc { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.ks-mkacc details { background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.ks-mkacc summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.ks-mkacc summary::-webkit-details-marker { display: none; }
.ks-mkacc summary b { font-family: var(--serif); font-size: 1.1rem; color: var(--dark); flex: 1; }
.ks-mkacc summary em { font-style: normal; font-size: 0.78rem; color: var(--gray); border: 1px solid var(--border); border-radius: 999px; padding: 0.1rem 0.6rem; }
.ks-mkacc summary i { width: 10px; height: 10px; border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray); transform: rotate(45deg); transition: transform 0.3s ease; margin-right: 0.25rem; }
.ks-mkacc details[open] summary i { transform: rotate(-135deg); }
.ks-mkacc .ks-creds { padding: 0 1.25rem 1.25rem; }
.ks-mkacc details[open] .ks-creds { animation: ksFold 0.45s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top; }
@keyframes ksFold { from { opacity: 0; transform: perspective(700px) rotateX(-50deg); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .ks-mkrow { grid-template-columns: 1fr; gap: 0.75rem; } }

/* Credentials as program rows (final layout) */
.ks-credrows { padding: 4rem 5vw; }
.ks-credrows .ks-mkrows { max-width: 1000px; margin: 1.5rem auto 0; }
.ks-credrows .ks-mkrow { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--border); align-items: start; }
.ks-credrows .ks-mkrow:last-child { border-bottom: 1px solid var(--border); }
.ks-credrows .ks-creds { margin: 0; max-width: none; justify-content: flex-start; gap: 0.5rem; }
.ks-credrows .ks-creds li { background: var(--off-white); padding: 0.4rem 0.85rem 0.4rem 0.55rem; gap: 0.45rem; }
.ks-credrows .ks-creds img { width: 21px; height: 21px; }
.ks-credrows .ks-creds b { font-size: 0.72rem; font-weight: 600; }
.ks-credrows .ks-proofhead { margin-bottom: 0; }
@media (max-width: 700px) { .ks-credrows .ks-mkrow { grid-template-columns: 1fr; gap: 0.75rem; } }
@media (prefers-reduced-motion: no-preference) {
    .ks-credrows.ks-armed .ks-mkrow { opacity: 0; transform: perspective(900px) rotateX(-40deg); transform-origin: 50% 0; transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
    .ks-credrows.ks-armed.ks-in .ks-mkrow { opacity: 1; transform: none; }
    .ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) { transition-delay: 0.12s; }
    .ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) { transition-delay: 0.24s; }
    .ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) { transition-delay: 0.36s; }
    .ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) { transition-delay: 0.48s; }
    .ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(6) { transition-delay: 0.6s; }
}
.ks-credrows .ks-creds { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.ks-credrows .ks-credabout-fix { display: none; }

/* Credentials: chips fall in softly, one after another */
@media (prefers-reduced-motion: no-preference) {
    .ks-credabout.ks-credrows.ks-armed .ks-mkrow { opacity: 0; transform: none; transition: opacity 0.8s ease; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow { opacity: 1; }
    .ks-credabout.ks-credrows.ks-armed .ks-creds li { opacity: 0; transform: translateY(-26px); transition: opacity 0.9s ease, transform 1.3s cubic-bezier(0.22, 1.25, 0.36, 1); }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-creds li { opacity: 1; transform: none; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(1) { transition-delay: 0.08s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(2) { transition-delay: 0.16s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(3) { transition-delay: 0.24s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(4) { transition-delay: 0.32s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(5) { transition-delay: 0.40s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(6) { transition-delay: 0.48s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(7) { transition-delay: 0.56s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(1) .ks-creds li:nth-child(8) { transition-delay: 0.64s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(1) { transition-delay: 0.43s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(2) { transition-delay: 0.51s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(3) { transition-delay: 0.59s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(4) { transition-delay: 0.67s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(5) { transition-delay: 0.75s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(6) { transition-delay: 0.83s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(7) { transition-delay: 0.91s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(2) .ks-creds li:nth-child(8) { transition-delay: 0.99s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(1) { transition-delay: 0.78s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(2) { transition-delay: 0.86s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(3) { transition-delay: 0.94s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(4) { transition-delay: 1.02s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(5) { transition-delay: 1.10s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(6) { transition-delay: 1.18s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(7) { transition-delay: 1.26s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(3) .ks-creds li:nth-child(8) { transition-delay: 1.34s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(1) { transition-delay: 1.13s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(2) { transition-delay: 1.21s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(3) { transition-delay: 1.29s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(4) { transition-delay: 1.37s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(5) { transition-delay: 1.45s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(6) { transition-delay: 1.53s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(7) { transition-delay: 1.61s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(4) .ks-creds li:nth-child(8) { transition-delay: 1.69s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(1) { transition-delay: 1.48s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(2) { transition-delay: 1.56s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(3) { transition-delay: 1.64s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(4) { transition-delay: 1.72s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(5) { transition-delay: 1.80s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(6) { transition-delay: 1.88s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(7) { transition-delay: 1.96s; }
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(5) .ks-creds li:nth-child(8) { transition-delay: 2.04s; }
}
.ks-credrows .ks-creds li.ks-wide { padding: 0; background: transparent; border: 0; border-radius: 10px; }
.ks-credrows .ks-creds li.ks-wide img { width: auto; height: 46px; display: block; }
@media (prefers-reduced-motion: no-preference) {
    .ks-credabout.ks-credrows.ks-armed.ks-in .ks-mkrow:nth-child(6) .ks-creds li:nth-child(1) { transition-delay: 1.75s; }
}
.ks-proofgrid { display: flex; flex-wrap: wrap; justify-content: center; }
.ks-proofgrid .ks-proofcard { flex: 0 1 calc(33.333% - 1rem); min-width: 280px; }
@media (max-width: 900px) { .ks-proofgrid .ks-proofcard { flex-basis: 100%; } }

/* Platforms we build on: same chips as the About team cards */
.ks-chipwall { max-width: 900px; margin: 1.75rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.ks-chiplink { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.95rem 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 0.85rem; font-weight: 500; color: var(--dark); text-decoration: none; transition: border-color 0.2s ease; }
.ks-chiplink:hover { border-color: var(--soft-gray); }
.ks-chiplink img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.ks-prooflink { align-self: flex-start; font-size: 0.85rem; font-weight: 500; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--blue); padding-bottom: 1px; }
.ks-prooflink:hover { border-bottom-color: var(--dark); }
.ks-proofgrid:has(.ks-proofcard:nth-child(4):last-child) .ks-proofcard { flex-basis: calc(50% - 1rem); }
@media (max-width: 900px) { .ks-proofgrid:has(.ks-proofcard:nth-child(4):last-child) .ks-proofcard { flex-basis: 100%; } }
.ks-mocknote { margin: 1rem auto 0; max-width: 640px; font-size: 0.9rem; color: var(--gray); }
.ks-drafttag { align-self: flex-start; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); background: #F2B705; border-radius: 999px; padding: 0.2rem 0.7rem; }
.ks-prooflogo { display: grid; place-items: center; width: 132px; height: 48px; padding: 6px 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; flex: none; }
.ks-prooflogo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ks-proofwho:has(.ks-prooflogo) { flex-wrap: wrap; }
.ks-prooflinks { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Client cards: every card has the same structure */
.ks-proofpic { width: 132px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--soft-gray); }
.ks-proofwho, .ks-proofwho:has(.ks-prooflogo) { flex-wrap: nowrap; }
.ks-prooflinks { min-height: 1.5rem; margin-top: -0.2rem; }
.ks-proofbuilt { font-size: 0.85rem; line-height: 1.5; color: var(--soft-gray); margin: -0.3rem 0 0; }
.ks-proofquote { font-size: 1.02rem; color: var(--dark); flex: 0 0 auto; }
.ks-proofcard .ks-proofwho { margin-top: auto; }

/* Horizontal client cards: who on the left, quote on the right */
.ks-proofgrid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 960px; }
.ks-proofgrid .ks-proofcard.ks-proofrow { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: center; flex: none; min-width: 0; padding: 1.75rem 2rem; }
.ks-proofrow .ks-proofwho { flex-direction: column; align-items: flex-start; gap: 0.7rem; margin-top: 0; }
.ks-proofrow .ks-proofresult { padding-bottom: 0.9rem; font-size: 1.25rem; }
.ks-proofrow .ks-proofbody { display: flex; flex-direction: column; gap: 0.9rem; }
.ks-proofrow .ks-drafttag { align-self: flex-start; }
@media (max-width: 760px) { .ks-proofgrid .ks-proofcard.ks-proofrow { grid-template-columns: 1fr; gap: 1.1rem; } }

/* Client card layout mockups (side by side) */
.ks-vgrid { max-width: 1100px; margin: 0 auto; }
.ks-vcard { display: flex; flex-direction: column; gap: 1rem; }
.ks-vcard .ks-prooflogo { align-self: flex-start; }
.ks-vcard .ks-proofquote { flex: 1; }
.ks-vname b { display: block; font-size: 0.95rem; color: var(--dark); }
.ks-vname span { font-size: 0.85rem; color: var(--gray); }
.ks-v2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.ks-v2 .ks-vcard:last-child { grid-column: 1 / -1; max-width: calc(50% - 0.625rem); justify-self: center; width: 100%; }
.ks-vslide { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.ks-vslide .ks-vcard { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; }
.ks-v3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.ks-v3 .ks-vcard { flex: 0 1 calc(33.333% - 0.9rem); min-width: 280px; }
@media (max-width: 760px) { .ks-v2 { grid-template-columns: 1fr; } .ks-v2 .ks-vcard:last-child { max-width: none; } }

/* Phone fixes */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr !important; gap: 2.25rem !important; }
}
@media (max-width: 520px) {
    .hero h1 { font-size: clamp(2.1rem, 11vw, 3.2rem); overflow-wrap: break-word; }
    .hero .hero-content, .hero .hero-sub { max-width: 100%; }
}
@media (max-width: 900px) {
    .sprint-card > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
