/* Case study pages (WGSN, FlowEQ, Quo, Crowded, Learn In, Qumodity): the live texts of
   vanguard-x.com/portfolio/<case>/ on the approved system. Shared look from the home
   (../../rediseno-v5-hero), the industry template (../../industrias/comun: solutions stage and the
   sideways row) and the home's Our Work cards (obra4: the product that builds itself).
   This sheet only adds what a case page needs:
   1 the entrance: the client's product builds itself as you scroll (the Our Work card, full screen)
   2 the client card beside the overview, 3 the challenge row's pictures and texts,
   4 the solution screens (drawn at 520 × 360 like the industry pages), 5 the results' small instruments,
   6 the three figures of Why, 7 the PDF request, 8 the prototype switch between cases.
   Every figure, name and status inside a screen or instrument is illustrative interface, not a claim. */

/* ---------- headings: the live section label leads the claim, dimmed, in the same line (as on About) ---------- */
.sh-pre { color: color-mix(in srgb, currentColor 52%, transparent); }
.sh-p { margin-top: 20px; max-width: 62ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--mute-l); text-wrap: pretty; }
.dark .sh-p { color: rgba(255, 255, 255, .72); }
.sh-p b { font-weight: 500; color: var(--ink); }
.dark .sh-p b { color: #fff; }

/* ================= 1 ENTRANCE: the product builds itself ================= */
.cx-hero { --bg: #0b0b0c; --keep: .72; --copy-w: min(600px, 44vw); background: var(--bg); color: #fff; }
.cx-pin { position: relative; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + clamp(20px, 5vw, 40px)); overflow: hidden; }
.cx-copy { position: relative; z-index: 4; display: grid; justify-items: start; gap: 16px; padding-inline: var(--side); }
.cx-copy .crumbs { margin-bottom: 0; }
.cx-copy .cs-client b { font-size: 17px; }
.cx-copy .cs-client i { font-style: normal; color: var(--mute-d); }
.cx-title {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.032em; line-height: 1.07;
  font-size: clamp(30px, 7.4vw, 44px); text-wrap: balance;
}
.cx-lead { max-width: 50ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .74); text-wrap: pretty; }
.cx-lead b { font-weight: 500; color: #fff; }
.cx-actions { margin-top: 6px; }

/* the render: the Our Work card's canvas, here as large as the screen allows */
.cx-art { position: relative; z-index: 1; margin-top: 18px; aspect-ratio: 1280 / 716; }
.cx-art canvas, .cx-art .cx-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx-art canvas { opacity: 0; transition: opacity .4s; }
.cx-hero.is-ready .cx-art canvas { opacity: 1; }
.cx-hero.is-ready .cx-poster { opacity: 0; transition: opacity 0s .4s; }
.cx-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,0) 22%); }

/* what the product does once it is built (the Our Work chip) */
/* the label that names what the finished product does. Its base look used to come from the home's
   obra4.css, which dropped it when the home's cards changed (2026-11-18), so it lives here now. */
.cx-hero .o4-live {
  position: absolute; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0;
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; line-height: 1.3; color: var(--white);
  background: rgba(12, 12, 13, .74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: 0; transform: translateY(8px);
}
.cx-hero .o4-live i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--run); box-shadow: 0 0 0 4px rgba(43, 182, 115, .18); }
.cx-hero .o4-live b { font-weight: 600; }
.cx-hero .o4-live span { color: var(--mute-d); }
.cx-hero .o4-live { left: 12px; top: auto; bottom: 12px; z-index: 5; }
.cx-hero.is-built .o4-live { opacity: 1; transform: none; transition: opacity .45s .15s, transform .6s .15s var(--ease-out); }

/* how far the build has gone, as a thin line with the word under the copy */
.cx-cue { display: none; }

/* big enough screens: the copy on the left, the product on the right, one screen tall (the JS pins it) */
@media (min-width: 960px) and (min-height: 560px) {
  .cx-pin { height: 100svh; min-height: 560px; display: block; padding: 0; container-type: size; }
  .cx-copy {
    position: absolute; left: var(--side); top: var(--nav-h); bottom: clamp(56px, 9svh, 88px); width: var(--copy-w);
    padding: 0; align-content: center; gap: clamp(12px, 2.2svh, 20px);
  }
  .cx-title { font-size: clamp(30px, min(3.25vw, 6.3svh), 54px); }
  .cx-art { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
  .cx-art canvas, .cx-art .cx-poster {
    inset: auto; top: calc(50% + var(--nav-h) / 2); right: 0; height: auto; aspect-ratio: 1280 / 716;
    width: min(calc((100cqh - var(--nav-h) - 8px) * 1.7877), calc((100cqw - var(--side) - var(--copy-w)) / var(--keep))); /* never taller than the room under the nav */
    transform: translateY(-50%);
    /* top and bottom melt into the page, and so does the left edge, so the render never shows a seam */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 calc(100% - var(--keep) * 100% + 4%));
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 calc(100% - var(--keep) * 100% + 4%));
    mask-composite: intersect;
  }
  .cx-art::after { background: linear-gradient(90deg, var(--bg) 0, var(--bg) calc(var(--side) + var(--copy-w) * .6), rgba(11,11,12,0) calc(var(--side) + var(--copy-w) + 40px)); }
  .cx-hero .o4-live { left: auto; right: var(--side); bottom: clamp(18px, 4svh, 36px); }
  .cx-cue {
    position: absolute; z-index: 4; left: var(--side); bottom: clamp(22px, 4.6svh, 40px);
    display: flex; align-items: center; gap: 12px; font: 500 12.5px var(--f-code); letter-spacing: .04em; color: var(--mute-d);
    transition: opacity .4s;
  }
  .cx-cue i { position: relative; display: block; width: 120px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.14); overflow: hidden; }
  .cx-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .cx-hero.is-built .cx-cue { opacity: 0; }
}

/* ================= 2 CLIENT OVERVIEW: the text, and the client's card with its figures ================= */
.cx-over { padding-block: clamp(80px, 11vw, 160px); }
.cx-over-in {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--side);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start;
}
.cx-over-text { display: grid; gap: 18px; padding-top: 4px; }
.cx-over-text p { max-width: 58ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.62; color: var(--mute-l); text-wrap: pretty; }
.cx-over-text p:first-child { color: var(--ink); }
.cx-card { position: relative; border-radius: 22px; overflow: hidden; background: #0b0b0c; color: #fff; box-shadow: 0 40px 70px -40px rgba(0,0,0,.5); }
.cx-card-art { position: relative; aspect-ratio: 1280 / 716; overflow: hidden; }
.cx-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b0b0c 0%, rgba(11,11,12,0) 45%); }
.cx-card-body { position: relative; display: grid; gap: 20px; padding: 0 clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 32px); margin-top: -18px; }
.cx-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-num { display: grid; align-content: start; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.cx-num b { font-weight: 500; font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -.04em; color: #ff9e68; font-variant-numeric: tabular-nums; }
.cx-num span { font-size: 14px; line-height: 1.4; color: var(--mute-d); }
@media (max-width: 900px) { .cx-over-in { grid-template-columns: 1fr; } .cx-card { max-width: 560px; } }

/* ================= 3 THE CHALLENGE: the sideways row, one studio picture per challenge ================= */
.cx-ch { padding-block: clamp(80px, 11vw, 150px); }
.cx-ch .tph-intro .sh-p { font-size: clamp(16px, 1.15vw, 18px); }
.cx-ch .tph-frame { background: #0d0d0e; }
.cx-ch .tph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cx-ch .tph-item:hover .tph-frame img { transform: scale(1.03); }
.cx-ch-d { margin-top: 16px; max-width: 56ch; font-size: 15px; line-height: 1.55; color: var(--mute-l); text-wrap: pretty; }
.cx-ch .tph-cap { padding-bottom: 14px; }
.cx-ch.is-pin { --fh: clamp(220px, 44svh, 500px); }
.cx-ch.is-pin .tph-list { align-items: flex-start; }
.cx-ch.is-pin .tph-intro { width: min(460px, 32vw); margin: 0; align-self: center; }
.cx-ch.is-pin .tph-intro .sh-t { max-width: none; }
.cx-ch.is-pin .tph-track { align-items: center; }

/* ================= 4 THE SOLUTION: the solutions block, bullets under each workstream ================= */
.cx-sol .sh-a .sh-t { max-width: 34ch; }
.sol-n { display: inline-block; width: 40px; font: 500 13px var(--f-code); color: #9aa0a8; letter-spacing: 0; transition: color .3s; }
.sol-i.is-on .sol-n { color: var(--orange); }
.cx-sol .sol-b { display: flex; align-items: baseline; }
.cx-sol .sol-more > div { overflow: hidden; }
.cx-sol .sol-i.is-on .sol-more > div { padding-bottom: 22px; }
.cx-bul { display: grid; gap: 10px; padding-left: 40px; }
.cx-bul li { position: relative; max-width: 56ch; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--mute-l); }
.cx-bul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .8; }
.cx-sol .sol-media video { object-position: var(--fx, 80%) 30%; }
@media (max-width: 860px) { .cx-bul { padding-left: 0; } }

/* ---------- the screens (520 × 360, scaled by --k; frame and fade in ../../industrias/comun/css/industria.css) ---------- */
.scr .scr-in { padding: 18px 20px; }
.k-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.k-pill.is-ok { background: rgba(43,182,115,.16); color: #5fd6a0; }
.k-pill.is-run { background: var(--orange-soft); color: #ff9e68; }
.k-pill.is-info { background: rgba(1,96,231,.22); color: #8fb6ff; }
.k-pill.is-off { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); }
.k-pill.is-run::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
/* everything inside a screen comes in, one piece after the other, each time the screen opens */
@keyframes k-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes k-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes k-wide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes k-draw { to { stroke-dashoffset: 0; } }
@keyframes k-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.scr.is-on [data-k] { animation: k-in .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * .14s + .15s); }

/* kpis, shared */
.k-kpis { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.k-kpis span { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); }
.k-kpis em { font-style: normal; font-size: 11.5px; color: var(--mute-d); }
.k-kpis b { font-weight: 500; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* model: history, then the forecast and its band */
.k-model { display: flex; flex-direction: column; gap: 14px; }
.k-chart { position: relative; flex: 1; min-height: 0; border-radius: 10px; background: rgba(255,255,255,.03); }
.k-chart svg { position: absolute; inset: 12px 14px 22px; width: calc(100% - 28px); height: calc(100% - 34px); overflow: visible; }
.k-chart path { fill: none; vector-effect: non-scaling-stroke; }
.k-hist { stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; }
.k-fc { stroke: #ff9e68; stroke-width: 2; stroke-dasharray: 5 5; opacity: 0; }
.k-band { fill: rgba(236,98,25,.16) !important; opacity: 0; }
.scr.is-on .k-hist { animation: k-draw 1.6s .3s var(--ease-io) forwards; }
.scr.is-on .k-fc, .scr.is-on .k-band { animation: k-in .8s 1.7s both; }
.k-now { position: absolute; left: 60%; top: 10px; bottom: 18px; border-left: 1px dashed rgba(255,255,255,.25); }
.k-now em { position: absolute; left: 6px; bottom: -16px; font-style: normal; font-size: 10.5px; color: var(--mute-d); white-space: nowrap; }
.k-note { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; }

/* flow: sources into a hub, the hub into its output, with things moving along */
.k-flow { padding: 0 !important; }
.k-flow svg { position: absolute; inset: 0; width: 520px; height: 326px; }
.k-flow path { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.4; stroke-dasharray: 4 5; }
.k-flow circle { fill: #ff9e68; }
.k-node {
  position: absolute; transform: translateY(-50%); padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.k-src { left: 22px; width: 116px; overflow: hidden; text-overflow: ellipsis; }
.k-hub { left: 220px; width: 120px; text-align: center; background: rgba(1,96,231,.22); box-shadow: inset 0 0 0 1px rgba(126,168,255,.45); }
.k-out { right: 22px; min-width: 136px; max-width: 170px; text-align: center; background: rgba(43,182,115,.16); box-shadow: inset 0 0 0 1px rgba(95,214,160,.45); }
.k-count { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); }
.k-count b { font-weight: 500; font-size: 26px; letter-spacing: -.03em; }
.k-count em { margin-left: 10px; font-style: normal; font-size: 13px; color: var(--mute-d); }

/* api: a request log */
.k-log { display: grid; align-content: start; gap: 0; padding: 8px 20px !important; font: 12.5px var(--f-code); }
.k-log li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto 76px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.k-log li:last-child { border-bottom: 0; }
.k-log b { font-weight: 500; color: #8fb6ff; }
.k-log span { color: rgba(255,255,255,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-log em { font-style: normal; color: #5fd6a0; }
.k-log em.is-warn { color: #ff9e68; }
.k-log small { font-size: 11.5px; color: var(--mute-d); text-align: right; white-space: nowrap; }
.scr.is-on .k-log li:last-child { animation-name: k-in; }
.k-cursor { display: inline-block; width: 7px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #ff9e68; animation: k-blink 1s steps(2) infinite; }

/* pipeline: steps that pass one after the other, then the result */
.k-pipe { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.k-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.k-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: rgba(255,255,255,.1); }
.k-steps::after { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 2px; background: var(--run); transform-origin: 0 50%; transform: scaleX(0); }
.scr.is-on .k-steps::after { animation: k-wide 2.4s .4s var(--ease-io) forwards; }
.k-step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 12px; color: rgba(255,255,255,.8); }
.k-step i { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #1d1f24; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
.k-step i::after { content: ""; position: absolute; left: 12px; top: 8px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.scr.is-on .k-step i { animation: k-ok .4s both; animation-delay: calc(var(--i) * .6s + .5s); }
.scr.is-on .k-step i::after { animation: k-in .3s both; animation-delay: calc(var(--i) * .6s + .6s); }
@keyframes k-ok { to { background: var(--run); box-shadow: 0 0 0 5px rgba(43,182,115,.16); } }
.k-done { justify-self: center; align-self: center; }
.scr.is-on .k-done { animation: k-in .5s 3s both; }
.k-kv { display: grid; gap: 0; border-radius: 10px; background: rgba(255,255,255,.04); padding: 2px 14px; }
.k-kv li { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.k-kv li:last-child { border-bottom: 0; }
.k-kv span { color: var(--mute-d); }

/* dash: kpis and a chart that grows */
.k-dash { display: flex; flex-direction: column; gap: 14px; }
.k-tabs { display: flex; gap: 6px; }
.k-tabs i { padding: 6px 10px; border-radius: 999px; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); white-space: nowrap; }
.k-tabs i.is-on { background: #fff; color: #111; font-weight: 600; }
.k-bars { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 12px 14px 14px; border-radius: 10px; background: rgba(255,255,255,.03); }
.k-bars em { font-style: normal; font-size: 11.5px; color: var(--mute-d); }
.k-bars > span { display: flex; align-items: flex-end; gap: 10px; min-height: 0; }
.k-bars > span i { flex: 1; height: calc(var(--v) * 100%); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4d8ff0, rgba(1,96,231,.55)); transform-origin: 50% 100%; transform: scaleY(0); }
.k-bars > span i:last-child { background: linear-gradient(180deg, #ff9e68, rgba(236,98,25,.6)); }
.scr.is-on .k-bars > span i { animation: k-grow .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * .08s + .4s); }

/* rows: a list with a status each */
.k-rows { display: grid; align-content: center; padding: 6px 20px !important; }
.k-rows li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.k-rows li:last-child { border-bottom: 0; }
.k-ab { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.k-rows span { display: grid; min-width: 0; line-height: 1.3; }
.k-rows span b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-rows span small { font-size: 12px; color: var(--mute-d); }

/* chat: a shared inbox, messages arrive and a call comes in */
.k-chat { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; padding: 0 !important; }
.k-convs { display: grid; align-content: start; gap: 2px; padding: 12px 10px; border-right: 1px solid rgba(255,255,255,.07); }
.k-convs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 6px; border-radius: 8px; font-size: 12px; color: rgba(255,255,255,.7); }
.k-convs li.is-on { background: rgba(255,255,255,.07); color: #fff; }
.k-convs i { width: 24px; height: 24px; border-radius: 50%; background: hsl(var(--h) 30% 36%); }
.k-convs span { display: grid; gap: 4px; }
.k-convs span::after { content: ""; height: 5px; width: 80%; border-radius: 3px; background: rgba(255,255,255,.12); }
.k-thread { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 16px 16px; }
.k-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; background: rgba(255,255,255,.09); }
.k-msg.is-out { align-self: flex-end; background: var(--blue); }
.k-call { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(43,182,115,.16); box-shadow: inset 0 0 0 1px rgba(95,214,160,.4); font-size: 12.5px; }
.k-call i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--run); animation: pulse 1.4s infinite; }
.scr.is-on .k-call { animation: k-in .5s 2.2s both; }

/* phone: the call on a phone, both platforms in step */
.k-phone { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; }
.k-ph { position: relative; height: 290px; border-radius: 28px; padding: 7px; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.k-ph > div { height: 100%; border-radius: 22px; display: grid; justify-items: center; align-content: center; gap: 8px; background: radial-gradient(120% 70% at 50% 0%, #2a3a33 0%, #121417 70%); }
.k-ph .k-av { width: 58px; height: 58px; border-radius: 50%; background: hsl(200 25% 40%); box-shadow: 0 0 0 6px rgba(95,214,160,.12); animation: pulse 2s infinite; }
.k-ph b { font-weight: 500; font-size: 14px; }
.k-ph small { font: 500 12px var(--f-code); color: #5fd6a0; }
.k-btns { display: flex; gap: 10px; margin-top: 14px; }
.k-btns i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); }
.k-btns i:last-child { background: #e5484d; }
.k-side { display: grid; gap: 12px; }
.k-plat { display: flex; gap: 8px; }
.k-plat span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: rgba(255,255,255,.06); }
.k-plat span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--run); }

/* board: lanes of work, one card in each lane moves to done */
.k-board { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.k-lane { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.k-lane > b { font-size: 11.5px; font-weight: 600; color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-card { padding: 9px 10px; border-radius: 8px; font-size: 12px; line-height: 1.3; background: rgba(255,255,255,.08); box-shadow: inset 3px 0 0 var(--c, rgba(255,255,255,.2)); }
.k-card.is-done { --c: var(--run); }
.k-card.is-now { --c: var(--orange); }
.k-lane small { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mute-d); }
.k-lane small::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: hsl(var(--h) 30% 40%); }

/* ================= 5 IMPACT & RESULTS: the quote, then four results acted out ================= */
.cx-imp { padding-block: clamp(80px, 11vw, 160px); }
.cx-imp .sh-a .sh-t { max-width: 38ch; }
.cx-res .reason { display: flex; flex-direction: column; }
.cx-imp .inst { background: #111214; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); margin-bottom: 24px; }
.cx-res .reason .cx-r-n { margin-top: 0; font-weight: 500; font-size: clamp(30px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -.035em; color: #fff; font-variant-numeric: tabular-nums; }
.cx-res .reason h3 { min-height: 0; margin-top: 10px; font-size: 17px; font-family: var(--f-text); font-weight: 600; letter-spacing: -.01em; color: #ff9e68; }
.cx-res .reason p:not(.cx-r-n) { margin-top: 10px; color: var(--mute-d); font-size: 15px; line-height: 1.55; }
@media (max-width: 1100px) { .cx-res { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 640px) { .cx-res { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- the instruments: each plays once when its card comes into view (.is-play) ---------- */
.ins { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8% 9%; font-size: 12px; color: rgba(255,255,255,.8); }
.ins-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--mute-d); }
.ins-foot b { font-weight: 600; }
.ins-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(43,182,115,.16); color: #5fd6a0; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease-out); }
.ins-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ins-chip.is-live::before { animation: pulse 1.4s infinite; }
.ins-chip.is-orange { background: var(--orange-soft); color: #ff9e68; }
.is-play .ins-chip { opacity: 1; transform: none; transition-delay: var(--at, 1.6s); }

/* merge: three agencies become one / two systems become one pipeline */
.mg-rows { display: grid; gap: 8px; }
.mg-row { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,.07); transition: background-color .5s, opacity .5s, transform .7s var(--ease-io); }
.mg-row i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background-color .4s; }
.mg-row::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: rgba(255,255,255,.5); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s; }
.is-play .mg-row:not(.is-keep) { opacity: .3; transition-delay: calc(.6s + var(--i) * .25s); }
.is-play .mg-row:not(.is-keep)::after { transform: scaleX(1); transition-delay: calc(.4s + var(--i) * .25s); }
.is-play .mg-row.is-keep { background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(236,98,25,.45); transition-delay: 1.3s; }
.is-play .mg-row.is-keep i { background: var(--orange); transition-delay: 1.3s; }
/* into: the rows slide into one target */
.mg-into { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; font-weight: 600; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background-color .5s 1.2s, box-shadow .5s 1.2s, color .5s 1.2s; }
.has-into .mg-row { transition-delay: calc(.3s + var(--i) * .2s); }
.is-play.has-into .mg-row, .is-play .has-into .mg-row { opacity: 1; }
.is-play .has-into .mg-row:not(.is-keep) { opacity: 1; }
.is-play .has-into .mg-row::after { transform: scaleX(0); }
.is-play .has-into .mg-row i { background: #5fd6a0; transition-delay: calc(.5s + var(--i) * .2s); }
.is-play .mg-into { background: rgba(43,182,115,.16); box-shadow: inset 0 0 0 1px rgba(95,214,160,.45); color: #5fd6a0; }
.mg-arrow { align-self: center; width: 2px; height: 14px; background: rgba(255,255,255,.2); }

/* team: people join one after another */
.tm-row { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 8px; }
.tm-p { position: relative; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background-color .4s, box-shadow .4s; transition-delay: calc(.3s + var(--i) * .16s); }
.tm-p::before { content: ""; position: absolute; left: 34%; top: 20%; width: 32%; height: 32%; border-radius: 50%; background: rgba(255,255,255,.22); transition: inherit; }
.tm-p::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 16%; height: 26%; border-radius: 40% 40% 12% 12%; background: rgba(255,255,255,.22); transition: inherit; }
.is-play .tm-p { background: rgba(236,98,25,.14); box-shadow: inset 0 0 0 1px rgba(236,98,25,.45); }
.is-play .tm-p::before, .is-play .tm-p::after { background: #ff9e68; }
.tm-p.is-first { background: rgba(236,98,25,.14); box-shadow: inset 0 0 0 1px rgba(236,98,25,.45); }
.tm-p.is-first::before, .tm-p.is-first::after { background: #ff9e68; }

/* days: Monday to Friday */
.dy-row { display: flex; justify-content: space-between; }
.dy-row i { width: 18%; padding: 9px 0; border-radius: 8px; text-align: center; font: 600 11px var(--f-text); font-style: normal; color: #8a9099; background: rgba(255,255,255,.06); transition: background-color .3s, color .3s; transition-delay: calc(.4s + var(--i) * .3s); }
.is-play .dy-row i { background: var(--orange-soft); color: #ff9e68; }
.dy-line { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.dy-line b { display: block; height: 100%; background: var(--orange); transform-origin: left center; transform: scaleX(0); transition: transform 1.5s .3s linear; }
.is-play .dy-line b { transform: scaleX(1); }
.ins-days .ins-chip { align-self: flex-end; }
/* the same instrument on a light card (Why) */
.light .dy-row i, .paper .dy-row i { background: #f1f2f4; }
.light .is-play .dy-row i, .paper .is-play .dy-row i { background: rgba(236,98,25,.12); color: #c2500f; }
.light .dy-line, .paper .dy-line { background: #eceef1; }
.light .ins-chip, .paper .ins-chip { background: rgba(43,182,115,.14); color: #18794a; }

/* grid: many small things lighting up */
.ins-grid { padding: 9%; }
.gd { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.gd i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.07); transition: background-color .3s; transition-delay: calc(.2s + var(--d) * 1.6s); }
.is-play .gd i { background: rgba(1,96,231,.7); }
.is-play .gd i:nth-child(7n + 3) { background: #ff9e68; }

/* spark: a curve that keeps rising */
.sp { position: relative; flex: 1; }
.sp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sp path { fill: none; vector-effect: non-scaling-stroke; }
.sp-line { stroke: #ff9e68; stroke-width: 2; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2s .3s var(--ease-io); }
.sp-area { fill: rgba(236,98,25,.14) !important; opacity: 0; transition: opacity .8s 1.6s; }
.is-play .sp-line { stroke-dashoffset: 0; }
.is-play .sp-area { opacity: 1; }
.sp-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.sp-grid i { height: 1px; background: rgba(255,255,255,.06); }

/* months: one cell per month of the engagement */
.mo { display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); gap: 4px; }
.mo i { position: relative; aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.07); transition: background-color .25s; transition-delay: calc(.2s + var(--i) * var(--step, .04s)); }
.is-play .mo i { background: rgba(255,255,255,.55); }
.is-play .mo i:last-child { background: var(--orange); }
.mo i.is-mark { box-shadow: 0 0 0 2px #0b0b0c, 0 0 0 3px #8fb6ff; }
.mo.is-running i:last-child { animation: k-blink 1.2s 2.6s infinite; }

/* day 1: a month, the first day lit, then every day after it */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal i { aspect-ratio: 1.25; border-radius: 4px; background: rgba(255,255,255,.06); transition: background-color .25s; transition-delay: calc(.8s + var(--i) * .035s); }
.cal i:first-child { background: var(--orange); box-shadow: 0 0 0 3px rgba(236,98,25,.25); transition: none; }
.is-play .cal i:not(:first-child) { background: rgba(255,255,255,.4); }

/* uptime: three services, every day green */
.ut { display: grid; gap: 10px; }
.ut li { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 11.5px; color: var(--mute-d); }
.ut span { display: flex; gap: 2px; height: 16px; }
.ut span b { flex: 1; border-radius: 2px; background: rgba(255,255,255,.08); transition: background-color .2s; transition-delay: calc(.2s + var(--r) * .15s + var(--i) * .03s); }
.is-play .ut span b { background: var(--run); }
.is-play .ut span b.is-dip { background: #e9b949; }

/* faster: the same work, shipped sooner */
.fs { display: grid; gap: 12px; }
.fs li { display: grid; gap: 6px; font-size: 11.5px; color: var(--mute-d); }
.fs span { display: block; height: 14px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.fs span b { display: block; height: 100%; width: var(--w); border-radius: 4px; background: rgba(255,255,255,.4); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease-io); transition-delay: var(--at); }
.fs li:last-child span b { background: var(--orange); }
.is-play .fs span b { transform: scaleX(1); }

/* money: two milestones on a rising line */
.mn { position: relative; flex: 1; }
.mn svg { position: absolute; inset: 0 0 26px; width: 100%; height: calc(100% - 26px); overflow: visible; }
.mn path { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s .3s var(--ease-io); }
.is-play .mn path { stroke-dashoffset: 0; }
.mn-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .4s var(--ease-out); }
.mn-dot.is-top { background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }
.is-play .mn-dot { transform: scale(1); transition-delay: var(--at); }
.mn-l { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: rgba(255,255,255,.8); }

/* chips: products launched, one after another */
.pc3 { display: grid; gap: 8px; }
.pc3 li { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.06); }
.pc3 li i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background-color .3s; transition-delay: calc(.5s + var(--i) * .5s); }
.pc3 li i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .3s; transition-delay: calc(.6s + var(--i) * .5s); }
.is-play .pc3 li i { background: var(--run); }
.is-play .pc3 li i::after { opacity: 1; }

/* ================= 6 WHY: the claim, the three figures, the two reasons ================= */
.cx-why .sh-a .sh-t { max-width: 30ch; }
.cx-why .inst { background: #fff; box-shadow: 0 0 0 1px rgba(26, 26, 26, .05); }
.cx-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-figs .reason h3 { min-height: 0; font-size: 17px; font-family: var(--f-text); color: var(--mute-l); letter-spacing: -.005em; }
.cx-figs .reason .fig { margin-top: 6px; font-size: clamp(30px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); }
.cx-why-p { max-width: var(--max); margin: clamp(40px, 5vw, 72px) auto 0; padding-inline: var(--side); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); }
.cx-why-p p { max-width: 56ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--mute-l); text-wrap: pretty; }
.cx-why-p p:only-child { grid-column: 1 / -1; }
.cx-why-p b { font-weight: 500; color: var(--ink); }
@media (max-width: 760px) {
  .cx-figs { grid-template-columns: 1fr; row-gap: 48px; max-width: 520px; }
  .cx-why-p { grid-template-columns: 1fr; }
}

/* ================= 7 THE PDF: the closing line, the finished product, the request ================= */
.cx-pdf { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 140px); background: #0b0b0c; }
.cx-pdf-art { position: absolute; right: 0; top: 50%; width: min(980px, 72vw); aspect-ratio: 1280 / 716; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.cx-pdf-art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, transparent 0, #000 15%, #000 85%, transparent 100%); mask-composite: intersect; }
.cx-pdf-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding-inline: var(--side); }
.cx-pdf-in .sh-t { max-width: 32ch; }
.cx-form { display: grid; gap: 12px; max-width: 560px; margin-top: clamp(28px, 4vw, 44px); }
.cx-form label { font-size: 15px; color: rgba(255,255,255,.78); }
.cx-form-row { display: flex; gap: 10px; }
.cx-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15.5px; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: box-shadow .25s, background-color .25s;
}
.cx-form input::placeholder { color: rgba(255,255,255,.45); }
.cx-form input:focus { outline: none; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px var(--orange); }
.cx-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff7a7a; }
.cx-form .btn { height: 52px; }
.cx-form-msg { min-height: 1.4em; font-size: 14px; color: var(--mute-d); }
.cx-form-msg.is-ok { color: #5fd6a0; }
.cx-form-msg.is-err { color: #ff9a9a; }
@media (max-width: 560px) { .cx-form-row { flex-direction: column; } .cx-form .btn { width: 100%; } }
@media (max-width: 900px) { .cx-pdf-art { width: 120vw; right: -40vw; opacity: .3; } }

/* ================= 8 prototype only: switch between the six cases ================= */
.cx-pick { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, calc(100% + 120px)); max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.cx-pick::-webkit-scrollbar { display: none; }
.cx-pick.is-on { transform: translate(-50%, 0); }
@media (max-width: 760px) { .cx-pick { bottom: 14px; } .cx-pick span { display: none; } .cx-pick a { padding: 7px 11px; } }

@media (prefers-reduced-motion: reduce) {
  .scr.is-on [data-k], .scr.is-on .k-hist, .scr.is-on .k-fc, .scr.is-on .k-band, .scr.is-on .k-steps::after,
  .scr.is-on .k-step i, .scr.is-on .k-step i::after, .scr.is-on .k-done, .scr.is-on .k-bars > span i, .scr.is-on .k-call { animation-duration: .01s; animation-delay: 0s; }
  .ins *, .ins *::before, .ins *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
}
