/* Case study pages (/resources/case-studies/*). Lifted verbatim from the first story's
   <style> block when the second and third stories landed (Dec 2026). Tokens only.
   Story-specific additions sit at the end, under their own headers. */
/* Case study page. Everything below is scoped to .cs so it can lift into a
   shared case-study.css once there is a second story. Tokens only. */
.cs{--cs-col:712px;--cs-rail:340px;--cs-gap:72px}
/* White page: the office render has a white ground. */
#page-wrap.cs{background:var(--card)}
/* Same container as the site's .section: 1320px, 32px gutters (20px on phones). */
.cs-wrap{max-width:1320px;margin:0 auto;padding:0 32px}

/* ── Hero: breadcrumb + H1 share the card column; the facts rail starts at the top ── */
/* Same breadcrumb as the partner pages (partner-page.css isn't loaded here). */
.cs .breadcrumb{display:block;margin-bottom:24px;font-size:var(--t-kicker);letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cs .breadcrumb a{color:var(--muted);text-decoration:none;transition:color .2s}
.cs .breadcrumb a:hover{color:var(--ink)}
.cs .breadcrumb b{color:var(--ink);font-weight:700}
/* One small step under --t-h1 (~7%): keeps the title to 3 lines in the card column and
   still clearly above the card's --t-h2 lead. */
.cs h1{font-size:calc(var(--t-h1) * .93);font-weight:600;line-height:1.04;letter-spacing:-.042em;color:var(--ink);text-wrap:balance;margin:0}

.cs-proof{display:grid}
.cs-proof-stats{list-style:none;margin:0;padding:0;display:grid}
.cs-proof-stat{min-width:0}
.cs-proof-stat b{line-height:1;letter-spacing:-.05em;white-space:nowrap}
.cs-proof-stat span{line-height:1.45;text-wrap:pretty}
.cs-proof-stat em{display:block;font-style:normal;margin-top:4px}
.cs-proof-takeaway blockquote{padding:0;border:0;margin:0}
.cs-proof-lead{display:block;text-wrap:balance}
.cs-proof-lead .cs-nw{white-space:nowrap}
.cs-proof-rest{display:block;letter-spacing:-.015em;text-wrap:pretty}
@media(max-width:680px){
 .cs-proof-rest{margin-left:auto;margin-right:auto}
 .cs-proof-stat em{margin-top:2px}
}
/* Graphic scorecard: three confirmed outcomes, then pending scope counts.
   Internal rules and dark emphasis intentionally follow the supplied reference. */
.cs-proof{position:relative;isolation:isolate;overflow:hidden;grid-template-columns:40% 1fr;gap:0;align-items:stretch;border-radius:var(--r-lg);background:radial-gradient(ellipse at 88% 94%,color-mix(in srgb,var(--accent) 42%,var(--ink)),transparent 50%),linear-gradient(110deg,var(--ink),color-mix(in srgb,var(--ink) 80%,var(--ink-2)));border:1px solid color-mix(in srgb,var(--accent) 24%,var(--ink))}
/* Scale counts sit under the takeaway: two plain columns, no rules. */
.cs-proof .cs-proof-stats{grid-template-columns:repeat(2,max-content);gap:0 56px;margin-top:28px}
/* Left column: the rollout as a timeline (the story's real proof is how fast
   it happened), then the scale counts once Sales confirms them. */
.cs-proof-left{display:flex;flex-direction:column;min-width:0;border-right:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
.cs-proof-timeline{position:relative;isolation:isolate;list-style:none;margin:0;padding:32px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:20px}
.cs-proof-timeline li{position:relative;z-index:1;padding-left:32px}
.cs-proof-timeline li::before,.cs-proof-timeline li::after{display:none}
.cs-timeline-light{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.cs-proof-timeline .when{display:block;color:var(--card);font-size:var(--t-h3);font-weight:500;letter-spacing:-.02em;line-height:1.3}
.cs-proof-timeline .what{display:block;margin-top:4px;color:color-mix(in srgb,var(--card) 78%,var(--ink));font-size:var(--t-small);line-height:1.45}
.cs-proof .cs-proof-stat{grid-column:span 2;display:block;padding:18px 32px;border-bottom:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
.cs-proof .cs-proof-stat b{display:block;color:var(--card);font-size:var(--t-h2);font-weight:400;min-width:0}
.cs-proof .cs-proof-stat span{display:block;max-width:none;margin-top:8px;color:color-mix(in srgb,var(--card) 78%,var(--ink));font-size:var(--t-small)}
.cs-proof .cs-proof-count{grid-column:span 1;border-bottom:0;padding:0}
.cs-proof .cs-proof-count b{font-size:max(var(--t-h3), calc(var(--t-h2) * .8));color:var(--card)}
.cs-proof .cs-proof-count span{margin-top:6px;font-size:var(--t-fine)}
.cs-proof .cs-proof-takeaway{align-self:center;padding:32px 48px}
.cs-proof .cs-proof-takeaway blockquote{color:var(--card)}
.cs-proof .cs-proof-lead{font-size:calc(var(--t-h2) * .78);font-weight:600;letter-spacing:-.035em;line-height:1.08;color:var(--card);margin:0}
.cs-proof .cs-proof-rest{color:color-mix(in srgb,var(--card) 86%,var(--ink));font-size:var(--t-h3);font-weight:400;line-height:1.5;margin:20px 0 0;max-width:var(--measure-tight)}
.cs-proof .cs-proof-takeaway .btn{margin-top:28px}
@media(min-width:681px) and (max-width:1000px){
 .cs-proof{grid-template-columns:42% 1fr}
 .cs-proof .cs-proof-takeaway{padding:28px}
 .cs-proof .cs-proof-stat{padding-left:24px;padding-right:24px}
 .cs-proof-timeline{padding:28px 24px}
}
@media(max-width:680px){
 .cs-proof{display:flex;flex-direction:column;gap:0;text-align:center}
 .cs-proof .cs-proof-takeaway{order:-1;padding:28px 20px;border-bottom:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
 .cs-proof .cs-proof-lead{line-height:1.12}
 .cs-proof .cs-proof-rest{font-size:var(--t-body);margin-top:14px;line-height:1.5}
 .cs-proof .cs-proof-takeaway .btn{margin-top:20px}
 .cs-proof-left{width:100%;border-right:0}
 .cs-proof-timeline{padding:28px 20px;gap:22px;text-align:left}
 .cs-proof-timeline li:not(:last-child)::after{bottom:-18px}
 .cs-proof .cs-proof-stats{width:100%;border-right:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 .cs-proof .cs-proof-stat{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:16px;padding:16px 20px;text-align:left}
 .cs-proof .cs-proof-stat span{margin:0;font-size:var(--t-small);max-width:none}
 .cs-proof .cs-proof-stat b{font-size:var(--t-h2);text-align:center}
 .cs-proof .cs-proof-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}
 .cs-proof .cs-proof-count{display:block;grid-column:span 1;text-align:center;padding:0}
 .cs-proof .cs-proof-count span{font-size:var(--t-fine);margin-top:6px}
}

.cs-proof-light{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;display:block;transform:translateX(9%);mask-image:linear-gradient(90deg,transparent 28%,var(--ink) 85%)}
@media(max-width:680px){.cs-proof-light{transform:none;mask-image:linear-gradient(180deg,transparent,var(--ink) 85%)}}

/* Open editorial sidebar: facts above, linked product at the foot of the sticky desktop column. */
.cs-aside{position:sticky;top:104px;align-self:start}
/* Framed so the facts read as one group: light --bg panel, hairline, --r-lg. It hugs its
   content (no full-height fill) so the frame never shows an empty middle. */
.cs-rail{display:flex;flex-direction:column;min-height:0;padding:28px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg)}
.cs-facts li:first-child{padding-top:0}
.cs-facts{margin:0;padding:0;list-style:none}
.cs-facts li{padding:10px 0}
.cs-facts .k{display:block;font-size:var(--t-micro);letter-spacing:.025em;text-transform:uppercase;font-weight:400;color:var(--muted);margin-bottom:5px}
.cs-facts .v{display:block;font-size:var(--t-body);line-height:1.5;color:var(--ink);font-weight:400;text-wrap:pretty}
.cs-foot{margin-top:0;padding-top:28px}
.cs-product{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:center}
.cs-product img{width:48px;height:auto;display:block}
.cs-product .n{display:block;font-size:var(--t-h4);font-weight:500;color:var(--ink)}
/* The one ask in the sidebar: navy, full width (as on the partner pages). */
.cs-rail-btn{width:100%;justify-content:center;margin-top:20px;background:var(--ink) !important;color:#fff}
.cs-product .d{display:block;margin-top:2px;font-size:var(--t-small);line-height:1.45;color:var(--muted);text-wrap:pretty}


/* ── Section headings ── */
.cs h2{font-size:var(--t-h2);font-weight:600;letter-spacing:-.035em;line-height:1.08;color:var(--ink);text-wrap:balance;margin:0}

/* ── Story: sticky facts on the left, 712px article column on the right ── */
/* The facts rail starts right under the H1, beside the results card, and stays
   sticky down the story. */
.cs-story{padding:calc(112px - var(--nav-h)) 0 0}
.cs-top{display:flex;flex-direction:column;gap:64px;min-width:0}
.cs-story-grid{display:grid;grid-template-columns:var(--cs-rail) minmax(0,1fr);gap:96px var(--cs-gap)}
.cs-aside{grid-column:1;grid-row:1 / span 2}
.cs-top{grid-column:2;grid-row:1}
.cs-body{grid-column:2;grid-row:2}
/* Running text keeps the 712px article measure inside the wider column. */
.cs-body > section > p,.cs-body .pullquote{max-width:var(--cs-col)}
.cs-body > section + section{margin-top:96px}
/* Same h2 as the article pages (articles.css .article-body h2). */
.cs-body h2{font-size:26px;letter-spacing:-.035em;margin-bottom:20px}
.cs-body p{font-size:17px;line-height:1.75;color:var(--ink);margin:0 0 24px;text-wrap:pretty}
.cs-body section{scroll-margin-top:96px}
.cs-body .pullquote{margin:48px 0}

.cs-figure{margin:40px 0}
.cs-figure img{display:block;width:100%;height:auto;border-radius:var(--r-md)}
.cs-figure--support{width:90%;max-width:calc(var(--cs-col) * .9);margin:0 0 24px}
.cs-figure--support img{height:clamp(178px,27.7vw,277px);object-fit:cover;object-position:50% 30%}
@media(max-width:680px){.cs-figure--support{margin-inline:auto}}

.cs-routine{max-width:var(--cs-col);scroll-margin-top:112px}
.cs-body .cs-routine p{font-size:var(--t-h4);line-height:1.75;text-wrap:pretty}
.cs-body .cs-routine-closing{font-weight:600;margin-top:16px}
.cs-routine-closing span{white-space:nowrap}


.cs-body .article-faq{margin-top:32px}


/* Ending CTA: the standard one, white, no frame */
.cs-end{padding:152px 0 96px}
.cs-end .final-cta{margin:0;padding:0}
.cs-end .final-cta h2{max-width:18ch;margin:0 auto 20px}
.cs-end .final-cta p{text-wrap:pretty}

@media(min-width:1081px) and (min-height:600px) and (max-height:820px){
  .cs-aside{top:88px}
}
@media(min-width:1081px) and (max-height:599px){.cs-aside{position:static}}
@media(max-width:1240px){
  .cs{--cs-rail:300px;--cs-gap:56px}
}
@media(max-width:1080px){
  .cs-story-grid{grid-template-columns:1fr;gap:48px}
  .cs-aside,.cs-top,.cs-body{grid-column:1;grid-row:auto}
  .cs-top{order:-1}
  .cs-aside{position:static}
  .cs-rail{min-height:0}
}
@media(max-width:680px){
  .cs-aside{text-align:center}
  .cs-rail{padding:24px 20px}
  .cs-product{max-width:290px;margin-inline:auto;text-align:left}
  .cs-wrap{padding:0 20px}
  .cs-top{gap:40px}
  .cs-hero-head .breadcrumb{margin-bottom:20px;letter-spacing:.08em}
  .cs h1{line-height:1.08}
  .cs-hero-head{text-align:center}
  .cs-story{padding-top:calc(96px - var(--nav-h))}
  .cs-body > section + section{margin-top:64px}
  .cs-routine{text-align:center}
  .cs-end{padding:96px 0 64px}
}

/* ── Rail: partner-page pattern (after /partners/yarooms) ──────────────
   Identity at the top (breadcrumb, a white mark tile, the customer's name),
   then one white card with the profile and the product, then one navy ask.
   No outer frame: the card does the grouping, as on the partner pages. */
.cs-rail{padding:0;background:none;border:0;border-radius:0}
.cs-rail-crumb{margin-bottom:40px !important}
.cs-top .cs-hero-head .breadcrumb{display:none}
/* H1 starts level with the mark tile, as .yr-col does on the partner page. */
.cs-top{padding-top:57px}
/* Subhead inside the H1 keeps the full title for SEO, read as two levels. */
.cs h1 .cs-h1-sub{display:block;margin-top:18px;font-size:var(--t-h3);font-weight:500;letter-spacing:-.01em;line-height:1.3;color:var(--muted)}
.cs-mark{width:84px;height:84px;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-card);color:var(--ink)}
.cs-name{margin:22px 0 0;font-size:var(--t-h3);font-weight:600;letter-spacing:-.02em;line-height:1.3;color:var(--ink)}
.cs-sub{margin:4px 0 0;font-size:var(--t-small);color:var(--muted)}
.cs-card{margin-top:28px;padding:22px 22px 24px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-card)}
.cs-facts{margin:0;display:grid;gap:16px}
.cs-facts div{padding:0}
.cs-facts dd{margin:0}
.cs-card .cs-product{margin-top:8px}
.cs-rail-btn{margin-top:24px}
@media(max-width:1080px){
  .cs .cs-rail-crumb{display:none}
  .cs-top .cs-hero-head .breadcrumb{display:block}
  .cs-top{padding-top:0}
}
@media(max-width:680px){
  .cs-mark{margin-inline:auto}
  .cs-card{text-align:center;padding:20px}
  .cs-card .cs-product{max-width:290px;margin:8px auto 0;text-align:left}
}

/* ── Headline swap: card lead is the H1, old title is the subhead ─────────────────────────────────────────────── */
@media(min-width:681px){.cs h1 .cs-nw{white-space:nowrap}}
/* One small step down (~6%) so "Desk Sign installed over a weekend." holds one line. */
.cs h1{font-size:calc(var(--t-h1) * .87)}
.cs h1 .cs-h1-sub{max-width:34em;text-wrap:pretty}
.cs-proof .cs-proof-takeaway .cs-proof-stats{margin-top:0}
/* Card: stats stacked left with a divider, the rollout story right. */
.cs-proof{grid-template-columns:30% 1fr}
.cs-proof-left{justify-content:center;padding:32px 40px}
.cs-proof .cs-proof-left .cs-proof-stats{grid-template-columns:1fr;gap:0;margin:0}
.cs-proof .cs-proof-left .cs-proof-count+.cs-proof-count{margin-top:24px;padding-top:24px;border-top:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
.cs-proof .cs-proof-takeaway .cs-proof-rest{margin:0;max-width:30em}
@media(min-width:681px) and (max-width:1000px){
 .cs-proof{grid-template-columns:34% 1fr}
 .cs-proof-left{padding:28px 24px}
}
@media(max-width:680px){
 .cs-proof-left{order:2;padding:24px 20px;border-top:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
 .cs-proof .cs-proof-takeaway{border-bottom:0}
 .cs-proof .cs-proof-left .cs-proof-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cs-proof .cs-proof-left .cs-proof-count+.cs-proof-count{margin-top:0;padding-top:0;border-top:0;border-left:1px solid color-mix(in srgb,var(--card) 18%,transparent)}
}

/* ── Timeline + photo (stories without headline numbers) ──────────────
   The sales-deck slide layout: a vertical rail with accent dots on white,
   beside the story's photo (40/60). Phones stack the photo under it. */
.cs-glance{display:grid;grid-template-columns:40% minmax(0,1fr);gap:40px;align-items:center}
.cs-steps{position:relative;list-style:none;margin:0;padding:0 0 0 28px;display:grid;gap:28px}
.cs-steps::before{content:"";position:absolute;left:4.25px;top:10px;bottom:30px;width:1.5px;background:color-mix(in srgb,var(--accent) 40%,transparent)}
.cs-steps li{position:relative;min-width:0}
.cs-steps li::before{content:none}
.cs-steps li::after{content:"";position:absolute;left:-28px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.cs-steps .when{display:block;color:var(--ink);font-size:var(--t-h4);font-weight:600;letter-spacing:-.01em;line-height:1.3;text-wrap:balance}
.cs-steps .what{display:block;margin-top:6px;color:var(--muted);font-size:var(--t-small);line-height:1.5;text-wrap:pretty}
.cs-glance-photo{margin:0;height:100%;min-height:260px}
.cs-glance-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--r-lg)}
@media(max-width:860px){
 .cs-glance{grid-template-columns:1fr;gap:28px}
 .cs-glance-photo{min-height:0;height:auto}
 .cs-glance-photo img{height:clamp(200px,52vw,320px)}
}
@media(max-width:680px){.cs-steps{text-align:left}}

/* Rail with two products: stacked rows, same 48px thumbnail. */
.cs-products{display:grid;gap:16px}
.cs-card .cs-products .cs-product{margin-top:0}
.cs-card .cs-products{margin-top:8px}
@media(max-width:680px){
 .cs-card .cs-products{width:min(100%,280px);margin:8px auto 0}
 .cs-card .cs-products .cs-product{max-width:none;width:100%;margin:0}
}

/* Photos whose subject sits low in the frame (desks under hanging lamps). Body or hero figure. */
.cs-figure--low img{object-position:50% 58%}
/* Photos whose subject sits mid-frame (a wall-mounted Room Sign). */
.cs-figure--center img{object-position:50% 50%}
/* Longer customer labels wrap as a balanced pair, never a lone word. */
.cs-name{text-wrap:balance}
/* Two-product rails run ~700px tall: below 840px of window they would clip
   the button while sticky, so they scroll with the page instead. */
@media(min-width:1081px) and (max-height:839px){.cs-aside:has(.cs-products){position:static}}
/* A desktop-only break: on phones the H1 balances on its own. */
@media(max-width:680px){.cs h1 .cs-br-d{display:none}}
/* Product rows link to their product pages. Hover = the software-downloads
   tile (hairline accent border, soft shadow, 2px lift), drawn on ::before
   around the row so the layout never shifts. */
a.cs-product{position:relative;color:inherit;text-decoration:none;transition:transform .25s ease}
a.cs-product::before{content:"";position:absolute;inset:-8px;border:1px solid transparent;border-radius:var(--r-md);pointer-events:none;transition:box-shadow .25s ease,border-color .25s ease}
a.cs-product:hover{transform:translateY(-2px)}
a.cs-product:hover::before{border-color:color-mix(in srgb,var(--accent) 25%,transparent);box-shadow:0 18px 50px -16px color-mix(in srgb,var(--ink) 10%,transparent),0 4px 12px color-mix(in srgb,var(--ink) 4%,transparent)}
a.cs-product:focus-visible{outline:none}
a.cs-product:focus-visible::before{border-color:var(--accent)}
