/* ============ KSEYE case study ============
   The deck's story rebuilt natively: where they started, what we did, the target operating model, the roadmap.
   No client financials, pricing or staff names. */
.kx .head h2 { max-width: 20ch; }
.kx .head .sub { max-width: 46ch; }
.kx-ex { margin: 0 0 1.25rem; font-size: var(--step-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.kx-ex--dark { color: rgba(255, 255, 255, .55); }
.kx-ex--gap { margin-top: clamp(3.5rem, 6vw, 5rem); }
.kx-src { margin: 1.5rem 0 0; font-size: var(--step-small); color: rgba(255, 255, 255, .5); }

/* ---- where they started: the loan today, and the pain by team ---- */
.kx-today { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.kx-life { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kx-life__step { position: relative; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: clamp(18px, 2vw, 24px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.kx-life__step::after { content: ''; position: absolute; left: calc(clamp(18px, 2vw, 24px) + 1.5rem); bottom: -13px; width: 1px; height: 14px; background: var(--line); }
.kx-life__step:last-child::after { display: none; }
.kx-life__n { grid-row: span 3; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #F4F4F6; font-size: 13px; font-weight: 600; color: var(--soft); }
.kx-life h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.kx-life p { margin: .35rem 0 0; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.kx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .85rem 0 0; padding: 0; list-style: none; }
.kx-chips li { padding: .3rem .65rem; border-radius: 999px; background: #FDECEC; font-size: 12px; font-weight: 500; color: #B4232A; }
.kx-pains { padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.kx-pains ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kx-pains li { display: grid; grid-template-columns: 9.5rem 1fr 1.5rem; align-items: center; gap: 12px; font-size: var(--step-small); color: var(--ink); }
.kx-pains i { display: block; height: 10px; border-radius: 99px; background: #F1F1F3; overflow: hidden; }
.kx-pains i::before { content: ''; display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F2777C, #DC2F36); }
.kx-pains b { text-align: right; font-weight: 600; }
.kx-pains__total { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--soft); }
.kx-pains__total b { margin-right: .35rem; font-size: 2rem; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }

/* ---- what we did ---- */
.kx-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 clamp(3rem, 6vw, 5rem); padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.kx-stats li { padding: 1.5rem 1rem 0 0; }
.kx-stats b { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: #fff; }
.kx-stats span { display: block; margin-top: .5rem; font-size: var(--step-small); color: rgba(255, 255, 255, .6); }
.kx-prio { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.kx-prio__h { margin: 0; max-width: 18ch; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; color: #fff; }
.kx-prio__p { max-width: 40ch; margin: 1rem 0 0; font-size: var(--step-body); line-height: 1.55; color: rgba(255, 255, 255, .65); }
.kx-prio__h--ink { color: var(--ink); }
.kx-prio__p--ink { color: var(--soft); }
.kx-key { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: var(--step-small); color: rgba(255, 255, 255, .7); }
.kx-key li { display: flex; align-items: center; gap: .5rem; }
.kx-key i { width: 10px; height: 10px; border-radius: 50%; }
.kx-key .kx-dot--win { background: #3DDC97; }
.kx-key .kx-dot--fill { background: #F5B14C; }
.kx-key .kx-dot--no { background: #F2777C; }
.kx-mx { display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: 1fr auto auto; column-gap: .75rem; row-gap: .5rem; }
.kx-mx__y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; rotate: 180deg; align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.kx-mx__rows { grid-row: 1; grid-column: 2; display: grid; grid-template-rows: repeat(3, 1fr); font-size: 12px; color: rgba(255, 255, 255, .45); }
.kx-mx__rows span { align-self: center; }
.kx-mx__grid { grid-row: 1; grid-column: 3; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, minmax(108px, auto)); gap: 6px; }
.kx-mx__cell { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.kx-mx__cell--win { background: rgba(61, 220, 151, .1); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .25); }
.kx-mx__cols { grid-row: 2; grid-column: 3; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }
.kx-mx__x { grid-row: 3; grid-column: 3; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.kx-dot { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 500; line-height: 1.25; color: #fff; }
.kx-dot::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 10px #3DDC97; }
.kx-dot--fill::before { background: #F5B14C; box-shadow: none; }
.kx-dot--no { color: rgba(255, 255, 255, .6); }
.kx-dot--no::before { background: #F2777C; box-shadow: none; }
.kx-pocs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kx-poc { min-height: 300px; display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); border-radius: 22px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.kx-poc__n { font-size: 13px; font-weight: 600; color: var(--glow-2, #7FA6FF); }
.kx-poc h3 { margin: 1.25rem 0 0; font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.kx-poc p { margin: .75rem 0 0; font-size: var(--step-small); line-height: 1.5; color: rgba(255, 255, 255, .62); }
.kx-poc .kx-poc__r { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); font-weight: 600; color: #fff; }

/* ---- the target operating model, as a house ---- */
.kx-house { position: relative; display: grid; gap: 10px; padding: clamp(20px, 3vw, 40px); border-radius: var(--big, 28px); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -60px rgba(13, 15, 23, .35); }
.kx-house__roof { position: relative; display: grid; place-items: center; min-height: 150px; padding: 2.5rem 22% 1.75rem; clip-path: polygon(50% 0, 100% 72%, 100% 100%, 0 100%, 0 72%); background: linear-gradient(180deg, #2D5BFF, #1F45D6); text-align: center; color: #fff; }
.kx-house__roof p { margin: 0; max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.kx-house__roof span { display: block; margin-bottom: .4rem; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.kx-house ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.kx-house li { display: grid; place-items: center; padding: 1rem 1.1rem; border-radius: 14px; text-align: center; font-size: var(--step-small); font-weight: 500; line-height: 1.35; }
.kx-house__goals { grid-template-columns: repeat(3, 1fr); }
.kx-house__goals li { min-height: 76px; background: #1D1D1F; font-weight: 600; color: #fff; }
.kx-house__caps { grid-template-columns: repeat(6, 1fr); }
.kx-house__caps li { min-height: 110px; background: #EEF2FF; color: #1F3FB8; }
.kx-house__base { grid-template-columns: 1fr; }
.kx-house__base li { background: #F4F4F6; color: var(--ink); }
.kx-house__legend { position: absolute; top: clamp(20px, 3vw, 40px); left: clamp(20px, 3vw, 40px); display: none; }
.kx-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.kx-pillars li { padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.kx-pillar__n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #EEF2FF; font-size: 13px; font-weight: 600; color: #1F3FB8; }
.kx-pillars h3 { margin: 1.25rem 0 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.kx-pillars p { margin: .6rem 0 0; font-size: var(--step-small); line-height: 1.55; color: var(--soft); }
.kx-tomorrow { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(4rem, 8vw, 6.5rem); }
.kx-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.kx-flow li { padding: clamp(18px, 2vw, 24px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.kx-flow__n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #1D1D1F; font-size: 12px; font-weight: 600; color: #fff; }
.kx-flow h3 { margin: 1rem 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.kx-flow p { margin: .45rem 0 0; font-size: var(--step-small); line-height: 1.5; color: var(--soft); }
.kx-rag { display: flex; align-items: flex-start; gap: .5rem; margin-top: .4rem; }
.kx-rag i { flex: none; width: 10px; height: 10px; margin-top: .35rem; border-radius: 50%; }
.kx-rag i + i { margin-left: -.3rem; }
.kx-rag .g { background: #22B573; }
.kx-rag .a { background: #F5A524; }
.kx-rag .r { background: #E5383B; }

/* ---- the roadmap ---- */
.kx-road { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.kx-road li { position: relative; padding: 2.25rem 1.25rem 0 0; }
.kx-road li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-dark); }
.kx-road li::after { content: ''; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(45, 91, 255, .25); }
.kx-road__when { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.kx-road h3 { margin: .6rem 0 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.kx-road p { margin: .5rem 0 0; font-size: var(--step-small); line-height: 1.5; color: rgba(255, 255, 255, .62); }

@media (max-width: 1099px) {
  .kx-house__caps { grid-template-columns: repeat(3, 1fr); }
  .kx-pocs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-road { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .kx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
}
@media (max-width: 899px) {
  .kx-today, .kx-prio, .kx-tomorrow { grid-template-columns: 1fr; }
  .kx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-house__roof { padding-inline: 12%; }
}
@media (max-width: 599px) {
  .kx-house__goals, .kx-house__caps { grid-template-columns: 1fr; }
  .kx-house__caps li, .kx-house__goals li { min-height: 0; }
  .kx-house__roof { min-height: 170px; padding: 3rem 8% 1.5rem; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
  .kx-pocs, .kx-flow, .kx-pillars { grid-template-columns: 1fr; }
  .kx-poc { min-height: 0; }
  .kx-road { grid-template-columns: 1fr; }
  .kx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-pains li { grid-template-columns: 7.5rem 1fr 1.25rem; }
  .kx-mx__grid { grid-template-rows: repeat(3, minmax(90px, auto)); gap: 4px; }
  .kx-mx__cell { padding: 6px; }
  .kx-dot { padding: .35rem .45rem; font-size: 11px; }
  .kx-dot::before { display: none; }
  .kx-mx__rows { font-size: 10px; }
}

/* hero: the operating model itself, in place of a screenshot of the slide */
.kx-hero { display: grid; place-items: center; }
.kx-house--hero { width: min(100%, 980px); gap: 7px; padding: clamp(14px, 2vw, 26px); text-align: center; }
.kx-house--hero .kx-house__roof { min-height: 110px; padding: 2rem 20% 1.2rem; }
.kx-house--hero .kx-house__roof p { font-size: clamp(.85rem, 1.2vw, 1.05rem); }
.kx-house--hero ul { gap: 7px; }
.kx-house--hero li { padding: .7rem .8rem; font-size: clamp(11px, .9vw, 13px); }
.kx-house--hero .kx-house__goals li { min-height: 56px; }
.kx-house--hero .kx-house__caps li { min-height: 80px; }
@media (max-width: 599px) {
  .kx-house--hero .kx-house__caps { grid-template-columns: repeat(2, 1fr); }
  .kx-house--hero .kx-house__goals { grid-template-columns: 1fr; }
  .kx-house--hero .kx-house__base li:nth-child(n+2) { display: none; }
}

/* the deck's own slides, framed, each opening full size */
.kx-fig { margin: 0; }
.kx-fig__frame { display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -50px rgba(13, 15, 23, .45); transition: transform .8s var(--ease), box-shadow .8s; }
.kx-fig__frame:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 60px 110px -50px rgba(13, 15, 23, .55); }
.kx-fig__frame img { display: block; width: 100%; height: auto; }
.kx-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; font-size: var(--step-small); color: var(--soft); }
.kx-fig__open { font-weight: 600; color: var(--glow); }
.kx-fig__open::after { content: ' ↗'; }
.dark .kx-fig figcaption { color: rgba(255, 255, 255, .6); }
.dark .kx-fig__frame { box-shadow: 0 0 0 1px var(--line-dark), 0 50px 100px -50px rgba(0, 0, 0, .8); }
.kx .kx-stats + .kx-fig { margin-top: 0; }
.kx-pillars + .kx-fig, .kx-fig + .kx-fig { margin-top: clamp(2.5rem, 5vw, 4rem); }
.kx-tomorrow .kx-fig { min-width: 0; }
@media (min-width: 900px) { .kx-tomorrow { grid-template-columns: 4fr 8fr; align-items: center; } }
