/* ---------- 2026 look for the older case studies (Notion 4830:7299, Apartments 4830:7621, IBM 4830:7772) ----------
   Loaded after case-study.css: keeps its highlights, viewer, galleries and motion, and swaps in the 2026
   type and colors: Arial Narrow for the small labels and titles, the body font for reading, a near-white page. */
body.cs26 { background: #fdfdfd; color: #000; }
.cs26 .hero-texture { display: none; }

/* Side index, as on the other 2026 case studies: grey headlines, the current one black with a small square */
/* Side index styled like the main nav (Figma 4830:6382): the body font, half-opacity items, the section you're reading in black with an orange square */
.cs26 .cs-back { font: 400 14px/18px var(--font-body); color: rgb(0 0 0 / .5); text-transform: capitalize; transition: color .3s ease; }
.cs26 .cs-back:hover { color: #000; text-decoration: none; }
.cs26 .cs-toc { gap: 4px; }
.cs26 .cs-toc a { display: flex; align-items: center; padding: 0; font: 400 14px/18px var(--font-body); text-transform: capitalize; color: rgb(0 0 0 / .5); transition: color .3s ease; }
.cs26 .cs-toc a::before { position: static; flex: none; width: 0; height: 4px; margin: 0; background: #6aa312; opacity: 1; transition: width .3s cubic-bezier(.22, 1, .36, 1), margin-right .3s cubic-bezier(.22, 1, .36, 1); }
.cs26 .cs-toc a:hover, .cs26 .cs-toc a.is-active { color: #000; padding: 0; }
.cs26 .cs-toc a.is-active::before { width: 4px; margin-right: 8px; }
/* Grouped by design phase (Overview, Research, Design, Outcome…): only the phase you're reading opens, showing its
   sections indented beneath it. The phase carries the lime square; the section you're on is black. */
.cs26 .cs-phase { display: flex; flex-direction: column; }
.cs26 .cs-phase.is-open > .cs-phase-link { color: #000; }
.cs26 .cs-phase.is-open > .cs-phase-link::before { width: 4px; margin-right: 8px; }
.cs26 .cs-phase-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.22, 1, .36, 1); }
.cs26 .cs-phase.is-open .cs-phase-items { grid-template-rows: 1fr; }
.cs26 .cs-phase:not(.is-open) .cs-phase-items > div { visibility: hidden; transition: visibility 0s .35s; } /* folded sections can't be tabbed to */
.cs26 .cs-phase-items > div { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow: hidden; padding-left: 12px; }
.cs26 .cs-phase-items > div > a:first-child { margin-top: 6px; }
.cs26 .cs-phase-items > div > a:last-child { margin-bottom: 4px; }
.cs26 .cs-phase-items a { font-size: 13px; }
.cs26 .cs-phase-items a::before, .cs26 .cs-phase-items a.is-active::before { width: 0; margin-right: 0; }
@media (prefers-reduced-motion: reduce) { .cs26 .cs-phase-items { transition: none; } }

/* Header, one type system for every case study (as on Apartments.com, Figma 4830:7623): the title in Libre
   Baskerville, small mono labels over the facts */
.cs26 .cs-title { font: 400 32px/normal "Libre Baskerville", Georgia, serif; letter-spacing: 0; text-transform: capitalize; color: #000; }
.cs26 .cs-facts { gap: 16px 120px; }
.cs26 .cs-facts dt { font: 300 12px/normal var(--font-mono); text-transform: uppercase; color: #2a2a2a; }
.cs26 .cs-facts dd { font: 400 16px/normal var(--font-body); text-transform: capitalize; color: #000; }

/* Text */
.cs26 .cs-label { font: 300 12px/normal var(--font-mono); letter-spacing: 0; text-transform: uppercase; color: #2a2a2a; }
.cs26 .cs-lead { font: 400 22px/1.2 var(--font-body); color: #000; }
.cs26 .cs-lead strong { font-weight: 400; }
.cs26 .cs-body { font: 400 16px/1.2 var(--font-body); color: #676565; }
.cs26 .cs-questions { font: 400 16px/normal var(--font-body); }
.cs26 .cs-flow-title { color: #000; }

/* Callouts: the key insight in green, frustrations in red, both in the body font with a small mono title
   (a plain .cs-callout keeps its paper look, in the mono) */
.cs26 .cs-callout { font: 300 12px/normal var(--font-mono); }
.cs26 .cs-callout--insight, .cs26 .cs-callout--frustrations { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 2px; font: 400 14px/15px var(--font-body); text-transform: none; color: #000; }
.cs26 .cs-callout--insight .cs-callout-title, .cs26 .cs-callout--frustrations .cs-callout-title { margin: 0; font: 300 12px/normal var(--font-mono); text-transform: uppercase; }
.cs26 .cs-callout p { margin: 0; }
.cs26 .cs-callout--insight { background: #f8fbf2; border: .5px solid #367b01; }
.cs26 .cs-callout--frustrations { background: #fcf3f1; border: 1px solid #f37777; }
.cs26 .cs-callout--frustrations ol { display: flex; gap: 10px; padding: 0; list-style: none; counter-reset: f; }
.cs26 .cs-callout--frustrations li { flex: 1 1 0; position: relative; padding-left: 21px; counter-increment: f; }
.cs26 .cs-callout--frustrations li::before { content: counter(f) "."; position: absolute; left: 4px; }
.cs26 .cs-survey { border: .5px solid #e6e6e6; border-radius: 2px; }

/* Pain point titles and the chart legend in the body font */
.cs26 .cs-pain-title { font-family: var(--font-body); }
.cs26 .cs-legend dt > span:first-child, .cs26 .cs-legend dd, .cs26 .cs-pct { font-family: var(--font-body); } /* same Calibre-style body font as the text around it */

/* Award */
.cs26 .cs-award-caption { font: 400 14px/normal var(--font-body); color: #000; }

/* Viewer label in the mono */

@media (max-width: 900px) {
  /* Back + section index become a bar across the top that stays in view, matching the main nav bar */
  .cs26 .cs-page { padding-top: 0; }
  .cs26 .cs-sidebar {
    position: sticky; top: 0; z-index: 20; align-self: stretch; width: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0 20px;
    margin: 0 -16px; padding: 4px 16px; background: rgb(253 253 253 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(0 0 0 / .06);
  }
  .cs26 .cs-toc { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0 14px; min-width: 0; overflow-x: auto; scrollbar-width: none; } /* one line; swipe for more */
  .cs26 .cs-phase-items { display: none; } /* phones: just the phases, in one row */
  .cs26 .cs-toc::-webkit-scrollbar { display: none; }
  .cs26 .cs-back, .cs26 .cs-toc a { min-height: 44px; display: flex; align-items: center; }
  .cs26 .cs-callout--frustrations ol { flex-direction: column; }
  .cs26 .cs-facts { column-gap: 32px; }
}

/* IBM: reflections stack, in the body font */
.cs26 .cs-reflections { display: flex; flex-wrap: wrap; gap: 12px; } /* two columns side by side (Figma 5098:11174), stacking once each would be under 332px */
.cs26 .cs-reflections > .cs-block { flex: 1 1 332px; min-width: 0; }
.cs26 .cs-reflections .cs-body { font-family: var(--font-body); }

/* Highlights in a soft lime tint (black text on it stays far above 4.5:1): subheading marks sweep in, and the key-insight phrases get the same mark */
.cs26 .hl {
  background:
    linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .6) 50%, transparent 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(rgb(180 227 61 / .4), rgb(180 227 61 / .4)) 0 0 / 0% 100% no-repeat;
}
.cs26 .hl.is-lit { background-size: 250% 100%, 100% 100%; }
.cs26 .cs-stat { padding: 0 .1em; margin: 0 -.05em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(rgb(180 227 61 / .4), rgb(180 227 61 / .4)) 0 0 / 0% 100% no-repeat; transition: background-size .9s cubic-bezier(.65, 0, .35, 1) .2s; }
.cs26 .cs-stat.is-lit { color: inherit; background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { .cs26 .cs-stat { transition: none; } }

/* "Email copied" note that pops up by the pointer (IBM) */
.cs-copied {
  position: fixed; z-index: 3001; translate: -50% calc(-100% - 14px); padding: 6px 10px; border-radius: 2px;
  background: #000; color: #fff; font: 300 12px/normal var(--font-mono); text-transform: uppercase; white-space: nowrap;
  pointer-events: none; animation: cs-copied 1.4s ease forwards;
}
@keyframes cs-copied { 0% { opacity: 0; translate: -50% calc(-100% - 8px); } 15%, 75% { opacity: 1; translate: -50% calc(-100% - 14px); } 100% { opacity: 0; } }

/* A callout that follows a section's text gets a little room above it */
.cs26 .cs-block > .cs-callout:not(:first-child) { margin-top: 20px; }

/* Square phone mockup on its own colored background, shown whole */
.cs26 .cs-media--mock { aspect-ratio: 1; }

/* Findings legend: label on the left and its share on the right, a bar filled to that share in the
   slice's color, then the description underneath */
.cs26 .cs-legend { gap: 28px; }
.cs26 .cs-legend > div { --c: #cc4c29; --w: 57%; display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 8px; }
.cs26 .cs-legend > div:nth-child(2) { --c: #16c4c1; --w: 26%; }
.cs26 .cs-legend > div:nth-child(3) { --c: #740fae; --w: 17%; }
.cs26 .cs-legend dt { display: contents; }
.cs26 .cs-legend dt > span:first-child { grid-column: 1; grid-row: 1; }
.cs26 .cs-legend .cs-pct { grid-column: 2; grid-row: 1; align-self: baseline; font-size: 16px; color: #000; }
.cs26 .cs-legend > div::after {
  content: ""; grid-column: 1 / -1; grid-row: 2; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c) var(--w), #ececec var(--w));
}
.cs26 .cs-legend dd { grid-column: 1 / -1; grid-row: 3; font-size: 15px; line-height: 1.45; }

/* Key insight: a zoomed-in phone on Apartments.com green, its toast drawn in their type (Outfit) and colors */
.cs26 .ax-stage { --ax-green: #367b01; position: relative; height: 240px; overflow: hidden; border: 0; background: #f4efe4; }
.cs26 .ax-device {
  position: absolute; left: 50%; top: -392px; width: 330px; height: 600px; translate: -50% 0; box-sizing: border-box;
  padding: 11px; border-radius: 54px; background: #121212; box-shadow: 0 0 0 2px #3a3a3a inset, 0 18px 36px rgb(60 45 20 / .18);
}
.cs26 .ax-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; padding: 22px 16px; box-sizing: border-box; font-family: "Outfit", var(--font-body); }
.cs26 .ax-card { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border: 1px solid #e3e3e3; border-radius: 2px; overflow: hidden; box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.cs26 .ax-photo { display: block; height: 160px; background: #e9ece6; }
.cs26 .ax-next { display: block; height: 150px; margin-top: 12px; border-radius: 4px 4px 0 0; background: #e9ece6; }
.cs26 .ax-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px 0; }
.cs26 .ax-line { height: 6px; margin: 0 12px; border-radius: 3px; background: #ececec; }
.cs26 .ax-row .ax-line--price { width: 46%; height: 12px; margin: 0; background: #dedede; }
.cs26 .ax-line--short { width: 55%; }
.cs26 .ax-btns { display: flex; gap: 8px; padding: 6px 12px 0; }
.cs26 .ax-btn { flex: 1; height: 30px; box-sizing: border-box; border: 1px solid var(--ax-green); border-radius: 3px; }
.cs26 .ax-btn--fill { background: var(--ax-green); color: #fff; }
.cs26 .ax-safari { position: absolute; left: 16px; right: 16px; bottom: 44px; height: 32px; border-radius: 12px; background: #f1f1f1; }
.cs26 .ax-home { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 5px; translate: -50% 0; border-radius: 3px; background: #111; }
/* The toast sits just above Safari's bar and spills past the phone's edges, as if the camera zoomed in on it */
.cs26 .ax-toast {
  position: absolute; left: 50%; bottom: 132px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 16px;
  translate: -50% 0; scale: 1.3; white-space: nowrap; background: #fff; border: 1px solid #bfbfbf; border-radius: 100px;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / .25)); font: 300 16px/1.6 "Outfit", var(--font-body); letter-spacing: .01em; color: #000;
 
}
.cs26 .ax-toast b { font-weight: 500; }
.cs26 .ax-toast-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
@media (max-width: 600px) { .cs26 .ax-toast { scale: 1.24; } }

/* Hero (lime): on phones the frame is taller, so the phone inside reads larger; the sides of the background are what get cropped */
@media (max-width: 760px) { .cs26 .cs-hero--lime img { aspect-ratio: 4 / 3; } }
/* Findings: a plain title over the share bars (no donut) */
.cs26 .cs-findings { align-items: stretch; }
.cs26 .cs-findings-title { margin: 0 0 4px; font: 300 12px/normal var(--font-mono); text-transform: uppercase; color: #2a2a2a; }

/* Apartments hero: the homepage's looping phone, at the hero's proportions (taller on phones) */
.cs26 .cs-hero-ax { display: block; width: 100%; height: auto; aspect-ratio: 671 / 375; }
@media (max-width: 760px) { .cs26 .cs-hero-ax { aspect-ratio: 4 / 3; } }

/* Index targets: a heading jumped to from the side index lands with room above it (and clear of the phone bar) */
.cs26 .cs-label[id] { scroll-margin-top: 88px; }

/* ---------- IBM: sections under NDA (Figma 3868:3900). Locked, a password card stands in their place (nda.js) ---------- */
.nda { scroll-margin-top: 88px; }
.nda-lock { display: flex; flex-direction: column; gap: 12px; } /* no box: it sits in the text column like the sections above */
.nda-lock .cs-lead { margin: 0; }
.nda-field { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.nda-field input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; box-sizing: border-box; border: 1px solid #cfcfcf; border-radius: 2px;
  background: #fff; font: 400 16px/normal var(--font-body); color: #000;
}
.nda-field input:focus-visible { outline: 2px solid #6aa312; outline-offset: 1px; border-color: #6aa312; }
.nda-field button {
  flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 2px; background: #3f7a08; color: #fff; /* white on dark lime: 5.25:1 */
  font: 400 15px/normal var(--font-body); cursor: pointer; transition: background .2s ease;
}
.nda-field button:hover { background: #335f07; }
.nda-field button:focus-visible { outline: 2px solid #32404f; outline-offset: 2px; }
.nda-lock.is-busy button { opacity: .6; cursor: progress; }
.nda-error { margin: 0; min-height: 1.3em; font: 400 14px/normal var(--font-body); color: #b42318; }
.nda-lock.is-wrong .nda-field { animation: nda-shake .4s ease; }
@keyframes nda-shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .nda-lock.is-wrong .nda-field { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Revealed */
.nda img { display: block; width: 100%; height: auto; }
.nda .cs-label[tabindex]:focus { outline: none; }
.nda-stack { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.nda-goal { margin: 0; padding: 16px 24px; background: #fff; border: 1px solid #e3e3e3; border-radius: 2px; font: 400 16px/normal var(--font-body); color: #000; }
.nda-card { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px 48px; background: #fff; border: 1px solid rgb(207 207 207 / .8); border-radius: 2px; }
.nda-card figcaption { display: flex; flex-direction: column; gap: 12px; }
.nda-card-title { font: 400 16px/normal var(--font-body); color: #000; }
.nda-card-text { font: 400 14px/normal var(--font-body); color: #737373; }
.nda-insights { display: flex; gap: 24px; }
.nda-insight { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid #e3e3e3; border-radius: 2px; font: 400 14px/normal var(--font-body); color: #676565; }
.nda-insight p { margin: 0; }
.nda-insight .nda-insight-title { font-size: 16px; color: #000; }
.nda-ia { padding: 48px 56px 64px; background: #fff; border: 1px solid #d9d9d9; border-radius: 2px; }
.nda-ia img { max-width: 770px; margin: 0 auto; }
.nda-explore { gap: 24px; }
.nda-tabs { display: flex; align-self: center; border-radius: 2px; overflow: hidden; }
.nda-tabs button {
  width: 120px; padding: 8px 0; border: 0; cursor: pointer; text-align: center; background: #f2f2f2; font: 400 14px/normal var(--font-body); color: #2a2a2a;
  transition: background .2s ease, color .2s ease;
}
.nda-tabs button:hover { background: #e8e8e8; }
.nda-tabs button[aria-selected="true"] { background: #dcdcdc; color: #000; }
.nda-tabs button:focus-visible { outline: 2px solid #32404f; outline-offset: -2px; }
.nda-rows { display: flex; flex-direction: column; gap: 32px; }
.nda-row { display: flex; flex-direction: column; gap: 12px; }
.nda-row > .cs-body { text-align: center; }
.nda-pair { display: flex; gap: 12px; }
.nda-shot { flex: 1 1 0; min-width: 0; display: flex; align-items: center; padding: 8px; background: #fff; border: 1px solid #e3e3e3; border-radius: 2px; }
.nda-shot img { border-radius: 2px; }
.nda-final { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.nda-step { display: flex; flex-direction: column; gap: 12px; }
.nda-step img { border-radius: 2px; }
.nda-step-title { display: block; color: #000; }
.nda-checks { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; font: 400 16px/normal var(--font-body); color: #676565; }
.nda-checks li { display: flex; gap: 12px; }
.nda-checks li::before { content: ""; flex: none; width: 20px; height: 20px; background: #3f7a08; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 700px) {
  .nda-card { padding: 20px; }
  .nda-insights, .nda-pair { flex-direction: column; }
  .nda-ia { padding: 24px 16px; }
  .nda-tabs { align-self: stretch; }
  .nda-tabs button { flex: 1 1 0; width: auto; }
}
@media (max-width: 760px) { .cs26 .cs-title { font-size: 26px; } }

/* IBM: body paragraphs run on with no blank line between them */
.case-study-page--ibm .cs-body p + p { margin-top: 0; }
.case-study-page--ibm .cs-body--spaced p + p { margin-top: 1.2em; } /* the Problem paragraphs keep a gap between them */
/* IBM and Notion: the text and media fill the whole content column (893px, the hero's width), not the narrower 597px text width */
.case-study-page--ibm .cs-group, .case-study-page--notion .cs-group { max-width: none; }

/* Facts (Role, Team, Timeline, Scope): an even grid, never a ragged wrap. One row of equal columns on desktop;
   2 × 2 from 1100px down (three facts stay in one row until phones) */
body.cs26 .cs-facts { display: grid; grid-auto-flow: column; grid-auto-columns: auto; justify-content: space-between; gap: 16px 48px; } /* each column as wide as its text needs, so short facts never break onto extra lines */
body.cs26 .cs-facts > div { min-width: 0; }
body.cs26 .cs-facts dd { overflow-wrap: break-word; }
@media (max-width: 1100px) {
  body.cs26 .cs-facts { grid-auto-flow: row; justify-content: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  body.cs26 .cs-facts:not(:has(> div:nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body.cs26 .cs-facts:not(:has(> div:nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
