/* ═══════════════════════════════════════════════════
   THE MAKER'S TIMES — case-study.css
   Loads after style.css on every case study page. Tokens, masthead,
   nav, drawer, section heads, project cards and footer all come from
   style.css; this file only adds the case study layout.

   Breakpoints match style.css:
     640px   image galleries side by side, two-column card grid
     960px   hero beside its image, sticky contents column
     1200px  three-column card grid, wide user flow

   Every case study page loads this file and uses the same hero markup,
   so the hero needs no page-level CSS:
     section.cs-hero > p.cs-crumb, div.animate-in (kicker, h1.cs-title,
     p.cs-deck, p.cs-role), figure.cs-media
   Below 960px the hero stacks and centres, the image under the text, and
   the breadcrumb is hidden. From 960px: breadcrumb above, text left,
   image right. The way back at every width is .back-btn, at the left end
   of both sticky bars.

   Images: every .cs-media starts with a .cs-ph placeholder. Swap it for
   an <img> with width, height and alt; the frame keeps its ratio either
   way, so nothing shifts when images arrive.

   Spacing between sections: every section ends 48px above the next
   heading (.cs-sec padding), and that padding is the only gap. Whatever
   ends a section (a paragraph, image, gallery or decision block) adds no
   bottom space of its own; anything new that can end a section needs the
   same :last-child reset. The last section has no padding, so the story
   ends 80px above More Stories.
   ═══════════════════════════════════════════════════ */

/* Masthead title links home without looking like a link: no hover underline,
   but a clear ring for keyboard users */
.mast-name a{color:inherit;text-decoration:none;}
.mast-name a:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:2px;}

/* Back button, a round icon like the theme toggle, so the way back stays in
   the sticky bar while the page scrolls. It sits as far from the left edge
   as the menu button and toggle sit from the right. */
.back-btn{
  width:30px;height:30px;border:1px solid var(--v20);border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  color:var(--v55);text-decoration:none;position:relative;transition:all var(--t);
}
.back-btn:hover{border-color:var(--gold);color:var(--gold);}
.back-btn::before{content:'';position:absolute;inset:-8px;}
.mast-top{justify-content:space-between;align-items:center;}
.nav-bar .back-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  left:max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
}

/* Compact masthead, about half its home page height, so the case study
   starts sooner. Same parts, smaller type and padding. */
.mast-title{padding:var(--sp-sm) var(--pad) 6px;}
.mast-title .mast-name{font-size:clamp(1.5rem,4vw,2rem);margin-bottom:2px;}
.mast-desktop{padding-top:var(--sp-sm);padding-bottom:6px;}
.mast-desktop .mast-name{font-size:clamp(1.75rem,2.6vw,2.25rem);margin-bottom:2px;}
/* The ears stay small here: the title is the only large thing in this masthead */
.mast-quote-box{min-height:0;padding:6px 10px;border-width:1px;}
.mast-quote-text{font-size:var(--sz-xs);line-height:1.3;}
.mast-edition-info{gap:2px;}
.mast-ed-label{font-size:var(--sz-xs);font-weight:700;letter-spacing:0.1em;}
.mast-ed-blurb{font-size:var(--sz-xs);line-height:1.3;margin-bottom:0;}

/* ═══ HERO ═══ */
.cs-hero{
  display:grid;gap:var(--sp-2xl);
  padding-top:var(--sp-2xl);padding-bottom:var(--sp-xl);
  border-bottom:2px solid var(--gold);
}
.cs-crumb{
  font-family:var(--font-ui);font-size:var(--sz-xs);
  text-transform:uppercase;letter-spacing:0.12em;color:var(--v45);
  margin-bottom:calc(var(--sp-xl) - var(--sp-2xl));
}
.cs-hero .kicker{margin-bottom:var(--sp-sm);color:var(--v70);}
.cs-crumb a{color:var(--terra);}
.cs-crumb a:hover{color:var(--v100);}
.cs-title{
  font-family:var(--font-hd);font-weight:900;
  font-size:clamp(2.4rem,5.5vw,4rem);line-height:1;
  letter-spacing:0.02em;text-transform:uppercase;color:var(--terra);
  text-wrap:balance;
}
.cs-deck{
  font-family:var(--font-bd);font-style:italic;
  font-size:var(--sz-lg);line-height:1.5;color:var(--v100);
  margin-top:var(--sp-2xl);max-width:var(--deck-max,40ch);
}
/* Role line: title, then company and length. The deck sits midway between
   the title and this line, so its margins above and below match. */
.cs-role{
  display:flex;flex-direction:column;gap:6px;
  margin-top:var(--sp-2xl);
}
.cs-role-title{
  font-family:var(--font-hd);font-size:var(--sz-lg);font-weight:700;
  line-height:1.2;color:var(--v100);
}
.cs-role-meta{
  font-family:var(--font-ui);font-size:var(--sz-xs);
  text-transform:uppercase;letter-spacing:0.12em;color:var(--v45);
}
.cs-role-meta .cs-sep{margin-inline:0.5em;color:var(--v35);}

/* ═══ IMAGE SLOTS ═══ */
.cs-media,.cs-phones{margin:0;}
.cs-media > img,.cs-media > video,.cs-mood-frame > img,.cs-ph{
  width:100%;aspect-ratio:var(--ratio,16/10);
  border:1px solid var(--v20);border-radius:3px;
}
.cs-media > img,.cs-media > video,.cs-mood-frame > img{height:auto;object-fit:cover;background:var(--v05);}
/* The hero's baked shadow is too faint to read on the dark page, so Night
   Edition adds a deeper one under the laptop */
[data-theme="dark"] .cs-hero .cs-media--bare > img{filter:drop-shadow(16px 28px 28px rgba(0,0,0,0.9));}
/* Night Edition: product screens are light UIs, so they glare on the dark page; dim them a little */
[data-theme="dark"] .cs-prose img,[data-theme="dark"] .cs-prose video{filter:brightness(.9);}
/* Images drawn twice, one per theme (e.g. black phones in Day Edition, light phones in Night Edition) */
.cs-theme-dark{display:none;}
/* Day Edition: a silver laptop on cream paper looked flat, so a softer shadow lifts it off the page */
[data-theme="light"] .cs-hero .cs-media--bare > img{filter:drop-shadow(14px 24px 26px rgba(13,17,23,0.32));}
.cs-ph{
  display:flex;align-items:center;justify-content:center;
  background:var(--v05);border-style:dashed;border-color:var(--v35);
  font-family:var(--font-ui);font-size:var(--sz-2xs);font-weight:600;
  text-transform:uppercase;letter-spacing:0.12em;color:var(--v45);
}
/* Moodboard with moving tiles: clips sit over their tiles on the still, placed by % (--x --y --w --h).
   With reduced motion they're hidden and the still shows alone. */
/* Positioning context for the moodboard clips placed over their tiles */
.cs-mood-frame{display:block;position:relative;}
.cs-mood-frame > img{display:block;}
.cs-mood-frame > video{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);object-fit:cover;}
@media(prefers-reduced-motion:reduce){.cs-mood-frame > video{display:none;}}
.cs-media--hero{outline:3px solid var(--gold);outline-offset:6px;margin:6px;}
/* Cut-out images (transparent background) sit straight on the page */
.cs-media--bare > img{border:0;border-radius:0;background:none;object-fit:contain;}
.cs-media--screen{--ratio:9/19.5;max-width:220px;margin-inline:auto;width:100%;}
/* Small portrait photos (under ~700px wide) stay near their own size, centred, so they don't blur */
.cs-media--narrow{max-width:360px;margin-inline:auto;}
.cs-media--narrow > img{border:3px solid var(--v35);}
/* A single framed device screen at full column width filled the whole viewport, so it is capped and centred */
.cs-media--device{max-width:640px;margin-inline:auto;}
/* Diagrams get the same treatment, a little wider so their labels stay legible */
.cs-media--diagram{max-width:720px;margin-inline:auto;}
.cs-caption{
  display:flex;align-items:center;gap:var(--sp-sm);
  margin-top:var(--sp-md);
  font-family:var(--font-bd);font-size:var(--sz-sm);font-style:italic;
  line-height:1.4;color:var(--v45);text-align:center;
}
.cs-caption::before,.cs-caption::after{content:'';flex:1;min-width:var(--sp-md);height:1px;background:var(--v15);}
/* Longer captions that explain a finding: left-aligned, no side rules */
.cs-caption--note{display:block;text-align:left;}
.cs-caption--note::before,.cs-caption--note::after{content:none;}
/* Source line under a pair of images, centred so it reads as a note on them, not a new paragraph */
.cs-prose .cs-media-note{font-family:var(--font-ui);font-size:var(--sz-xs);color:var(--v45);text-align:center;}
/* Image credits close the article, set apart from the last section */
.cs-prose .cs-credit{margin-top:var(--sp-2xl);text-align:left;}

/* ═══ STORY: contents column + article ═══ */
.cs-story{
  display:grid;gap:var(--sp-xl);
  padding-top:var(--sp-2xl);padding-bottom:var(--sp-xl);
}
.cs-toc{display:none;}
/* Lets wide content (the competitive table) scroll inside the column instead of widening the page */
.cs-story > article{min-width:0;}
.cs-box-title{
  font-family:var(--font-ui);font-size:var(--sz-2xs);font-weight:700;
  text-transform:uppercase;letter-spacing:0.12em;color:var(--v45);
  padding-bottom:var(--sp-sm);margin-bottom:var(--sp-sm);
  border-bottom:1px solid var(--v15);
}
.cs-toc ol{list-style:none;}
/* Project links, when a page has them, get the same gap above as the list has from its title */
.cs-toc ol + .cs-box-title{margin-top:var(--sp-xl);}
.cs-toc a{
  display:block;text-decoration:none;padding:7px 0 7px 10px;
  border-left:1px solid var(--v15);
  font-family:var(--font-ui);font-size:var(--sz-xs);font-weight:500;
  text-transform:uppercase;letter-spacing:0.08em;color:var(--v55);
  transition:color var(--t),border-color var(--t);
}
.cs-toc a:hover{color:var(--v100);}
.cs-toc a.active{color:var(--v100);font-weight:600;border-left-color:var(--gold);}

.cs-sec{padding-bottom:var(--sp-2xl);}
/* The story column's own bottom padding and More Stories' top padding already part the last section from the cards */
article > .cs-sec:last-child{padding-bottom:0;}
/* No rule above section heads: the headings and spacing divide the story,
   and the hero's gold rule sits above the first one */
.cs-sec .sec-head{border-top:0;padding-top:0;}
.cs-sec .sec-label em{font-style:normal;}

/* Body copy, set like the About story; spans the whole column */
.cs-prose p,.cs-prose li{
  font-family:var(--font-bd);font-size:var(--sz-base);
  line-height:1.55;color:var(--v70);
  text-align:justify;hyphens:auto;
}
.cs-prose > * + *{margin-top:0.75em;}
/* Images get more room than paragraphs */
.cs-prose > .cs-media,.cs-prose > .cs-gallery,.cs-prose > .cs-phones,
.cs-source > .cs-media,.cs-source > .cs-gallery{margin-block:var(--sp-lg);}
.cs-prose strong{color:var(--v85);}
.cs-prose p a,.cs-prose li a{color:var(--terra);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}
.cs-prose p a:hover,.cs-prose li a:hover{color:var(--v100);}
.cs-prose > .cs-subhead{
  font-family:var(--font-hd);font-size:var(--sz-lg);font-weight:700;
  line-height:1.2;color:var(--v100);
  margin-top:var(--sp-xl);
}

/* The original user story, set as a pull quote */
.cs-quote{
  border-left:2px solid var(--gold);
  padding:var(--sp-xs) 0 var(--sp-xs) var(--sp-md);
}
.cs-quote p{font-style:italic;color:var(--v85);}

/* Tools, closing the My Role section */
.cs-prose > .cs-tools-row{margin-top:var(--sp-lg);}
.cs-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:var(--sp-xs);}

/* Research sources: label, image, finding */
.cs-prose > .cs-source{margin-top:var(--sp-xl);}
.cs-source > p{margin-top:0.75em;}
.cs-prose > .cs-source > .cs-media,.cs-prose > .cs-source > .cs-gallery{margin-block:var(--sp-sm) var(--sp-md);}
.cs-decision > .cs-media:last-child{margin-bottom:0;}
/* A section ending on an image: the section's own padding is the gap, so the image adds none */
.cs-prose > .cs-media:last-child,.cs-prose > .cs-gallery:last-child{margin-bottom:0;}

/* Image galleries: stacked on phones, side by side from 640px */
.cs-gallery{display:grid;gap:var(--sp-lg);}
/* One column per phone, up to 220px each, shrinking together on narrow screens */
.cs-gallery--phones{grid-auto-flow:column;grid-auto-columns:minmax(0,220px);justify-content:center;}
/* Phones that would leave empty space either side get a frame, drawn like the survey charts */
.cs-gallery--framed{padding:var(--sp-lg);border:2px solid var(--v20);border-radius:3px;}
/* On the dark page the 20% rule nearly vanished, so Night Edition draws it stronger over a faint panel */
[data-theme="dark"] .cs-gallery--framed{border-color:var(--v35);background:rgba(217,206,178,0.05);}

/* Key decisions: spacing alone separates one from the next */
.cs-decision{padding:var(--sp-lg) 0;}
.sec-head + .cs-decision{padding-top:0;}
/* The last decision ends the section, so the section's 48px is the only gap */
.cs-decision:last-child{padding-bottom:0;}
.cs-decision h3{
  font-family:var(--font-hd);font-size:var(--sz-lg);font-weight:700;
  line-height:1.2;color:var(--v100);margin-top:0;
}
.cs-decision .cs-list{margin-top:var(--sp-sm);}
.cs-list{list-style:none;}
.cs-list li{position:relative;padding-left:var(--sp-md);}
.cs-list li + li{margin-top:0.75em;}
.cs-list li::before{content:'✦';position:absolute;left:0;top:0.2em;font-size:8px;color:var(--gold);}

/* ═══ COMPETITIVE TABLE ═══
   Framed like the survey charts. Below about 640px of column it scrolls
   sideways inside the frame, with the brand column pinned. */
.cs-source > .cs-table-wrap{margin-block:var(--sp-sm) var(--sp-md);}
.cs-table-wrap{position:relative;overflow-x:auto;border:2px solid var(--v20);border-radius:3px;}
.cs-table{
  width:100%;min-width:600px;border-collapse:collapse;
  font-family:var(--font-ui);font-size:var(--sz-xs);line-height:1.3;color:var(--v85);
}
.cs-table th,.cs-table td{padding:10px 6px;text-align:center;vertical-align:middle;border-bottom:1px solid var(--v15);}
.cs-table tbody tr:last-child > *{border-bottom:0;}
/* Vertical rules between columns; the outer edges are the frame */
.cs-table th + th,.cs-table th + td,.cs-table td + td{border-left:1px solid var(--v15);}
.cs-table thead th{
  font-size:var(--sz-2xs);font-weight:600;text-transform:uppercase;letter-spacing:0.08em;
  color:var(--v70);vertical-align:bottom;border-bottom:2px solid var(--v20);
}
.cs-table tbody th{
  text-align:left;font-weight:600;color:var(--v100);white-space:nowrap;
  padding-left:var(--sp-md);
}
/* Brand column stays put while the rest scrolls */
.cs-table th:first-child{
  position:sticky;left:0;z-index:1;background:var(--ink);
  /* The divider is drawn on the pinned cell itself, so it travels with it instead of scrolling away,
     and the extra right padding keeps the text clear of the line */
  box-shadow:inset -1px 0 0 var(--v15);padding-right:var(--sp-sm);
}
.cs-table th:first-child + td,.cs-table th:first-child + th{border-left:0;}
/* Tables whose first column is a heading, not a row label (e.g. Writers and Readers), scroll as a whole */
.cs-table--plain th:first-child{position:static;background:none;box-shadow:none;padding-right:6px;}
.cs-table--plain th:first-child + th{border-left:1px solid var(--v15);}
.cs-yes{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--gold);vertical-align:middle;}
.cs-prose .cs-table-hint{display:none;font-family:var(--font-ui);font-size:var(--sz-xs);color:var(--v45);text-align:left;}
@media(max-width:767.98px){.cs-prose .cs-table-hint{display:block;}}

/* ═══ USER FLOW ═══
   Two drawings of the same flow: wide from 1200px (where the column is
   about 840px or more, so labels stay 11px and up), stacked below. */
.cs-flow{display:block;width:100%;height:auto;font-family:var(--font-ui);}
.cs-flow--wide{display:none;}
.cs-flow--tall{max-width:420px;margin-inline:auto;}
/* A single column of steps: narrower, so its 12px labels stay near 12px */
.cs-flow--tall.cs-flow--narrow{max-width:260px;}
.cs-flow .n rect,.cs-flow .n path{fill:var(--ink);stroke:var(--v100);stroke-width:1.5;}
.cs-flow .n text{fill:var(--v100);font-weight:500;text-anchor:middle;}
.cs-flow .e{fill:none;stroke:var(--v100);stroke-width:1.5;stroke-linejoin:round;}
.cs-flow .ah{fill:none;stroke:var(--v100);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
/* Branch labels, haloed in the page colour where they sit on a line */
.cs-flow .l{fill:var(--v100);font-weight:600;letter-spacing:.04em;stroke:var(--ink);stroke-width:5px;stroke-linejoin:round;}
@media(min-width:1200px){
  .cs-flow--wide{display:block;}
  .cs-flow--tall{display:none;}
}

/* ═══ JOURNEY ═══
   Numbered steps with an icon each: a list on phones, one row from 960px.
   The icons are light tiles in both themes, framed like the screenshots. */
.cs-prose > .cs-journey-fig{margin-block:var(--sp-lg);}
.cs-prose > .cs-journey-fig:last-child{margin-bottom:0;}
.cs-journey{list-style:none;display:grid;gap:var(--sp-sm);counter-reset:step;}
.cs-journey li{
  counter-increment:step;display:grid;grid-template-columns:72px minmax(0,1fr);
  align-items:center;gap:var(--sp-md);
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.35;color:var(--v70);
}
.cs-journey img{
  display:block;width:100%;height:auto;aspect-ratio:200/160;
  border:1px solid var(--v20);border-radius:3px;
}
.cs-journey span::before{content:counter(step) '. ';font-weight:600;color:var(--gold);}

/* Small screens of different heights side by side: aligned at the top, and capped
   like a single device screen so they are not scaled past their own size */
.cs-gallery--top{align-items:start;max-width:640px;margin-inline:auto;}

/* Book spreads: desktop and mobile share one height from 640px (columns in
   proportion to each frame's width), stacked below with the phone capped */
.cs-book{align-items:start;}
.cs-book > .cs-media:last-child{max-width:240px;width:100%;margin-inline:auto;}

/* ═══ SURVEY CHARTS ═══
   Counts scale to all 36 respondents. Ordinal steps (1st, 2nd, 3rd) are one
   hue, checked for step gaps and contrast on each theme's paper; each step's
   label colour clears 4.5:1 on it. */
.cs-survey{
  --n:36;
  --c1:#F5EAD0;--c2:var(--gold);--c3:#5E4B2D;
  --t1:#121417;--t2:#121417;--t3:#F5F1E8;
  --c-mute:#4A4C52;
  display:grid;gap:var(--sp-lg);
  margin-block:var(--sp-sm) var(--sp-md);
}
[data-theme="light"] .cs-survey{
  --c1:#1A3A62;--c3:#7493B8;
  --t1:#F5F1E8;--t2:#F5F1E8;--t3:#121417;
  --c-mute:#9A9A92;
}
/* Each chart sits in its own frame */
.cs-chart{
  margin:0;display:grid;gap:var(--sp-sm);
  padding:var(--sp-lg);border:2px solid var(--v20);border-radius:3px;
}
.cs-chart-q{
  font-family:var(--font-bd);font-size:var(--sz-base);font-weight:600;
  line-height:1.4;color:var(--v100);text-align:left;
}
.cs-stats{display:grid;gap:var(--sp-lg);}
.cs-survey .cs-stat-val{
  font-family:var(--font-ui);font-size:2.5rem;font-weight:600;line-height:1;color:var(--v100);
}
.cs-survey .cs-stat-val span{font-size:var(--sz-base);font-weight:500;color:var(--v45);}
.cs-survey .cs-stat-label{
  font-family:var(--font-ui);font-size:var(--sz-sm);color:var(--v70);
  text-align:left;margin-top:calc(var(--sp-xs) * -1);
}
.cs-meter{display:block;height:6px;border-radius:3px;background:var(--v15);}
.cs-meter span{display:block;height:100%;width:calc(var(--v) / var(--n) * 100%);border-radius:3px;background:var(--gold);}

.cs-bar-row{display:grid;gap:4px;}
.cs-bar-label{font-family:var(--font-ui);font-size:var(--sz-sm);color:var(--v85);}
.cs-bar{display:flex;align-items:center;gap:8px;}
.cs-bar-fill{
  flex:0 0 calc(var(--v) / var(--n) * (100% - 2.5rem));
  height:12px;border-radius:0 4px 4px 0;background:var(--c-mute);
}
.cs-bar-fill--acc{background:var(--gold);}
.cs-bar-val{font-family:var(--font-ui);font-size:var(--sz-sm);font-weight:600;color:var(--v100);font-variant-numeric:tabular-nums;}

.cs-stack{display:flex;gap:2px;}
.cs-seg{
  flex:var(--v) 1 0;min-width:0;
  height:24px;display:flex;align-items:center;padding-left:8px;
  font-family:var(--font-ui);font-size:var(--sz-xs);font-weight:600;font-variant-numeric:tabular-nums;
}
.cs-seg:first-child{border-radius:4px 0 0 4px;}
.cs-seg:last-child{border-radius:0 4px 4px 0;}
.cs-seg--1{background:var(--c1);color:var(--t1);}
.cs-seg--2{background:var(--c2);color:var(--t2);}
.cs-seg--3{background:var(--c3);color:var(--t3);}

.cs-legend{display:flex;flex-wrap:wrap;gap:var(--sp-xs) var(--sp-md);list-style:none;}
.cs-survey .cs-legend li{
  display:flex;align-items:center;gap:6px;background:none;
  font-family:var(--font-ui);font-size:var(--sz-xs);color:var(--v70);
}
.cs-legend li::before{content:'';width:12px;height:12px;border-radius:2px;background:var(--c);}
.cs-legend .cs-seg--1{--c:var(--c1);}
.cs-legend .cs-seg--2{--c:var(--c2);}
.cs-legend .cs-seg--3{--c:var(--c3);}
.cs-survey .cs-chart-src{font-family:var(--font-ui);font-size:var(--sz-xs);color:var(--v45);text-align:left;}

/* ═══ INTENT LEVELS ═══
   Three steps in a framed figure (Tiffany: Recently Viewed, Compare, Save). The meter
   fills one, two, three segments with how much each asks of the customer. A set-aside
   step is dashed with a grey meter. Stacked on phones, three columns from 640px. */
.cs-prose > .cs-intent{margin-block:var(--sp-lg);}
.cs-intent-list{list-style:none;display:grid;gap:var(--sp-sm);}
.cs-prose .cs-intent-step{
  display:grid;align-content:start;gap:6px;
  padding:var(--sp-md);border:1px solid var(--v20);border-radius:3px;
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.4;color:var(--v70);text-align:left;
}
.cs-prose .cs-intent-step--off{border-style:dashed;}
.cs-intent-meter{display:flex;gap:3px;margin-bottom:var(--sp-xs);}
.cs-intent-meter i{display:block;width:28px;height:6px;border-radius:3px;background:var(--v15);}
.cs-intent-step--1 .cs-intent-meter i:nth-child(-n+1),
.cs-intent-step--2 .cs-intent-meter i:nth-child(-n+2),
.cs-intent-step--3 .cs-intent-meter i{background:var(--gold);}
.cs-intent-step--off .cs-intent-meter i:nth-child(1){background:var(--v35);}
.cs-intent-name{font-size:var(--sz-base);font-weight:600;color:var(--v100);}
.cs-intent-ask{font-weight:600;color:var(--v85);}
.cs-intent-status{margin-top:var(--sp-xs);font-size:var(--sz-xs);font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--v45);}
@media(min-width:640px){.cs-intent-list{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* ═══ COST SCALE ═══
   Two bars on one $0 to $500K scale (InsightCuts feasibility). --from and --to are
   percentages of the track; the open-ended bar squares its right edge to read as "over". */
.cs-prose > .cs-cost{margin-block:var(--sp-lg);}
.cs-cost-row{display:grid;gap:6px;}
.cs-cost-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px var(--sp-md);}
.cs-cost-track{display:block;height:14px;border-radius:7px;background:var(--v15);overflow:hidden;}
.cs-cost-fill{display:block;height:100%;width:calc(var(--to) * 1%);border-radius:7px;background:var(--v45);}
.cs-cost-fill--acc{background:var(--gold);}
.cs-cost-fill--open{border-radius:7px 0 0 7px;}
.cs-cost-val{font-family:var(--font-ui);font-size:var(--sz-sm);font-weight:600;color:var(--v100);}
.cs-cost .cs-chart-src{font-family:var(--font-ui);font-size:var(--sz-xs);color:var(--v45);text-align:left;}

/* ═══ INFORMATION ARCHITECTURE ═══
   Rows of planned tab, arrow, final home (Lendi). Stacked on phones with a small
   Planned / Final label on each card; three columns from 640px with a header row. */
.cs-prose > .cs-ia{margin-block:var(--sp-lg);}
.cs-ia-list{list-style:none;display:grid;gap:var(--sp-md);}
.cs-ia-head{display:none;}
.cs-prose .cs-ia-row{
  display:grid;gap:var(--sp-xs);justify-items:stretch;
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.4;color:var(--v70);text-align:left;
}
.cs-ia-from,.cs-ia-to{
  display:grid;gap:2px;align-content:center;
  padding:var(--sp-sm) var(--sp-md);border:1px solid var(--v20);border-radius:3px;
}
.cs-ia-from::before,.cs-ia-to::before{
  content:attr(data-label);font-size:var(--sz-2xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--v45);
}
.cs-ia-from b,.cs-ia-to b{font-size:var(--sz-base);font-weight:600;color:var(--v100);}
.cs-ia-to b i{
  font-style:normal;font-size:var(--sz-2xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold);border:1px solid var(--gold);border-radius:2px;padding:1px 5px;margin-left:var(--sp-xs);vertical-align:middle;
}
.cs-ia-from{border-style:dashed;}
.cs-ia-arrow{display:block;text-align:center;color:var(--v45);line-height:1;}
.cs-ia-arrow::before{content:"\2193";font-size:1.25rem;}
.cs-ia-row--move .cs-ia-to{border-color:var(--gold);border-width:2px;}
.cs-ia-row--move .cs-ia-arrow{color:var(--gold);}
.cs-ia-row--move .cs-ia-arrow::before{font-weight:700;}
.cs-ia-row--new .cs-ia-from,.cs-ia-row--new .cs-ia-arrow{display:none;}
@media(min-width:640px){
  .cs-ia-head,.cs-prose .cs-ia-row{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1.5fr);align-items:stretch;gap:0;}
  .cs-ia-head{
    padding-bottom:var(--sp-xs);margin-bottom:var(--sp-xs);
    font-family:var(--font-ui);font-size:var(--sz-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--v45);
  }
  .cs-ia-from::before,.cs-ia-to::before{display:none;}
  .cs-ia-arrow{align-self:center;}
  .cs-ia-arrow::before{content:"\2192";}
  .cs-ia-row--new .cs-ia-from,.cs-ia-row--new .cs-ia-arrow{display:block;visibility:hidden;}
}

/* ═══ THREE VIEWS ═══
   Clueline: the three modes behind the top-bar switch, each tied to its design question,
   with what every view shares underneath. Stacked on phones, three columns from 720px. */
.cs-prose > .cs-modes{margin-block:var(--sp-lg);}
.cs-modes-list{list-style:none;display:grid;gap:var(--sp-sm);}
.cs-prose .cs-modes-card{
  display:grid;gap:6px;align-content:start;
  padding:var(--sp-md);border:1px solid var(--v20);border-radius:3px;
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.4;color:var(--v70);text-align:left;
}
.cs-modes-q{font-size:var(--sz-2xs);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);}
.cs-modes-name{font-size:var(--sz-lg);font-weight:600;line-height:1.2;color:var(--v100);}
.cs-modes-shared{
  list-style:none;display:flex;flex-wrap:wrap;gap:var(--sp-xs) var(--sp-lg);
  padding-top:var(--sp-sm);border-top:1px solid var(--v15);
}
.cs-prose .cs-modes-shared li{
  position:relative;padding-left:var(--sp-md);
  font-family:var(--font-ui);font-size:var(--sz-xs);line-height:1.4;color:var(--v70);text-align:left;
}
.cs-modes-shared li::before{content:"✦";position:absolute;left:0;top:0.15em;font-size:8px;color:var(--gold);}
@media(min-width:720px){.cs-modes-list{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* ═══ RESULTS ═══
   Headline numbers (Worlds of Hello Outcome): one frame, three figures, each with its label and
   where it came from. Stacked on phones, three columns from 720px. */
.cs-prose > .cs-results{margin-block:var(--sp-lg);}
.cs-results{gap:var(--sp-xl);}
.cs-results-list{list-style:none;display:grid;gap:var(--sp-lg);}
.cs-prose .cs-results-list li{
  display:grid;gap:6px;align-content:start;
  font-family:var(--font-ui);text-align:left;color:var(--v70);
}
.cs-results-val{font-size:2.5rem;font-weight:600;line-height:1;color:var(--v100);}
.cs-results-label{font-size:var(--sz-sm);line-height:1.4;color:var(--v85);}
.cs-results-src{font-size:var(--sz-xs);line-height:1.4;color:var(--v45);}
@media(min-width:720px){
  .cs-results-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;}
  .cs-prose .cs-results-list li{padding-inline:var(--sp-lg);border-left:1px solid var(--v15);}
  .cs-prose .cs-results-list li:first-child{padding-left:0;border-left:0;}
  .cs-prose .cs-results-list li:last-child{padding-right:0;}
}

/* ═══ STEP SEQUENCES ═══
   Rows of boxed steps joined by arrows (Worlds of Hello). A column on phones with down arrows;
   a row from 720px with right arrows. --seq-n steps share the row. */
.cs-prose > .cs-seq{margin-block:var(--sp-lg);}
.cs-seq-start{
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.4;color:var(--v70);text-align:left;
}
.cs-seq-row{display:grid;gap:var(--sp-sm);}
.cs-seq-label{
  font-family:var(--font-ui);font-size:var(--sz-xs);font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold);text-align:left;
}
.cs-seq-steps{list-style:none;display:grid;gap:var(--sp-lg);}
.cs-prose .cs-seq-steps li{
  position:relative;display:flex;align-items:center;justify-content:center;
  padding:var(--sp-md);border:1px solid var(--v20);border-radius:3px;
  font-family:var(--font-ui);font-size:var(--sz-sm);line-height:1.4;color:var(--v85);text-align:center;
}
.cs-seq-steps li:not(:last-child)::after{
  content:"\2193";position:absolute;left:50%;bottom:calc(var(--sp-lg) * -1 + 1px);
  height:var(--sp-lg);display:flex;align-items:center;transform:translateX(-50%);color:var(--v45);line-height:1;
}
.cs-seq-row--final .cs-seq-steps li{border-color:var(--gold);}
@media(min-width:720px){
  .cs-seq-steps{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--sp-xl);}
  .cs-seq-steps li:not(:last-child)::after{
    content:"\2192";left:auto;bottom:auto;top:50%;right:calc(var(--sp-xl) * -1);
    width:var(--sp-xl);height:auto;justify-content:center;transform:translateY(-50%);
  }
}
.cs-seq{gap:var(--sp-lg);}

/* Read by screen readers only */
.cs-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}

/* ═══ MORE STORIES ═══ */
/* Keeps style.css's heavy black section rule */
.cs-more{padding-top:var(--sp-2xl);padding-bottom:var(--sp-2xl);}
.cs-more .sec-meta a{color:var(--gold);}
.cs-more .sec-meta a:hover{color:var(--v100);}
/* More Stories cards are a short index: image, organization, title, the first sentence and the link */
.cs-more .pa-more,.cs-more .pa-techs,.cs-more .pa-badges{display:none;}
.cs-more .pa-desc{font-size:var(--sz-sm);margin-bottom:var(--sp-sm);}
.cs-more .pa-tag:not(:first-child){display:none;}
.cs-more .pa-footer{border-top:0;padding-top:0;}
@media(min-width:960px){.cs-more .archive-grid{grid-template-columns:repeat(3,1fr);}}

/* ═══ RESPONSIVE ═══ */
@media(min-width:640px){
  .cs-gallery--2{grid-template-columns:repeat(2,minmax(0,1fr));}
  /* Three screens: two across and the third centred below, so each stays large enough to read */
  .cs-gallery--3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cs-gallery--3 > :last-child:nth-child(odd){grid-column:1 / -1;justify-self:center;width:calc(50% - var(--sp-lg) / 2);}
  .cs-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cs-book{grid-template-columns:minmax(0,1454fr) minmax(0,461fr);}
  .cs-book > .cs-media:last-child{max-width:none;}
}

@media(min-width:960px){
  .cs-hero{
    grid-template-columns:var(--hero-cols,minmax(0,1fr) minmax(0,1.1fr));
    align-items:center;gap:0 var(--sp-3xl);
    padding-top:var(--sp-xl);padding-bottom:var(--sp-2xl);
  }
  .cs-crumb{grid-column:1 / -1;margin-bottom:0;}
  /* Text sits near the top rather than centred on the image */
  .cs-hero > .animate-in:not(figure){align-self:start;margin-top:var(--sp-2xl);}
  .cs-deck,.cs-role{margin-top:60px;}
  .cs-story{grid-template-columns:200px minmax(0,1fr);gap:var(--sp-3xl);}
  .cs-toc{
    display:block;position:sticky;align-self:start;
    top:calc(var(--sticky-h) + var(--sp-lg));
  }
  .cs-journey{grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--sp-sm);}
  .cs-journey li{grid-template-columns:none;align-content:start;align-items:start;gap:var(--sp-sm);font-size:var(--sz-xs);text-align:center;}
}

/* Below desktop the hero stacks, so its text centres over the image. The breadcrumb
   is hidden there: it repeats the nav and sat alone at the left of a centred column. */
@media(max-width:959.98px){
  .cs-crumb{display:none;}
  .cs-hero > .animate-in:not(figure){text-align:center;}
  .cs-hero .cs-deck{margin-inline:auto;}
  .cs-hero .cs-role{align-items:center;}
}

/* Phones: justified copy leaves wide gaps */
@media(max-width:639.98px){
  .cs-prose p,.cs-prose li{text-align:left;hyphens:manual;}
  /* Phone screens two across rather than four tiny ones */
  .cs-gallery--phones{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,180px));}
  /* An odd last phone centres under the pair above */
  .cs-gallery--phones > :last-child:nth-child(odd){grid-column:1 / -1;width:calc(50% - var(--sp-lg) / 2);}
  .sec-head{flex-wrap:wrap;gap:var(--sp-xs) var(--sp-md);}
  .cs-chart,.cs-gallery--framed{padding:var(--sp-md);}
}

/* Animated screens: an animated WebP with a still copy for reduced motion */
.cs-media > .cs-still{display:none;}
@media (prefers-reduced-motion: reduce){.cs-media > .cs-anim{display:none;}.cs-media > .cs-still{display:block;}}

/* Color swatches: a chip, the color name and its job */
.cs-prose > .cs-swatches{margin-block:var(--sp-lg);}
.cs-swatches{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:var(--sp-md);}
.cs-prose .cs-swatches li{text-align:left;hyphens:manual;}
.cs-swatches li{display:grid;grid-template-columns:40px 1fr;column-gap:var(--sp-sm);align-items:center;font-family:var(--font-ui);font-size:var(--sz-xs);line-height:1.35;color:var(--v70);}
.cs-swatches span{grid-row:span 2;width:40px;height:40px;border-radius:50%;background:var(--c);border:1px solid var(--v20);}
.cs-swatches b{font-size:var(--sz-sm);font-weight:600;color:var(--v100);}
/* Text-heavy tables read better left-aligned */
.cs-table--left th,.cs-table--left td{text-align:left;}
