/* Shared theme-aware styles for Kinetix Winding Process & Fanned Testimonial Deck */
html {
    --kx-bg: #FFFFFF;
    --kx-surface: #F1F1EF;
    --kx-border: #E2E2DF;
    --kx-text: #121316;
    --kx-muted: #5D6068;
    --kx-accent: #F05526;
    --kx-deck-card: #FFE7E2;
    --kx-deck-border: rgba(240, 85, 38, 0.25);
}
html.ch-theme-dark {
    --kx-bg: #07080A;
    --kx-surface: #14161B;
    --kx-border: rgba(255, 255, 255, 0.09);
    --kx-text: #F4F4F5;
    --kx-muted: #A3A7B0;
    --kx-accent: #F05526;
    --kx-deck-card: #1D1718;
    --kx-deck-border: rgba(240, 85, 38, 0.34);
}

/* 1. Kinetix Winding SVG Process Section */
@font-face {
    font-family: "KxCondensed";
    src: url("/fonts/Anton-Regular.ttf") format("truetype");
    font-display: swap;
}
.kx-process {
    position: relative;
    max-width: 1280px;
    margin: clamp(72px, 9vw, 128px) auto 0;
    padding: 0 20px;
    overflow: hidden;
    color: var(--kx-text);
}
.kx-process-head {
    text-align: center;
}
.kx-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kx-muted);
}
.kx-process-head h2 {
    margin: 0 auto;
    max-width: 5.2em;
    font-family: "KxCondensed", Impact, sans-serif;
    font-size: clamp(56px, 9vw, 112px);
    font-weight: 400;
    line-height: 0.98;
    text-transform: uppercase;
    color: var(--kx-accent) !important;
}
.kx-process-body {
    position: relative;
    margin-top: 40px;
}
.kx-winding-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.kx-winding-svg path {
    fill: none;
    stroke: var(--kx-accent);
    stroke-width: clamp(8px, 1.2vw, 16px);
    stroke-linecap: round;
    stroke-linejoin: round;
}
.kx-winding-svg .kx-path-bg {
    opacity: 0.14;
}
.kx-process-rows {
    position: relative;
    margin: 0;
    padding: 90px 0 200px;
    list-style: none;
}
.kx-row {
    display: flex;
    justify-content: center;
}
.kx-row + .kx-row {
    margin-top: clamp(150px, 20vw, 280px);
}
.kx-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kx-row-1 .kx-block { left: 18%; }
.kx-row-2 .kx-block { left: -19%; }
.kx-row-3 .kx-block { left: 11%; }
.kx-row-4 .kx-block { left: -14%; }

.kx-row-line {
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
    font-family: "KxCondensed", Impact, sans-serif;
    font-size: clamp(28px, 6vw, 76px);
    font-weight: 400;
    line-height: 1;
}
.kx-word {
    text-transform: uppercase;
    color: var(--kx-accent);
}
/* The words sit together until the line arrives, then the sticker pushes them apart */
.kx-icon-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 1.5em;
    margin: 0 0.12em;
    transition: width 0.6s cubic-bezier(0.34, 1.6, 0.5, 1), margin 0.6s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.kx-icon-slot > svg {
    flex: 0 0 1.5em;
    width: 1.5em;
    height: 1.5em;
    transform: scale(0) rotate(-50deg);
    opacity: 0;
    filter: drop-shadow(0 0 3px #ffd9cc) drop-shadow(0 0 3px #ffd9cc);
    transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.5, 1), opacity 0.25s ease;
}
.kx-row.is-lit .kx-icon-slot { width: 1.5em; margin: 0 0.22em; }
.kx-row.is-lit .kx-icon-slot > svg { transform: scale(1) rotate(0deg); opacity: 1; }

.kx-process .kx-row-pill {
    position: absolute;
    top: 100%;
    left: 52%;
    width: max-content;
    max-width: 300px;
    margin: 4px 0 0;
    padding: 11px 22px;
    border: 1px solid var(--kx-accent);
    border-radius: 100px;
    background: var(--kx-bg);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--kx-accent) !important;
    transform: rotate(-5deg) scale(0);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.6, 0.5, 1) 0.1s, opacity 0.3s ease 0.1s;
}
.kx-process .kx-row.is-lit .kx-row-pill {
    transform: rotate(-5deg) scale(1);
    opacity: 1;
}

.kx-move { transform-box: fill-box; transform-origin: center; }
.kx-row.is-lit .kx-swing { animation: kx-swing 2.6s ease-in-out infinite; }
.kx-row.is-lit .kx-scribble { animation: kx-scribble 1.6s ease-in-out infinite; }
.kx-row.is-lit .kx-pop { animation: kx-pop 1.8s ease-in-out infinite; }
.kx-row.is-lit .kx-fly { animation: kx-fly 1.8s ease-in-out infinite; }
@keyframes kx-swing { 50% { transform: rotate(-13deg); } }
@keyframes kx-scribble { 33% { transform: translate(-9px, 4px); } 66% { transform: translate(5px, -3px); } }
@keyframes kx-pop { 50% { transform: scale(0.8); } }
@keyframes kx-fly { 50% { transform: translateY(-9px); } }

@media (max-width: 760px) {
    .kx-row-1 .kx-block, .kx-row-3 .kx-block { left: 3%; }
    .kx-row-2 .kx-block, .kx-row-4 .kx-block { left: -3%; }
    .kx-row-line { font-size: clamp(26px, 8.4vw, 56px); }
    .kx-process .kx-row-pill { left: 50%; max-width: 250px; text-align: center; transform: translateX(-50%) rotate(-4deg) scale(0); }
    .kx-process .kx-row.is-lit .kx-row-pill { transform: translateX(-50%) rotate(-4deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .kx-icon-slot, .kx-icon-slot > svg, .kx-process .kx-row-pill { transition: none; }
    .kx-row.is-lit .kx-move { animation: none; }
}

/* 2. Fanned Testimonial Card Deck ("THEY LIKE US") */
.ab-deck-sec {
    max-width: 1180px;
    margin: clamp(72px, 9vw, 128px) auto 0;
    padding: 40px 20px;
    text-align: center;
    background: transparent;
    overflow: hidden;
}
html body section.ab-deck-sec h2.ab-deck-eyebrow {
    margin: 0 0 64px !important;
    font-family: "KxCondensed", Impact, sans-serif !important;
    font-size: clamp(52px, 8vw, 104px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-transform: uppercase;
    color: var(--kx-accent) !important;
}
.ab-deck {
    max-width: 720px;
    margin: 0 auto;
}
.ab-deck-stack {
    position: relative;
    display: grid;
    margin: 0 12px;
    cursor: pointer;
    user-select: none;
    outline-offset: 12px;
}
/* Outranks the site-wide scroll reveal, which flattens every article */
.ab-deck .ab-deck-stack > .ab-deck-card {
    opacity: 1;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--kx-deck-border);
    border-radius: 26px;
    background: var(--kx-deck-card);
    text-align: left;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
    z-index: var(--z, 1);
    transform: translateY(var(--y, 0px)) rotate(var(--rot, 0deg)) scale(var(--s, 1));
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-deck .ab-deck-stack > .ab-deck-card:nth-child(even) {
    background: var(--kx-bg);
}
.ab-deck-card > * {
    transition: opacity 0.3s ease;
}
/* Cards underneath read as blank paper */
.ab-deck-card:not(.is-front) > * {
    opacity: 0;
}
.ab-deck-count {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--kx-muted);
    margin-bottom: 18px;
}
html body section.ab-deck-sec blockquote.ab-deck-quote {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: "KxCondensed", Impact, sans-serif !important;
    font-size: clamp(22px, 3.2vw, 34px) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase;
    color: var(--kx-text) !important;
}
html body section.ab-deck-sec p.ab-deck-body {
    margin: 0 0 24px !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: var(--kx-muted) !important;
}
.ab-deck-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.ab-deck-author img {
    width: 48px;
    height: 48px;
    border: 2px solid var(--kx-accent);
    border-radius: 50%;
    object-fit: cover;
}
.ab-deck-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--kx-text);
}
.ab-deck-author span {
    font-size: 12.5px;
    color: var(--kx-muted);
}
.ab-deck-cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    background: var(--kx-accent);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    scale: 0;
    transition: opacity 0.2s ease, scale 0.3s cubic-bezier(0.34, 1.6, 0.5, 1);
}
.ab-deck-stack:hover .ab-deck-cursor {
    opacity: 1;
    scale: 1;
}
.ab-deck-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
}
button.ab-deck-dot {
    width: 24px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--kx-border);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
button.ab-deck-dot.is-active {
    width: 38px;
    background: var(--kx-accent);
}
@media (hover: none) {
    .ab-deck-cursor { display: none; }
}
@media (max-width: 600px) {
    .ab-deck-card { min-height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-deck-card, .ab-deck-card > * { transition: none; }
}

/* Page stylesheets restyle every h2/h3/p, so pin the process section's type */
html body section.kx-process .kx-process-head h2 {
    margin: 0 auto !important;
    max-width: 5.2em !important;
    font-family: "KxCondensed", Impact, sans-serif !important;
    font-size: clamp(56px, 9vw, 112px) !important;
    font-weight: 400 !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    color: var(--kx-accent) !important;
}
html body section.kx-process h3.kx-row-line {
    margin: 0 !important;
    font-family: "KxCondensed", Impact, sans-serif !important;
    font-size: clamp(28px, 6vw, 76px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}
html body section.kx-process p.kx-row-pill {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: var(--kx-accent) !important;
}
@media (max-width: 760px) {
    html body section.kx-process h3.kx-row-line { font-size: clamp(26px, 8.4vw, 56px) !important; }
}

html body section.kx-process p.kx-row-pill { -webkit-text-fill-color: var(--kx-accent); }
