/* The puzzles theme for the case studies. They keep their own markup and the main site's components
   (cs-base.css, copied from website/styles.css at build); this file re-dresses them: the cube's colours on its
   warm ground, the picked display face (Funnel Display by default) for the display lines, the puzzles bar, and each case study's hero as a coloured folder
   in its project's colour (Marketing Studio blue, Conversation widgets yellow, Chetak orange, GenAI green). */
:root{
  --paper:#eae9e4; --sheet:#f6f6f4; --card:#ffffff; --ink:#141413; --ink-2:#2c2b28; --muted:#5d5b55; --line:#d9d5cb;
  --accent:#2952e3; --accent-soft:#dde7fb; --on-accent:#ffffff;
  --red:#e4362c; --orange:#ff8a1f; --yellow:#ffd23f; --green:#13a35a; --blue:#2952e3; --coal:#1d1d1c; --white:#f7f6f2; --plastic:#141414;
  --f-blue:#c6def1; --f-yellow:#faedcb; --f-orange:#f7d9c4; --f-green:#c9e4de;   /* Coolors "Soft Earthy Hues" (Raashi picked B, 2026-11-23) */   /* bright again (Raashi, 2026-11-11); soft set B was #c9d8f5 #fbe7a1 #fcd2ad #c4e6d1, with --proj-fg:var(--ink) on blue */
  --font:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;
  --pz-display:var(--display,"Funnel Display",Figtree,system-ui,sans-serif);   /* the face picked in the footer (fonts.css, pz-font.js) */
  --proj:var(--f-blue); --proj-fg:var(--ink); --proj-soft:#dde7fb;
  --t-m:clamp(24px,2.3vw,34px); --ease-out:cubic-bezier(0.23,1,0.32,1);
}
body.cs-chetak-rfp{--proj:var(--f-orange);--proj-fg:var(--ink);--proj-soft:#ffe6cf;--accent:#c75a00;--accent-soft:#ffe6cf}
body.cs-conversation-widgets{--proj:var(--f-yellow);--proj-fg:var(--ink);--proj-soft:#fff2c2;--accent:#8a6a00;--accent-soft:#fff2c2}
body.cs-genai-studio{--proj:var(--f-green);--proj-fg:var(--ink);--proj-soft:#d6f2e2;--accent:#0b7a40;--accent-soft:#d6f2e2}
body.cs-moc-report{--proj:var(--f-orange);--proj-fg:var(--ink);--proj-soft:#ffe6cf;--accent:#c75a00;--accent-soft:#ffe6cf}
body.cs-ui-convergence{--proj:#d2d2cf;--proj-fg:var(--ink);--proj-soft:#ebebe8;--accent:#4d4b45;--accent-soft:#ebebe8}   /* warm grey (Soft Earthy Hues, 2026-11-23: no purple) */   /* navy (Raashi picked B, 2026-11-22); coal before (red read as an error state; pink and violet rejected, 2026-11-16) */
body.cs-continuous-discovery{--proj:#e2cfc4;--proj-fg:var(--ink);--proj-soft:#f3e9e3;--accent:#8a5a44;--accent-soft:#f3e9e3}   /* clay (Soft Earthy Hues, 2026-11-23) */   /* lime (Raashi picked B, 2026-11-22); white before */
body{background:var(--paper)}
a{color:var(--ink)}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media (hover:hover) and (pointer:fine){a:hover{color:var(--accent)}}

/* the puzzles bar */
.cs-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:20px}
/* sticky on tablets and up (Raashi, 2026-11-14: "the header should be sticky, right"): flat, on the page colour */
@media (min-width:761px){.cs-bar{position:sticky;top:0;z-index:30;background:var(--paper);box-shadow:0 0 0 100vmax var(--paper);clip-path:inset(0 -100vmax)}}
.mark{display:inline-flex;align-items:center;gap:12px;font:700 18px/1 var(--font);text-decoration:none;letter-spacing:-.01em;color:var(--ink)}
.mark i{display:grid;grid-template-columns:repeat(3,6px);gap:2px;padding:4px;border-radius:7px;background:var(--plastic)}
.mark i b{width:6px;height:6px;border-radius:2px}
.links{display:flex;align-items:center;gap:8px}
.links a{padding:12px 16px;border-radius:999px;font-weight:600;font-size:16px;text-decoration:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 20px;border-radius:999px;background:var(--plastic);color:#fff!important;font:600 16px/1 var(--font);text-decoration:none}
@media (hover:hover) and (pointer:fine){.links a:not(.btn):hover{background:rgba(20,20,19,.07);color:var(--ink)}.btn:hover{background:#2c2b28}}

/* the hero: a rounded card in the project's colour, like the homepage cards */
.cs-hero{background:var(--proj);color:var(--proj-fg);padding-top:clamp(20px,2.4vw,32px);padding-bottom:44px;border-radius:28px;
  box-shadow:inset 0 0 0 1.5px rgba(20,20,19,.85);margin-top:4px}   /* a card like the homepage's (Raashi, 2026-11-23: "This still follows the old folder design"); the folder tab is gone */
.cs-hero a,.cs-hero .back{color:var(--proj-fg)}
.cs-hero .back{margin-top:8px}
.cs-label{color:var(--proj-fg)}
.cs-label b{color:var(--proj-fg)}
.cs-hero h1.cs-claim{margin-top:28px;font-weight:800}
.cs-claim{font-family:var(--pz-display);font-weight:800;letter-spacing:-.04em;line-height:.98;color:var(--proj-fg)}
.cs-context li,.cs-context b{color:var(--proj-fg)}
/* the opening lines' dots take the text colour: Marketing Studio's accent is its folder blue, so blue dots vanished and
   only their indent showed (Raashi: "What is this alignment from the left?") */
.cs-hero .cs-context li::before{background:var(--proj-fg)}
/* the facts sit on their own light card, so they keep the ink whatever the folder's colour */
.cs-facts dd{color:var(--ink)}
.cs-facts dt{color:var(--muted)}
.cs-tools .tool{background:color-mix(in srgb,var(--proj-fg) 12%,transparent);color:var(--proj-fg)}
.cs-tools-k{color:var(--proj-fg);opacity:.85}
.cs-note{color:var(--proj-fg);opacity:.85}
.cs-hero .fig{background:var(--card)}
/* the folder strip (cs-pz.js): the project's name where the homepage folders put it, and where it's from */
.pz-strip{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin:28px 0 0}
.pz-name{margin:0;font:800 var(--t-m)/1 var(--pz-display);letter-spacing:-.03em;color:var(--proj-fg)}
.pz-meta{margin:0;font-weight:600;font-size:16px;color:var(--proj-fg)}
/* each part of a section comes in once, quietly, as it scrolls into view */
.pz-rise{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .7s var(--ease-out)}
.pz-rise.pz-in{opacity:1;transform:none}

/* the sections */
.cs-body h2{font-family:var(--pz-display);font-weight:800;letter-spacing:-.035em;line-height:1.02}
.cs-body h3{font-weight:700}
.cs-lead{color:var(--ink)}
/* "My part" is a plain label everywhere, "My part:" (Raashi, 2026-11-23: the highlighter chip was "introduced fairly randomly") */
.my-part>span{background:none;color:var(--ink);font-weight:700;margin-right:.3em;padding:0}
.my-part>span::after{content:":"}
.fig{background:var(--card)}
.fig-art{background:#f2f2f0}
.fig-pins li::before{background:var(--red)}
.cs-steps li::marker{color:var(--ink)}
.go{background:var(--proj);color:var(--proj-fg)}
.next-link{background:var(--sheet)}
.cs-toc a[aria-current="true"],.cs-toc a.on{color:var(--ink)}

/* the close */
.cs-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:28px;padding-bottom:40px;color:var(--muted);font-size:15px}
@media (max-width:760px){
  .links a:not(.btn){padding:12px;font-size:15px}
  .links a[href="../#hello"]{display:none}
  .mark{font-size:0;gap:0}   /* the cube mark alone, as on the homepage */
  .cs-hero{border-radius:22px}
}

/* Text runs the full width of the column, end to end with the headings, cards and figures. Raashi (2026-11-01:
   "Why is the text in these sections not end to end?") chose this over the 43rem reading measure in cs-base.css.
   Lines also break normally now, so they run to the edge. */
.cs-body{--measure:100%}
.cs-body p,.cs-body li,.cs-body dd{text-wrap:pretty}   /* lines still run to the edge; pretty only reworks the last lines so none ends on one word (Raashi, 2026-11-24: orphans) */
.cs-body .beat-text{max-width:none}   /* the process steps too (Raashi, 2026-11-21: "why not full width"); cs-base.css caps them at 44em */

/* A caption with more than one part (a line, a list of pins, a note) gets room between the parts (Raashi,
   2026-11-10: "spacing issue"), and the pins in two columns a little more room between rows. */
.fig figcaption > :not(:first-child):not(.fig-src):not(a){margin-top:16px}   /* blocks only: a link or a source note inside a sentence stays on its line */   /* outranks cs-base's ".fig figcaption p{margin:0}" */
.fig-pins.cols{row-gap:16px}

/* A tiny green ∞ in every case study's top card (the white facts card) and in its footer: there, but not meant to be
   seen (Raashi, 2026-11-12). Hidden from screen readers. */
.cs-facts,.cs-foot{position:relative}
.cs-facts::after,.cs-foot::after{content:"∞" / "";position:absolute;right:10px;bottom:6px;font:700 3px/1 Figtree,sans-serif;color:#13a35a;pointer-events:none}

/* "My part" inside a hero: the chip took the hero's own colour and vanished, leaving a gap (Raashi, 2026-11-22: "My part and
   presenter have a weird spacing"). In the hero it reads as a label with a colon; below the hero the chip stays. */
.cs-hero .my-part>span{color:var(--proj-fg)}

/* One button style across the site: black (Raashi, 2026-11-23: "if our buttons are consistently black, do we want to introduce
   colored buttons?"). The case studies' green "Try the prototype" and the unlock button follow the puzzles' black pill. */
.btn-green,.cs-hero .btn-green{background:var(--plastic);color:#fff!important}
@media (hover:hover) and (pointer:fine){.btn-green:hover{background:#2c2b28;color:#fff}}
.btn-green:active{background:#2c2b28}
/* figure legends: each key stays on one line ("Review passed", not "Review / passed") */
.rn-key span{white-space:nowrap}

/* a visible hover (Raashi, 2026-11-24: "these buttons lack a hover state"; the old one, #141414 → #2c2b28, was too faint):
   the fill lightens and the icon slides 3px toward where it goes. Pointer devices only; no slide with reduced motion. */
.btn svg,.btn-green svg{transition:translate .2s cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){
  .btn:not(.light):hover,.btn-green:hover{background:#3d3c38}
  .btn:hover svg:last-child,.btn-green:hover svg:last-child{translate:3px 0}
}
@media (prefers-reduced-motion:reduce){.btn:hover svg,.btn-green:hover svg{translate:none}}
