/*
 * Shared styles for the work pages (company page → its sections → projects).
 * Same serif, same quiet cards as the homepage. Restyle with --wp-ink, --wp-muted, --wp-accent.
 */

:root { --wp-ink: #1d1d1f; --wp-muted: #6b6b6b; --wp-accent: #e96a1f; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--wp-ink);
  font-family: "Cirka", "Instrument Serif", Georgia, serif;
} /* background: paper grain + time-of-day sky, shared in theme.css */
.wp { max-width: 820px; margin: 0 auto; padding: 32px 20px 96px; }

/* back link + breadcrumb */
.wp-top { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--wp-muted); }
.wp-top a { color: inherit; text-decoration: none; transition: color .2s ease; }
.wp-top a:hover { color: var(--wp-ink); }
.wp-top .back span { display: inline-block; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.wp-top .back:hover span { transform: translateX(-3px); }
.wp-top .sep { opacity: .4; }

/* page header */
.wp-head { text-align: center; margin: 72px auto 48px; max-width: 34em; }
.wp-head h1 { margin: 0; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.wp-head p { margin: 8px 0 0; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.4; color: var(--wp-muted); }
.wp-head .pill { background: #fff0e5; color: #e96a1f; padding: 2px 12px; border-radius: 10px; }

/* two (or more) section cards */
.wp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.wp-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; outline: none; }
.wp-cover {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 16px;
  background: radial-gradient(120% 90% at 20% 0%, #fff 0%, var(--tint, #fdf1e8) 75%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.wp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.wp-cover .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .9; }
.wp-card:hover .wp-cover, .wp-card:focus-visible .wp-cover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 14px 30px rgba(0,0,0,.08); }
.wp-card:hover .wp-cover img { transform: scale(1.03); }
.wp-card:focus-visible .wp-cover { box-shadow: 0 0 0 2px #7c8cff; }
.wp-card h2 { margin: 0 2px; font-weight: 400; font-size: 22px; line-height: 1.2; }
.wp-card p { margin: 0 2px; font-size: 16px; line-height: 1.35; color: var(--wp-muted); }
.wp-card .more { margin: 2px 2px 0; font-size: 15px; color: var(--wp-muted); opacity: 0; transform: translateX(-4px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3,1.5,.5,1); }
.wp-card:hover .more, .wp-card:focus-visible .more { opacity: 1; transform: none; }

/* a gentle entrance for the cards */
.wp-cards > li { animation: wp-in .6s cubic-bezier(.2,.8,.2,1) both; }
.wp-cards > li:nth-child(2) { animation-delay: .08s; }
@keyframes wp-in { from { opacity: 0; transform: translateY(10px); } }

/* simple placeholder block for pages still to fill */
.wp-empty { margin: 8px auto 0; max-width: 30em; text-align: center; padding: 40px 24px; border: 1px dashed #e2e2e2; border-radius: 16px; color: var(--wp-muted); font-size: 17px; }

/* closing line */
.wp-foot { margin-top: 96px; text-align: center; font-size: clamp(20px, 2.4vw, 26px); }
.wp-foot a { color: #7b8a24; text-decoration: none; position: relative; }
.wp-foot a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: linear-gradient(90deg, transparent, #7b8a24 55%); }

@media (max-width: 640px) {
  .wp-head { margin: 48px auto 36px; }
  .wp-cards { grid-template-columns: 1fr; gap: 28px; }
  .wp-card .more { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-cards > li { animation: none; }
  .wp-cover, .wp-cover img, .wp-card .more { transition-duration: .01s; }
}

/* ---- two side-by-side lists (front of house / back of house) ---- */
.wl { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; }
.wl-col h2 { margin: 0; font-weight: 400; font-size: 22px; color: var(--wl-blue, #2f3a6b); display: flex; align-items: center; gap: 10px; }
.wl-house { width: 30px; height: auto; flex: none; image-rendering: pixelated; transform: translateY(-3px); }
.wl-house.back { width: 30px; transform: translateY(-5px); } /* a touch taller (chimney), so lift it to sit on the same line */
.wl-sub { margin: 6px 0 18px; font-size: 16px; line-height: 1.4; color: var(--wp-muted); min-height: 2.8em; }
.wl-col ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ececec; }
.wl-row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline;
  padding: 14px 2px; border-bottom: 1px solid #ececec; text-decoration: none; color: inherit; outline: none;
}
.wl-name { font-size: 19px; line-height: 1.25; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.wl-line { grid-column: 1; font-size: 14px; color: var(--wp-muted); margin-top: 2px; }
.wl-arrow { display: inline-block; width: .95em; height: auto; margin-left: .35em; vertical-align: .18em; overflow: visible; color: var(--wp-muted); opacity: .6;
  transition: opacity .25s ease, transform .35s cubic-bezier(.3,1.5,.5,1), color .25s ease; }
.wl-row:hover .wl-name, .wl-row:focus-visible .wl-name { transform: translateX(4px); }
.wl-row:hover .wl-arrow, .wl-row:focus-visible .wl-arrow { opacity: 1; transform: translateX(4px); color: var(--wp-ink); }
.wl-row:focus-visible { box-shadow: inset 0 0 0 2px #7c8cff; border-radius: 6px; }
/* the cover that floats beside the cursor */
.wl-peek {
  position: fixed; left: 0; top: 0; z-index: 10; width: 200px; aspect-ratio: 16 / 11; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 14px 30px rgba(0,0,0,.10);
  opacity: 0; scale: .92; transition: opacity .2s ease, scale .3s cubic-bezier(.2,.8,.2,1);
}
.wl-peek.on { opacity: 1; scale: 1; }
@media (max-width: 640px) {
  .wl { grid-template-columns: 1fr; gap: 40px; }
  .wl-sub { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .wl-name, .wl-arrow, .wl-peek { transition-duration: .01s; } }

/* ---- list dividers that draw themselves in, once, as they come into view ---- */
.wl-col ul { border-top: 0; position: relative; }
.wl-col ul::before, .wl-row::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: #ececec;
  transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.wl-col ul::before { top: 0; }
.wl-row { position: relative; border-bottom: 0; }
.wl-row::after { bottom: 0; transition-delay: calc(var(--i, 0) * 90ms + 90ms); }
.wl-col.drawn ul::before, .wl-col.drawn .wl-row::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .wl-col ul::before, .wl-row::after { transform: none; transition: none; }
}

/* small status tag next to a project name, e.g. WIP */
.wl-tag {
  display: inline-block; margin-left: .35em; padding: .18em .5em .2em; border-radius: 6px; vertical-align: .18em;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; line-height: 1;
  color: #9a6a12; background: #fdf1d6; box-shadow: inset 0 0 0 1px rgba(154,106,18,.12);
}

/* ======================= case study pages ======================= */
.cs { max-width: 760px; }
.cs-head { text-align: left; margin: 64px 0 28px; }
.cs-kicker { margin: 0 0 10px; font-size: 15px; color: var(--wl-blue, #2f3a6b); letter-spacing: .01em; }
.cs-head h1 { margin: 0; font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.01em; }
.cs-lede { margin: 14px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--wp-muted); max-width: 34em; }

/* role / team / timeline / platform strip */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 36px; padding: 16px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.cs-meta dt { font-size: 13px; color: var(--wp-muted); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-size: 16px; line-height: 1.3; }

/* images (and their placeholders) */
.cs-img { margin: 40px 0; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #fff 0%, #eef0f8 75%); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.cs-img > span { display: grid; place-items: center; aspect-ratio: 16 / 9; font-size: 15px; font-style: italic; color: #9aa0bd; }
.cs-img img { display: block; width: 100%; height: auto; }
.cs-img figcaption { padding: 10px 4px 0; font-size: 14px; color: var(--wp-muted); background: #fff; }
figure.cs-img { background: none; box-shadow: none; border-radius: 0; }
figure.cs-img img { border-radius: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.cs-cover > span { aspect-ratio: 16 / 8; }

/* story sections: a small label on the left, the text on the right */
.cs-sec { display: grid; grid-template-columns: 170px 1fr; gap: 24px; margin: 44px 0; }
.cs-sec h2 { margin: 3px 0 0; font-weight: 400; font-size: 16px; color: var(--wl-blue, #2f3a6b); }
.cs-sec p { margin: 0 0 14px; font-size: 19px; line-height: 1.55; }
.cs-sec p:last-child { margin-bottom: 0; }
.cs-sec b { font-weight: 400; font-style: italic; }
.cs-steps { margin: 6px 0 0; padding-left: 1.2em; font-size: 18px; line-height: 1.5; }
.cs-steps li { margin: 6px 0; }

/* impact numbers */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0 0 18px; padding: 0; }
.cs-stats li { padding: 16px 16px 14px; border-radius: 14px; background: #f7f7fb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
.cs-stats b { display: block; font-style: normal; font-size: 30px; line-height: 1; color: var(--wl-blue, #2f3a6b); }
.cs-stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--wp-muted); }

/* next case study */
.cs-next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 72px; padding-top: 18px; border-top: 1px solid #ececec; }
.cs-next span { font-size: 14px; color: var(--wp-muted); }
.cs-next a { font-size: 22px; color: var(--wp-ink); text-decoration: none; }
.cs-next a:hover .wl-arrow { opacity: 1; transform: translateX(4px); color: var(--wp-ink); }

@media (max-width: 640px) {
  .cs-head { margin-top: 40px; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-sec { grid-template-columns: 1fr; gap: 6px; margin: 34px 0; }
  .cs-sec p { font-size: 18px; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-next { flex-direction: column; gap: 4px; }
}

/* the four-tab walkthrough inside a case study */
.cs-tabs { display: grid; gap: 44px; margin: 8px 0 52px; padding-left: 194px; }
.cs-tab header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cs-num { font-size: 14px; color: #9aa0bd; font-variant-numeric: tabular-nums; }
.cs-tab h3 { margin: 0; font-weight: 400; font-size: 24px; color: var(--wl-blue, #2f3a6b); }
.cs-badge {
  margin-left: 2px; padding: .2em .55em .22em; border-radius: 6px; font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  color: #2f6b4a; background: #e3f3ea; align-self: center;
}
.cs-badge.soft { color: #5a5f7a; background: #eef0f6; }
.cs-tab p { margin: 0; font-size: 19px; line-height: 1.55; }
.cs-tab .cs-img { margin: 18px 0 0; }
.cs-sec em { font-style: italic; }
@media (max-width: 640px) {
  .cs-tabs { padding-left: 0; gap: 36px; }
  .cs-tab p { font-size: 18px; }
}
.cs-stats b.sm { font-size: 24px; white-space: nowrap; }
.cs-arr { width: .8em; height: auto; vertical-align: .12em; margin: 0 .1em; }

/* ======================= in-depth case study ======================= */
/* placeholders you still need to fill: soft yellow highlight */
mark.ph { background: #fff4c7; color: #6b5a1e; padding: 0 .2em; border-radius: 3px; font-style: normal; }

/* layout: a quiet "on this page" list on the left (wide screens only) */
.cs-layout { position: relative; }
.cs-toc { display: none; }
@media (min-width: 1180px) {
  .cs-toc { display: flex; flex-direction: column; gap: 6px; position: fixed; top: 140px; left: max(24px, calc(50% - 380px - 210px)); width: 160px; }
  .cs-toc a { font-size: 14px; color: #a3a3ad; text-decoration: none; transition: color .2s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
  .cs-toc a:hover { color: var(--wp-ink); }
  .cs-toc a.on { color: var(--wl-blue, #2f3a6b); transform: translateX(4px); }
}

/* TL;DR */
.cs-tldr { margin: 8px 0 52px; padding: 20px 22px; border-radius: 16px; background: #f7f7fb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
.cs-tldr h2 { margin: 0 0 10px; font-weight: 400; font-size: 15px; color: var(--wl-blue, #2f3a6b); }
.cs-tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cs-tldr li { font-size: 18px; line-height: 1.45; }
.cs-tldr b { font-weight: 400; font-style: italic; color: var(--wl-blue, #2f3a6b); }

/* who it's for */
.cs-people { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-people li { padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ececec; display: flex; flex-direction: column; gap: 4px; }
.cs-people b { font-weight: 400; font-size: 18px; color: var(--wl-blue, #2f3a6b); }
.cs-people span { font-size: 15px; line-height: 1.4; color: var(--wp-muted); }

.cs-quote { margin: 18px 0 0; padding: 0 0 0 18px; border-left: 2px solid #e1e3f0; font-size: 21px; line-height: 1.4; font-style: italic; }
.cs-quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--wp-muted); }
.cs-goals { margin: 0; padding-left: 1.2em; font-size: 19px; line-height: 1.5; }
.cs-goals li { margin: 6px 0; }
.cs-goals b { font-weight: 400; font-style: italic; }
.cs-note { margin-top: 14px !important; font-size: 16px !important; color: var(--wp-muted); }

/* a table's lifecycle: one line, four stops */
.cs-life { margin: 64px 0 56px; }
.cs-life h2 { margin: 0; font-weight: 400; font-size: 24px; }
.cs-life-intro { margin: 8px 0 24px; font-size: 19px; line-height: 1.5; color: var(--wp-muted); max-width: 34em; }
.cs-steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.cs-steps-line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: linear-gradient(90deg, #cfd3e8, #2f3a6b 85%); }
.cs-steps-line li { position: relative; padding-top: 24px; display: flex; flex-direction: column; gap: 3px; }
.cs-steps-line li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--wl-blue, #2f3a6b); }
.cs-steps-line li:last-child::before { background: var(--wl-blue, #2f3a6b); }
.cs-steps-line .when { font-size: 13px; color: #9aa0bd; }
.cs-steps-line b { font-weight: 400; font-size: 20px; color: var(--wl-blue, #2f3a6b); }
.cs-steps-line span:last-child { font-size: 15px; line-height: 1.4; color: var(--wp-muted); }

/* deep dives */
.cs-deep { margin: 56px 0; padding-top: 28px; border-top: 1px solid #ececec; }
.cs-deep > header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cs-deep h3 { margin: 0; font-weight: 400; font-size: 28px; color: var(--wl-blue, #2f3a6b); }
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cs-cols h4 { margin: 0 0 6px; font-weight: 400; font-size: 14px; color: #9aa0bd; }
.cs-cols p { margin: 0; font-size: 18px; line-height: 1.55; }
.cs-edge { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--wp-muted); }
.cs-edge b { font-weight: 400; color: var(--wp-ink); }
.cs-deep .cs-img { margin: 22px 0 0; }

/* transaction row anatomy (illustrative) */
.cs-anat { margin: 26px 0 0; padding: 22px; border-radius: 16px; background: #f7f7fb; }
.cs-row-demo { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr .8fr; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px #ececec; font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 14px; color: #3a3a40; }
.cs-row-demo span { position: relative; }
.cs-row-demo i { position: absolute; top: -26px; left: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--wl-blue, #2f3a6b); }
.cs-row-demo .a4 { font-weight: 600; font-size: 15px; color: #1d1d1f; }
.cs-row-demo .a5 { justify-self: start; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #2f6b4a; background: #e3f3ea; }
.cs-anat-keys { margin: 26px 0 0; padding-left: 1.3em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; font-size: 16px; color: var(--wp-muted); }
.cs-anat-keys b { font-weight: 400; color: var(--wp-ink); }
.cs-anat figcaption, .cs-cycle figcaption { margin-top: 14px; font-size: 13px; color: #9aa0bd; }

/* payout cycle (illustrative) */
.cs-cycle { margin: 26px 0 0; padding: 22px; border-radius: 16px; background: #f7f7fb; }
.cs-cycle ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.cs-cycle ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 0; border-top: 1.5px dashed #cfd3e8; }
.cs-cycle li { position: relative; padding-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.cs-cycle .dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #9aa0bd; }
.cs-cycle .dot.on { background: #2f9e64; box-shadow: 0 0 0 1.5px #2f9e64; }
.cs-cycle b { font-weight: 400; font-size: 18px; }
.cs-cycle li > span:last-child { font-size: 14px; line-height: 1.35; color: var(--wp-muted); }

@media (max-width: 640px) {
  .cs-people, .cs-cols, .cs-anat-keys { grid-template-columns: 1fr; }
  .cs-steps-line, .cs-cycle ol { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .cs-steps-line::before, .cs-cycle ol::before { display: none; }
  .cs-row-demo { grid-template-columns: 1fr 1fr; row-gap: 30px; padding-top: 30px; }
  .cs-deep h3 { font-size: 24px; }
}

/* a highlighted insight inside a deep dive */
.cs-insight { margin: 20px 0 0; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e4e6f2; border-left: 3px solid var(--wl-blue, #2f3a6b);
  font-size: 18px; line-height: 1.5; }
.cs-insight span { display: block; margin-bottom: 4px; font-size: 13px; color: #9aa0bd; }
.cs-insight b { font-weight: 400; font-style: italic; color: var(--wl-blue, #2f3a6b); }
/* the ID in the example row: the thing servers look for first */
.cs-row-demo .a0 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .04em; color: #1d1d1f;
  background: #fff4c7; padding: 2px 6px; border-radius: 6px; justify-self: start; }

/* ======================= AOV case study additions ======================= */
.cs-q { margin: 22px 0 8px !important; font-size: 15px !important; color: var(--wl-blue, #2f3a6b); }
.cs-sec > div > .cs-q:first-child { margin-top: 0 !important; }
/* soft chips for lists of reasons / benefits */
.cs-chips { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cs-chips.two { grid-template-columns: repeat(2, max-content); }
.cs-chips.three { grid-template-columns: repeat(3, 1fr); }
.cs-chips li { padding: 10px 14px; border-radius: 12px; background: #f7f7fb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); font-size: 17px; line-height: 1.35; }
.cs-hl { background: linear-gradient(transparent 58%, #ffe3b8 58%); padding: 0 .1em; }
.cs-hand { margin-top: 10px !important; font-style: italic; font-size: 21px !important; color: var(--wl-blue, #2f3a6b); }
.cs-people.two { grid-template-columns: repeat(2, 1fr); }
.cs-people.one { grid-template-columns: 1fr; }
/* the ideal flow as a winding list of steps */
.cs-flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; counter-reset: f; }
.cs-flow li { position: relative; counter-increment: f; padding: 10px 12px 10px 38px; border-radius: 10px; background: #1f2440; color: #f2f3fa;
  font-size: 16px; line-height: 1.3; }
.cs-flow li::before { content: counter(f); position: absolute; left: 11px; top: 10px; font-size: 12px; color: #9aa0bd; font-variant-numeric: tabular-nums; }
.cs-flow li.win { background: #2f3a6b; }
.cs-flow li.win::after { content: "✦"; margin-left: .35em; color: #ffd66b; }
.cs-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #ffd66b; color: #3a2e00; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.cs-pivotline { margin: 22px 0 0; text-align: center; font-size: 21px; line-height: 1.4; }
.cs-pivotline em { color: #c2563f; }
.cs-pivotline em + em, .cs-pivotline em:last-child { color: #c94f6d; }
/* games list */
.cs-games { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cs-games li { padding: 12px 14px; border-radius: 12px; background: #f7f7fb; display: flex; flex-direction: column; gap: 2px; }
.cs-games b { font-weight: 400; font-size: 18px; color: var(--wl-blue, #2f3a6b); }
.cs-games span { font-size: 14px; color: var(--wp-muted); }
.cs-sub { margin: 32px 0 10px; font-weight: 400; font-size: 20px; color: var(--wl-blue, #2f3a6b); }
.cs-name { font-weight: 400; font-style: italic; color: var(--wl-blue, #2f3a6b); }
.cs-deep h3 small { font-size: 16px; color: var(--wp-muted); }
.cs-try { display: inline-flex; align-items: baseline; gap: 8px; font-size: 20px; color: var(--wp-ink); text-decoration: none; }
.cs-try:hover .wl-arrow { opacity: 1; transform: translateX(4px); color: var(--wp-ink); }
/* learnings */
.cs-learn { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 8px; }
.cs-learn li { padding: 10px 14px; border-left: 2px solid #cfd3e8; font-size: 19px; line-height: 1.4; }
@media (max-width: 640px) {
  .cs-chips, .cs-chips.three, .cs-people.two, .cs-games { grid-template-columns: 1fr; }
  .cs-chips.two { grid-template-columns: 1fr 1fr; }
  .cs-flow { grid-template-columns: 1fr; }
}

/* ======================= deeper, bolder case study pieces ======================= */
/* a big statement line between sections */
.cs-statement { margin: 56px 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.01em; }
.cs-statement span { display: block; color: #e96a1f; font-style: italic; }

/* reasons with a short explanation */
.cs-reasons { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 10px; }
.cs-reasons li { padding: 14px 16px; border-radius: 14px; background: #f7f7fb; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); display: flex; flex-direction: column; gap: 4px; }
.cs-reasons b { font-weight: 400; font-size: 19px; color: var(--wl-blue, #2f3a6b); }
.cs-reasons span { font-size: 16px; line-height: 1.45; color: var(--wp-muted); }

/* psychology → design move */
.cs-psych { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cs-psych li { padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #ececec; display: flex; flex-direction: column; gap: 6px; }
.cs-psych b { font-weight: 400; font-size: 22px; line-height: 1.15; color: #1d1d1f; }
.cs-psych span { font-size: 15px; line-height: 1.4; color: var(--wp-muted); }
.cs-psych i { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #e2e2ea; font-style: normal; font-size: 15px; line-height: 1.45; color: var(--wl-blue, #2f3a6b); }
.cs-psych i::before { content: "In the design → "; color: #e96a1f; }

/* A/B variants + metrics */
.cs-variants { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-variants li { padding: 14px; border-radius: 14px; background: #f7f7fb; display: flex; flex-direction: column; gap: 4px; }
.cs-variants li:nth-child(2) { background: #fdf1e8; }
.cs-variants li:nth-child(3) { background: #eef0fb; }
.cs-variants span { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa0bd; }
.cs-variants b { font-weight: 400; font-size: 18px; line-height: 1.2; }
.cs-variants i { font-size: 14px; color: var(--wp-muted); }
.cs-metrics { margin: 0 0 12px; display: grid; gap: 0; border-top: 1px solid #ececec; }
.cs-metrics div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ececec; }
.cs-metrics dt { font-size: 14px; color: #9aa0bd; }
.cs-metrics dd { margin: 0; font-size: 17px; }

/* bolder type scale for in-depth pages */
.cs.bold .cs-head h1 { font-size: clamp(34px, 5vw, 54px); }
.cs.bold .cs-lede { font-size: clamp(20px, 2.3vw, 24px); color: #3b3b3f; }
.cs.bold .cs-sec h2 { font-size: 19px; line-height: 1.25; color: #1d1d1f; }
.cs.bold .cs-sec h2::before { content: ""; display: block; width: 18px; height: 2px; margin-bottom: 10px; background: #e96a1f; }
.cs.bold .cs-deep h3, .cs.bold .cs-life h2 { font-size: clamp(26px, 3.2vw, 34px); color: #1d1d1f; }
.cs.bold .cs-sec p { font-size: 20px; }

@media (max-width: 640px) {
  .cs-psych, .cs-variants { grid-template-columns: 1fr; }
  .cs-metrics div { grid-template-columns: 1fr; gap: 2px; }
  .cs.bold .cs-sec p { font-size: 18px; }
}

/* ---- Swiggy: two sides of the restaurant as big tappable tiles; the tapped side's projects come in below ---- */
.ws { max-width: 640px; margin: 0 auto; }
.ws-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-pick {
  font: inherit; color: var(--wp-ink); cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px 20px; border: 0; border-radius: 18px;
  background: #faf8f6; box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  transition: background .35s ease, box-shadow .35s ease, opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  -webkit-tap-highlight-color: transparent;
}
.ws-pick[data-side="diners"] { --ws-tint: #fdeee2; }
.ws-pick[data-side="restaurants"] { --ws-tint: #fff4dc; }
.ws-pick:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 24px rgba(0,0,0,.06); }
.ws-pick:active { transform: scale(.98); }
.ws-pick:focus-visible { outline: 2px solid #7c8cff; outline-offset: 3px; }
.ws-art { display: block; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.ws-pick .wl-house, .ws-pick .wl-house.back { width: 64px; transform: none; display: block; }
.ws-pick:hover .ws-art { transform: translateY(-3px); }
.ws-label { font-size: 22px; line-height: 1.2; color: var(--wl-blue, #2f3a6b); }
.ws-count { font-size: 14px; color: var(--wp-muted); }
/* the chosen side: tinted, its house hops; the other side steps back */
.ws-pick[aria-expanded="true"] { background: var(--ws-tint); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.ws[data-open]:not([data-open=""]) .ws-pick[aria-expanded="false"] { opacity: .55; }
.ws[data-open]:not([data-open=""]) .ws-pick[aria-expanded="false"]:hover { opacity: .85; }
.ws-pick.hop .ws-art { animation: ws-hop .55s cubic-bezier(.3,1.5,.5,1); }
@keyframes ws-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.06, .96); } 70% { transform: translateY(1px) scale(.98, 1.02); } 100% { transform: none; } }
.ws-hint { text-align: center; margin: 18px 0 0; font-size: 15px; font-style: italic; color: #9a96a6; transition: opacity .3s ease; }
.ws[data-open]:not([data-open=""]) .ws-hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }
/* the list: rows rise in one by one */
.ws-panel { margin-top: 28px; }
.ws-panel .wl-sub { min-height: 0; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.ws-panel li { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.ws-panel.in .wl-sub { opacity: 1; transform: none; }
.ws-panel.in li { opacity: 1; transform: none; }
.ws-panel.in li:nth-child(1) { transition-delay: .08s; } .ws-panel.in li:nth-child(2) { transition-delay: .16s; } .ws-panel.in li:nth-child(3) { transition-delay: .24s; }
@media (max-width: 640px) { .ws-picks { gap: 10px; } .ws-pick { padding: 20px 10px 16px; } .ws-pick .wl-house, .ws-pick .wl-house.back { width: 52px; } .ws-label { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .ws-pick, .ws-art, .ws-panel li, .ws-panel .wl-sub { transition: none; } .ws-pick.hop .ws-art { animation: none; } }

/* ---- Swiggy: one upfront list; each row says which side it's for ---- */
.wl-all { max-width: 640px; margin: 0 auto; }
.wl-all .wl-side { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--wp-muted); white-space: nowrap; }
.wl-all li { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 1ms); }
.wl-all li:nth-child(1) { --d: 0; } .wl-all li:nth-child(2) { --d: 90; } .wl-all li:nth-child(3) { --d: 180; }
.wl-all.in li { opacity: 1; transform: none; }
@media (max-width: 640px) { .wl-all .wl-side { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .wl-all li { opacity: 1; transform: none; transition: none; } }

/* ---- the simple page ending: one line + the social icons ---- */
.site-end { max-width: 640px; margin: 120px auto 80px; padding: 0 16px; text-align: center; }
.site-end .end-sub { margin: 0; font-size: 18px; color: var(--wp-muted); }
.cooking { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; font-size: 16px; font-style: italic; color: var(--wp-muted); }
.cooking .pot { position: relative; display: inline-block; width: 22px; height: 14px; color: #c9a07d; }
.cooking .pot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cooking .pot i { position: absolute; bottom: 12px; width: 2px; height: 7px; border-radius: 2px; background: #cfcbd9; opacity: 0; animation: cook-steam 2.4s ease-out infinite; }
.cooking .pot i:nth-child(1) { left: 6px; } .cooking .pot i:nth-child(2) { left: 10px; animation-delay: .8s; } .cooking .pot i:nth-child(3) { left: 14px; animation-delay: 1.6s; }
@keyframes cook-steam { 0% { opacity: 0; transform: translateY(2px) scaleY(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(1px, -8px) scaleY(1.2); } }
html[data-theme="dark"] .cooking .pot i { background: #4a4660; }
@media (prefers-reduced-motion: reduce) { .cooking .pot i { animation: none; opacity: .6; } }
/* a work-in-progress row: not a link yet; what it's about appears while you hover it */
.wl-row.wl-wip { cursor: default; }
.wl-wip .wl-line { display: block; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease, margin-top .4s ease; }
.wl-wip:hover .wl-line, .wl-wip:focus-visible .wl-line { max-height: 4em; opacity: 1; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .wl-wip .wl-line { transition: none; } }

/* AOV screens: every image sits in the same frame at the same height, so nothing looks bigger or smaller than the rest.
   Wider ones (the flows) scroll sideways inside the frame. */
figure.cs-shot { display: flex; justify-content: safe center; align-items: center; padding: 32px; border-radius: 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  background: radial-gradient(120% 90% at 20% 0%, #fff 0%, #eef0f8 75%); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
figure.cs-shot img { flex: none; width: auto; max-width: none; height: 440px; border-radius: 0; box-shadow: none; }
figure.cs-shot + figure.cs-shot { margin-top: 14px; }
/* the six game ideas are two rows in one image: show them side by side as one row, phones the same size as everywhere else */
.cs-row { flex: none; height: 440px; overflow: hidden; }
.cs-row + .cs-row { margin-left: 18px; }
figure.cs-shot .cs-row img { height: 923px; }
figure.cs-shot .cs-row.low img { margin-top: -483px; }
/* inside the two-column sections, screens still use the full frame width like the rest */
.cs-sec > div { min-width: 0; }
@media (min-width: 641px) { .cs-sec > div > figure.cs-shot { margin-left: -194px; } }
html[data-theme="dark"] figure.cs-shot { background: radial-gradient(120% 90% at 20% 0%, #26232f 0%, #1b1922 75%); box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
@media (max-width: 640px) { figure.cs-shot { padding: 18px; } figure.cs-shot img { height: 320px; } .cs-row { height: 320px; } figure.cs-shot .cs-row img { height: 671px; } figure.cs-shot .cs-row.low img { margin-top: -351px; } }

/* the ideal flow: one light row of steps */
.cs-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: st; }
.cs-steps li { position: relative; counter-increment: st; padding: 16px 14px 14px; border-radius: 14px; background: #f4f5fa; }
.cs-steps li::before { content: counter(st); display: block; margin-bottom: 18px; font-size: 13px; color: #9aa0bd; font-variant-numeric: tabular-nums; }
.cs-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #b6bad0; z-index: 1; }
.cs-steps b { display: block; font-size: 19px; font-weight: 500; line-height: 1.2; }
.cs-steps span { display: block; margin-top: 4px; font-size: 14px; color: var(--wp-muted); }
.cs-steps i { font-style: normal; font-size: 11px; padding: 1px 6px; margin-left: 2px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cs-steps .win { background: #fff4e0; }
.cs-steps .win b::after { content: " ✦"; color: #e9a23b; font-size: .8em; }
html[data-theme="dark"] .cs-steps li { background: #221f2b; }
html[data-theme="dark"] .cs-steps .win { background: #33291b; }
html[data-theme="dark"] .cs-steps i { background: #2b2836; }
@media (max-width: 640px) { .cs-steps { grid-template-columns: 1fr 1fr; } .cs-steps li::after { display: none; } }


/* a row of phone screens, side by side on one soft card */
figure.cs-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 28px 20px 18px; border-radius: 16px;
  background: radial-gradient(120% 90% at 20% 0%, #fff 0%, #eef0f8 75%); }
figure.cs-phones img { width: calc((100% - 3 * 18px) / 4); min-width: 120px; max-width: 200px; height: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(30,30,60,.08); }
figure.cs-phones figcaption { flex-basis: 100%; text-align: center; background: none; padding: 4px 0 0; }
html[data-theme="dark"] figure.cs-phones { background: radial-gradient(120% 90% at 20% 0%, #26232f 0%, #1b1922 75%); }
@media (max-width: 640px) { figure.cs-phones { gap: 10px; padding: 16px 12px 12px; } figure.cs-phones img { width: calc((100% - 10px) / 2); min-width: 0; } }
