/*! Designed & developed by Amit Salunkhe, Satara (India) | +91 90824 37230 */
/* Customers / Pasco Automobiles case study (customers.html). Editorial long-read; scoped to .cs. */

.cs {
  /* ============ HERO ============ */
  .ch { position: relative; padding: 40px 0 0; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 70%); overflow: hidden; }
  .ch::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: none; /* hero grid lines removed (client, 14 Nov) */ background-size: 48px 48px; -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%); opacity: .5; }
  .ch .container { position: relative; }
  .ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; margin-top: 28px; }
  .ch-copy { display: grid; gap: 20px; justify-items: start; }
  .ch-tag { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font: 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
  .ch-h1 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
  .ch .lead { max-width: 600px; }
  .ch .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
  .glance { padding: 22px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); }
  .glance small { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7fd3b2; }
  .gl-name { display: block; margin: 6px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
  .glance dl { margin: 0; display: grid; }
  .glance dl div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
  .glance dt { color: #8E9BA7; }
  .glance dd { margin: 0; color: #fff; font-weight: 500; }
  .ch-shot { margin-top: 48px; perspective: 1600px; }
  .ch-shot .win { border-radius: 20px 20px 0 0; border-bottom: 0; transform-origin: 50% 0; }
  .ch-shot .win-bar .right { margin-left: auto; }
  .ch-shot .live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--brand-ink); font-weight: 500; }
  .ch-img { height: clamp(260px, 34vw, 480px); overflow: hidden; background: var(--sunken); }
  .ch-img img { width: 100%; height: auto; display: block; }
  @media (max-width: 960px) { .ch-grid { grid-template-columns: 1fr; gap: 24px; } .ch-shot { margin-top: 32px; } }

  /* ============ STORY: sticky rail + chapters ============ */
  .story { padding: 80px 0 24px; border-top: 1px solid var(--line); background: var(--bg); }
  .story-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
  .toc { position: sticky; top: 104px; }
  .toc-in { display: grid; gap: 2px; }
  .toc-in > small { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .toc-in > a[data-c] { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s, color .25s; }
  .toc-in > a[data-c] span { font: 11px var(--mono); color: var(--faint); }
  .toc-in > a[data-c]:hover { color: var(--ink); background: var(--sunken); }
  .toc-in > a[data-c].on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
  .toc-in > a[data-c].on span { color: var(--brand-ink); }
  .toc-in > a[data-c].done span { color: var(--brand); }
  .toc-bar { height: 3px; border-radius: 2px; background: var(--line); margin: 14px 12px 0; overflow: hidden; }
  .toc-bar i { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
  .toc-cta { display: inline-flex; align-items: center; gap: 6px; margin: 18px 12px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
  .toc-cta svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
  .toc-cta:hover svg { transform: translateX(3px); }
  .chapters { display: grid; gap: 96px; }
  .chap { max-width: 760px; scroll-margin-top: 110px; }
  .chap-n { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
  .chap-h { margin: 12px 0 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
  .chap-lead { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 660px; }
  .sit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .sit-c { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
  .sit-c b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
  .sit-c small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
  .sit-list, .chal { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
  .sit-list li, .chal li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
  .sit-list svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 2px; }
  .chal { grid-template-columns: 1fr 1fr; gap: 10px 22px; }
  .chal li { font-size: 14.5px; }
  .chal svg { width: 16px; height: 16px; color: var(--red); flex: none; margin-top: 3px; }
  .chain { position: relative; display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; gap: 6px; margin-top: 28px; padding: 22px 22px 56px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); }
  .cn { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: center; transition: background .4s, border-color .4s; }
  .cn > span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); transition: background .4s, color .4s; }
  .cn > span svg { width: 18px; height: 18px; }
  .cn b { font-size: 15px; }
  .cn small { font-size: 12px; color: var(--muted); }
  .cl { display: grid; place-items: center; height: 34px; color: var(--red); }
  .cl svg { width: 20px; height: 20px; }
  .chain.broken .cl { animation: jitter 1.6s ease-in-out infinite; }
  @keyframes jitter { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
  .chain.fixed .cl { color: var(--brand); }
  .chain.fixed .cn.on { background: var(--brand-soft); border-color: var(--brand-line); }
  .chain.fixed .cn.on > span { background: var(--brand); color: #fff; }
  .chain-note { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--red); }
  .chain-note svg { width: 15px; height: 15px; }
  .chain-note.ok { color: var(--brand-ink); }
  .chgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .chg { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
  .chg > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
  .chg > span svg { width: 17px; height: 17px; }
  .chg b { display: block; font-size: 15px; }
  .chg small { font-size: 13px; color: var(--muted); line-height: 1.45; }
  .res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .res-c { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; }
  .res-c small { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7fd3b2; }
  .res-c b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
  .res-was { font-size: 12.5px; color: #8E9BA7; text-decoration: line-through; text-decoration-color: rgba(240, 138, 107, .7); }
  @media (max-width: 960px) {
    .story { padding: 48px 0 16px; }
    .story-grid { grid-template-columns: 1fr; }
    .toc { position: sticky; top: 64px; z-index: 30; margin: 0 -20px; padding: 8px 20px; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
    .toc-in { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
    .toc-in::-webkit-scrollbar { display: none; }
    .toc-in > small, .toc-cta { display: none; }
    .toc-in > a[data-c] { flex: none; height: 34px; font-size: 13px; }
    .toc-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; height: 2px; }
    .chapters { gap: 64px; }
    .chal, .chgs { grid-template-columns: 1fr; }
    .chain { grid-template-columns: 1fr; padding-bottom: 52px; }
    .cl { transform: rotate(90deg); height: 24px; }
    .chain.broken .cl { animation: none; }
    .sit, .res { grid-template-columns: 1fr; }
    .chap-lead { font-size: 16.5px; }
  }

  /* ============ OUTCOMES ============ */
  .ocs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .oc2 { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
  .oc2:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); border-color: var(--brand-line); }
  .oc2 > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
  .oc2 > span svg { width: 18px; height: 18px; }
  .oc2 p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
  .oc2.wide { grid-column: span 3; background: var(--ink); border-color: var(--ink); }
  .oc2.wide p { color: #fff; font-size: 17px; }
  .oc2.wide > span { background: var(--brand); color: #fff; }
  @media (max-width: 900px) { .ocs { grid-template-columns: 1fr; } .oc2.wide { grid-column: auto; } }

  /* ============ MODULES + REFERENCE ============ */
  .rf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
  .mds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .md { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease-out); }
  .md:hover { border-color: var(--brand-line); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
  .md > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
  .md > span svg { width: 18px; height: 18px; }
  .md b { display: block; font-size: 15px; }
  .md small { font-size: 12.5px; color: var(--muted); }
  .md > svg { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--muted); transition: transform .25s var(--ease-out); }
  .md:hover > svg { transform: translateX(3px); color: var(--ink); }
  .refc { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 26px; border-radius: 18px; background: linear-gradient(180deg, #F1FAF6, var(--surface)); border: 1px solid var(--brand-line); }
  .refc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
  .refc-ico svg { width: 20px; height: 20px; }
  .refc b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
  .refc p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
  .refc-l { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
  .refc-l svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
  .refc-l:hover svg { transform: translateX(3px); }
  @media (max-width: 900px) { .rf { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .mds { grid-template-columns: 1fr; } }
}

.cs .ch-grid > *, .cs .story-grid > *, .cs .rf > * { min-width: 0; }
@media (min-width: 1000px) {
  .cs .ch-h1, .cs .chap-h, .cs .pg-h2 { white-space: nowrap; }
}
@media (min-width: 1000px) { .cs .ch-h1 { font-size: clamp(34px, 3.6vw, 54px); } }
@media (max-width: 960px) { .cs .toc { margin: 0; padding: 8px 0; } }
