/* YourMood case study; shared site styles remain in styles.css. */
.master-case-study-page {
 --case-purple: #6941c6;
}
.cs-main { width: calc(100% - 160px); max-width: 1280px; margin: 0 auto; color: var(--grey-8); font-size: 16px; line-height: 24px; }
.cs-main p, .cs-main h1, .cs-main h2, .cs-main h3, .cs-main h4,
.cs-main figure, .cs-main dl, .cs-main dd { margin: 0; }
.cs-main img { display: block; }
.cs-main ul, .cs-main ol { margin: 0; padding-left: 24px; }
.cs-main h2 {
 color: var(--grey-10);
 font-size: 24px;
 line-height: 32px;
 font-weight: 600;
}
.cs-main h3 {
 color: var(--grey-8);
 font-size: 18px;
 line-height: 24px;
 font-weight: 600;
}
.cs-main h4 { font-size: inherit; font-weight: 600; }
.cs-section { scroll-margin-top: 24px; min-width: 0; }
.cs-section + .cs-section { margin-top: 40px; }
.cs-copy {
 display: flex;
 flex-direction: column;
 gap: 12px;
 max-width: 740px;
}
.cs-eyebrow { color: var(--grey-7); }
.cs-stack { display: flex; flex-direction: column; gap: 12px; }
.cs-section > .cs-copy + *, .cs-section > .cs-stack + * { margin-top: 24px; }
.cs-section > .cs-copy + .cs-participants { margin-top: 12px; }
.cs-figure { width: 100%; }
.cs-figure > img, .cs-figure picture, .cs-figure picture img { display: block; width: 100%; height: auto; }
.cs-figure figcaption { margin-top: 16px; font-size: 14px; line-height: 20px; }
.cs-callout { background: rgba(105,65,198,.1); padding: 16px; border-radius: 8px; }
.cs-hero {
 position: relative;
 aspect-ratio: 1280 / 664;
 background: var(--case-purple);
 color: #fff;
 container-type: inline-size;
}
.cs-hero-copy {
 position: absolute;
 top: 5.12%;
 left: 11.09375%;
 width: 77.8125%;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: .9375cqw;
 text-align: center;
}
.cs-hero h1 { font-size: 1.09375cqw; line-height: 1.3; font-weight: 700; }
.cs-hero-copy > p { font-size: 1.40625cqw; line-height: 1.3; }
.cs-hero + .cs-validation { margin-top: 33px; }
.cs-validation {
 display: flex;
 align-items: baseline;
 gap: 12px;
 padding-bottom: 24px;
 border-bottom: 1px solid #d9d9d9;
}
.cs-result-label { font-weight: 600; flex-shrink: 0; }
.cs-details { display: grid; grid-template-columns: repeat(3, 1fr) 2.4fr; gap: 24px; }
.cs-details dt { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.cs-overview { position: relative; }
.cs-overview > .cs-copy { max-width: 758px; }
.cs-recognition {
 position: absolute;
 top: 0;
 right: 0;
 width: 356px;
 display: flex;
 flex-direction: column;
 gap: 16px;
 padding: 24px;
 border-radius: 12px;
 background: #f5f5f5;
}
.cs-recognition-label {
 display: flex;
 gap: 12px;
 align-items: center;
 color: var(--grey-7);
}
.cs-medal {
 width: 30px;
 height: 30px;
 object-fit: cover;
 flex-shrink: 0;
}
.cs-recognition-award { display: flex; gap: 20px; align-items: start; }
.cs-recognition-award img {
 width: 121px;
 height: 88px;
 object-fit: cover;
 border-radius: 8px;
 flex-shrink: 0;
}
.cs-recognition-award strong { font-weight: 600; }
.cs-overview + .cs-context { margin-top: 87px; }
.cs-context .cs-copy { max-width: 869px; }
.cs-context h2 {
 font-size: 32px;
 line-height: 38px;
 color: var(--case-purple);
 text-transform: uppercase;
}
.cs-surveys > .cs-copy { max-width: 922px; }
.cs-participants { gap: 12px; }
.cs-survey-art { width: 88.0065%; margin: 40px auto 0 !important; }
.cs-survey-art + .cs-copy { margin-top: 0; max-width: 959px; }
.cs-surveys > ul { margin-top: 12px; }
.cs-surveys > .cs-callout { margin-top: 24px; max-width: 1005px; }
#interviews > .cs-copy { max-width: 890px; }
.cs-interview-grid {
 display: grid;
 grid-template-columns: repeat(4,minmax(0,1fr));
 gap: 24px;
 margin-top: 40px;
}
#competitive-analysis > .cs-copy { max-width: 894px; }
.cs-competitors {
 width: 100%;
 border-collapse: separate;
 border-spacing: 0;
 table-layout: fixed;
 overflow: hidden;
 border-radius: 8px;
 margin-top: 24px;
}
.cs-competitors th, .cs-competitors td {
 padding: 24px;
 height: 130px;
 border: solid #d8d8d8;
 border-width: 0 1px 1px 0;
 font-size: 16px;
 line-height: 28.8px;
 font-weight: 400;
 vertical-align: middle;
}
.cs-competitors thead th {
 font-size: 20px;
 line-height: 32px;
 letter-spacing: .6px;
 border-top-width: 1px;
}
.cs-competitors th:first-child { border-left-width: 1px; }
.cs-competitors td { text-align: left; }
.cs-competitors + .cs-copy { margin-top: 32px; max-width: 894px; }
#affinity .cs-copy { max-width: 864px; }
.cs-affinity-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 20px 35px;
 margin-top: 28px;
}
.cs-affinity-card { padding: 16px; border-radius: 8px; min-height: 105px; }
.cs-affinity-card:nth-child(1) { background: #aff4c6; }
.cs-affinity-card:nth-child(2) { background: #e6e6e6; }
.cs-affinity-card:nth-child(3) { background: #e4ccff; grid-area: 1 / 2; }
.cs-affinity-card:nth-child(4) { background: #ffc7c2; }
.cs-personas .cs-copy { max-width: 930px; }
.cs-personas .cs-figure + .cs-figure { margin-top: 24px; }
.cs-icon-label { display: flex; align-items: center; gap: 8px; }
.cs-icon-label img { width: 24px; height: 24px; object-fit: cover; }
.cs-strategy > .cs-stack { max-width: 1025px; }
.cs-strategy > .cs-stack > h2:first-of-type { font-size: 36px; line-height: 44px; }
.cs-strategy > .cs-stack > .cs-icon-label:not(:first-child) { margin-top: 20px; }
.cs-strategy > .cs-copy { margin-top: 32px; }
.cs-strategy > ul { margin-top: 12px; }
.cs-strategy > ul li + li { margin-top: 6px; }
.cs-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.cs-feature-grid h3 {
 padding: 24px;
 border-radius: 16px;
 background: #bde3ff;
 text-align: center;
 font-size: 16px;
 font-weight: 400;
}
.cs-feature-grid ol {
 list-style: none;
 counter-reset: feature;
 padding: 0;
 margin-top: 16px;
}
.cs-feature-grid li {
 counter-increment: feature;
 display: flex;
 align-items: center;
 gap: 12px;
}
.cs-feature-grid li + li { margin-top: 8px; }
.cs-feature-grid li::before {
 content: counter(feature);
 display: grid;
 place-items: center;
 flex: 0 0 40px;
 height: 28px;
 border-radius: 14px;
 background: #e8ede8;
}
.cs-sketch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cs-decision + .cs-decision { margin-top: 40px; }
.cs-decision {
 display: flex;
 flex-direction: column;
 align-items: start;
 gap: 12px;
}
.cs-decision > .cs-copy { max-width: 914px; }
.cs-evidence-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 24px;
 width: 100%;
}
.cs-evidence-grid > div { display: flex; flex-direction: column; gap: 8px; }
.cs-comparison-patterns picture { max-width: 492px; margin: 0 auto; }
.cs-comparison + .cs-copy { gap: 12px; }
.cs-home-annotated { width: 90%; margin: auto !important; }
.cs-breathing-annotated { width: 91.328%; margin: auto !important; }
.cs-home-walkthrough, .cs-activity-walkthrough { display: none; }
.cs-study-results > * + * { margin-top: 24px; }
.cs-study-results > h2 + p { margin-top: 8px; }
.cs-result-copy { max-width: 1015px; }
.cs-study-note { display: none; }
.cs-score { padding: 30px 32px; }
.cs-score h3 { font-size: 40px; line-height: 56px; color: var(--grey-10); }
.cs-score-track {
 margin: 32px 0 24px;
 width: 100%;
 height: 28px;
 background: #eee;
}
.cs-score-track span {
 display: block;
 width: 85%;
 height: 100%;
 background: #7041c6;
}
.cs-score p { font-size: 24px; line-height: 32px; }
.cs-study-stats {
 display: flex;
 gap: 24px;
 padding: 16px;
 background: #f5f5f5;
 border: 1px solid #d9d9d9;
 border-radius: 16px;
}
.cs-study-stats > div { flex: 1; }
.cs-study-stats dt { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
.cs-study-stats dd { font-size: 32px; line-height: 40px; font-weight: 700; }
.cs-score-interpretation { min-height: 168px; padding: 24px; }
.cs-score-interpretation p { margin-top: 16px; }
.cs-community picture, .cs-community picture img { display: block; width: 100%; height: auto; }
.cs-community picture { margin-top: 16px; }
.cs-community-note { margin-top: 12px !important; max-width: 1015px; }
.cs-other-work > h2 { margin-bottom: 40px; }
.cs-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cs-project-card {
 display: flex;
 flex-direction: column;
 gap: 16px;
 color: inherit;
 text-decoration: none;
 min-width: 0;
}
.cs-project-card figure { overflow: hidden; border-radius: 12px; }
.cs-project-card img { transition: transform .2s ease; }
.cs-project-card:hover img { transform: scale(1.025); }
.cs-project-card h3 { color: var(--grey-10); font-size: 24px; line-height: 31px; }
.cs-project-card p { font-size: 16px; line-height: 24px; }
.cs-sr-only, .cs-skip-link {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
.cs-skip-link:focus {
 z-index: 100;
 width: auto;
 height: auto;
 clip-path: none;
 top: 8px;
 left: 8px;
 padding: 12px;
 background: white;
 color: #262626;
}
.cs-main :focus-visible, .cs-skip-link:focus-visible { outline: 2px solid var(--case-purple); outline-offset: 4px; }
.cs-hero-phones {
 position: absolute;
 top: 28.514%;
 left: 8.59375%;
 width: 82.8125%;
 height: auto;
 display: grid;
 grid-template-columns: repeat(5,minmax(0,1fr));
 column-gap: 3.773585%;
}
.cs-hero-phones img {
 width: 100%;
 aspect-ratio: 180 / 420;
 object-fit: cover;
 border-radius: 12.22% / 5.24%;
 box-shadow: 0 3px 3px rgba(0,0,0,.16);
}
.cs-overview > .cs-recognition { margin-top: 0; }
.cs-card-heading { display: flex; align-items: center; gap: 8px; }
.cs-interview-card {
 display: flex;
 flex-direction: column;
 align-items: start;
 gap: 12px;
 padding: 24px;
 min-height: 260px;
 border: 1px solid #d9d9d9;
 border-radius: 8px;
 background: #f5f5f5;
}
.cs-theme-icon { width: 28px; height: 28px; object-fit: cover; }
.cs-card-heading h3 { font-size: 16px; font-weight: 400; }
.cs-strategy > .cs-problem { max-width: 1025px; gap: 16px; }
.cs-strategy > .cs-problem h2 { font-size: 36px; line-height: 44px; }
.cs-strategy > .cs-how-might-we { max-width: 1068px; margin-top: 32px; }
.cs-strategy > .cs-principles { margin-top: 32px; gap: 12px; }
.cs-principles li + li { margin-top: 6px; }
.cs-study-layout {
 display: grid;
 grid-template-columns: minmax(0,407fr) minmax(0,734fr);
 column-gap: 7.65625%;
 row-gap: 20px;
 margin-top: 24px;
}
.cs-study-layout > .cs-study-note { display: block; padding-top: 30px; }
.cs-study-layout > .cs-score { grid-area: 1 / 2; min-height: 276px; padding: 30px 26px; }
.cs-study-layout > .cs-score h3 { font-size: 28px; line-height: 40px; }
.cs-study-layout > .cs-score p { font-size: 16px; line-height: 24px; }
.cs-study-layout > .cs-score .cs-score-track { height: 18px; }
.cs-study-layout > p:not(.cs-study-note) {
 grid-area: 2 / 2;
 justify-self: end;
 width: 325px;
 padding-left: 19px;
}
.cs-study-layout > .cs-study-stats {
 grid-area: 3 / 2;
 width: 325px;
 justify-self: end;
 min-height: 118px;
}
.cs-study-layout .cs-study-stats dt { font-size: 20px; line-height: 26px; }
.cs-study-layout .cs-study-stats dd { font-size: 24px; line-height: 31px; }
.cs-study-layout > .cs-score-interpretation { grid-area: 2 / 1 / 4 / 2; min-width: 650px; padding: 24px 30px; }
.cs-study-layout .cs-score-interpretation h3 { font-size: 24px; line-height: 32px; }
.cs-study-layout > .cs-score-interpretation p { margin-top: 24px; }
.cs-hero-copy > .cs-hero-meta {
 font-size: 1.09375cqw;
 display: flex;
 align-items: center;
 gap: .625cqw;
 line-height: 1.3;
}
.cs-hero-meta img { width: .3125cqw; height: auto; }
.cs-competitors thead { background: linear-gradient(90deg,#fae79d 0%,#faf0c9 50%,#ffd2bd 100%); }
.cs-community-heading {
 text-align: center;
 font-size: 22px !important;
 line-height: 30px !important;
 font-weight: 400 !important;
}

@media (min-width: 1200px) and (max-width: 1350px) {
 .cs-overview > .cs-copy { max-width: calc(100% - 400px); }
}

@media (max-width: 1199px) {
 .cs-main { width: calc(100% - 80px); margin-top: 20px; }
 .cs-section + .cs-section { margin-top: 44px; }
 .cs-main h2 { font-size: 22px; line-height: 28px; }
 .cs-hero + .cs-validation { margin-top: 44px; }
 .cs-validation { border-bottom: 0; padding-bottom: 0; }
 .cs-result-label { font-weight: 400; }
 .cs-details { grid-template-columns: repeat(3,1fr); gap: 20px 16px; }
 .cs-details > div:last-child { grid-column: 1 / -1; }
 .cs-details dt { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
 .cs-details dd { font-size: 14px; line-height: 20px; }
 .cs-overview { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
 .cs-recognition {
  position: static;
  width: auto;
  padding: 16px;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
 }
 .cs-recognition-award { gap: 12px; }
 .cs-recognition-award img { width: 104px; height: 75.636px; }
 .cs-recognition-award strong { font-weight: 400; }
 .cs-overview + .cs-context { margin-top: 44px; }
 .cs-context h2 { font-size: 28px; line-height: 34px; }
 .cs-survey-art { width: 100%; margin: 24px auto !important; }
 .cs-competitors, .cs-competitors tbody { display: block; }
 .cs-competitors thead { display: none; }
 .cs-competitors tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
 .cs-competitors tr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
 }
 .cs-competitors th, .cs-competitors td {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  text-align: left;
  line-height: 24px;
 }
 .cs-competitors th { font-size: 18px; }
 .cs-competitors td::before {
  display: block;
  content: attr(data-label);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .42px;
  margin-bottom: 4px;
 }
 .cs-affinity-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
 .cs-affinity-card { min-height: 104px; }
 .cs-affinity-card:nth-child(3) { grid-area: auto; }
 .cs-strategy > .cs-stack > h2:first-of-type { font-size: 28px; line-height: 30px; }
 .cs-feature-grid { gap: 20px; }
 .cs-sketch-grid { gap: 24px; }
 .cs-decision { gap: 20px; }
 .cs-evidence-grid { grid-template-columns: 1fr; gap: 24px; }
 .cs-comparison-patterns picture { max-width: 444px; }
 .cs-desktop-art { display: none; }
 .cs-home-walkthrough { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
 .cs-home-walkthrough article, .cs-activity-walkthrough article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
 }
 .cs-phone { width: 210px; height: auto; align-self: center; }
 .cs-walk-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
 }
 .cs-activity-walkthrough { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
 .cs-activity-walkthrough p { font-size: 14px; line-height: 20px; }
 .cs-score { padding: 30px 26px; }
 .cs-score h3 { font-size: 28px; line-height: 40px; }
 .cs-score-track { margin: 32px 0 24px; height: 18px; }
 .cs-score p { font-size: 16px; line-height: 23px; }
 .cs-study-note { display: block; }
 .cs-study-stats dt { font-size: 20px; line-height: 26px; }
 .cs-study-stats dd { font-size: 22px; line-height: 28px; }
 .cs-score-interpretation h3 { font-size: 20px; line-height: 28px; }
 .cs-community-heading { display: none; }
 .cs-community picture { margin-top: 0; }
 .cs-project-grid { gap: 24px; }
 .cs-project-card { gap: 12px; }
 .cs-project-card h3 { font-size: 20px; line-height: 26px; }
 .cs-other-work > h2 { margin-bottom: 24px; }
 .cs-copy > .cs-eyebrow { margin-bottom: -4px; }
 .cs-overview > .cs-copy > .cs-eyebrow { margin-bottom: 0; }
 .cs-interview-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
 }
 .cs-interview-card { min-height: 0; padding: 16px; gap: 12px; }
 .cs-interview-card .cs-theme-icon { width: 28px; height: 28px; }
 .cs-competitors tbody tr { min-height: 296px; }
 .cs-strategy > .cs-problem h2 { font-size: 28px; line-height: 30px; }
 .cs-strategy > .cs-problem > .cs-eyebrow { margin-bottom: 0; }
 .cs-strategy > .cs-how-might-we { margin-top: 24px; }
 .cs-strategy > .cs-principles { margin-top: 24px; }
 .cs-study-layout { display: flex; flex-direction: column; gap: 24px; }
 .cs-study-layout > .cs-study-note { padding-top: 0; }
 .cs-study-layout > .cs-score { min-height: 199px; }
 .cs-study-layout > p:not(.cs-study-note) { width: auto; padding: 0; }
 .cs-study-layout > .cs-study-stats { width: auto; min-height: 0; }
 .cs-study-layout > .cs-score-interpretation { min-width: 0; min-height: 168px; padding: 24px; }
 .cs-study-layout .cs-score-interpretation h3 { font-size: 20px; line-height: 28px; }
 .cs-study-layout > .cs-score-interpretation p { margin-top: 16px; }
}

@media (max-width: 767px) {
 .cs-main { width: calc(100% - 32px); margin-top: 16px; }
 .cs-section + .cs-section, .cs-overview + .cs-context { margin-top: 40px; }
 .cs-main h2 { font-size: 20px; line-height: 26px; }
 .cs-hero + .cs-validation { margin-top: 40px; }
 .cs-details { grid-template-columns: 1fr 1fr; gap: 16px; }
 .cs-details > div:last-child { grid-column: auto; }
 .cs-details dd { font-size: 16px; line-height: 24px; }
 .cs-overview { display: flex; flex-direction: column; gap: 20px; }
 .cs-context h2 { font-size: 24px; line-height: 30px; }
 .cs-competitors tbody { grid-template-columns: 1fr; }
 .cs-feature-grid { grid-template-columns: 1fr; gap: 24px; }
 .cs-feature-grid h3 { padding: 12px; font-weight: 400; }
 .cs-feature-grid ol { margin-top: 12px; }
 .cs-feature-grid li::before { flex-basis: 34px; }
 .cs-sketch-grid { gap: 16px; }
 .cs-strategy > .cs-stack > h2:first-of-type { font-size: 24px; line-height: 30px; }
 .cs-decision .cs-copy h2 { font-size: 22px; line-height: 24px; }
 .cs-comparison-patterns picture { max-width: 100%; }
 .cs-home-walkthrough { gap: 16px; }
 .cs-home-walkthrough h3, .cs-activity-walkthrough h3 { font-size: 18px; line-height: 24px; color: var(--grey-10); }
 .cs-phone { width: min(158px,100%); }
 .cs-home-walkthrough h4 { font-size: 14px; line-height: 20px; }
 .cs-activity-walkthrough { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
 .cs-activity-walkthrough article:first-child { grid-column: 1 / -1; }
 .cs-activity-walkthrough article:first-child .cs-phone { width: 210px; }
 .cs-score { padding: 15px 13px; }
 .cs-score h3 { font-size: 20px; line-height: 28px; }
 .cs-score-track { height: 9px; margin: 16px 0 12px; }
 .cs-score p { font-size: 12px; line-height: 17px; }
 .cs-study-stats dt { font-size: 18px; line-height: 24px; }
 .cs-study-stats dd { font-size: 22px; line-height: 28px; }
 .cs-score-interpretation { min-height: 82px; padding: 12px; }
 .cs-score-interpretation h3 { font-size: 16px; line-height: 22px; }
 .cs-score-interpretation p { font-size: 12px; line-height: 16px; margin-top: 8px; }
 .cs-other-work > h2 { margin-bottom: 20px; }
 .cs-project-grid { grid-template-columns: 1fr; gap: 12px; }
 .cs-interview-grid {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-template-rows: none;
  gap: 12px;
 }
 .cs-strategy > .cs-problem h2 { font-size: 24px; line-height: 30px; }
 .cs-strategy > .cs-how-might-we, .cs-strategy > .cs-principles { margin-top: 20px; }
 .cs-study-layout { gap: 20px; margin-top: 20px; }
 .cs-main .cs-study-results > h2 + p { margin-top: 20px; }
 .cs-study-layout > .cs-score { min-height: 134.616px; padding: 15px 13px; }
 .cs-study-layout > .cs-score h3 { font-size: 20px; line-height: 28px; }
 .cs-study-layout > .cs-score p { font-size: 12px; line-height: 17px; }
 .cs-study-layout > .cs-score .cs-score-track { height: 9px; }
 .cs-study-layout > .cs-study-stats { flex-direction: column; gap: 16px; }
 .cs-study-layout .cs-study-stats dt { font-size: 18px; line-height: 24px; }
 .cs-study-layout .cs-study-stats dd { font-size: 20px; line-height: 26px; }
 .cs-study-layout > .cs-score-interpretation { min-height: 140.553px; padding: 12px 0; }
 .cs-study-layout .cs-score-interpretation h3 { font-size: 12px; line-height: 14px; }
 .cs-study-layout > .cs-score-interpretation p { font-size: 12px; line-height: 16px; margin-top: 12px; }
 .cs-section > .cs-copy + *, .cs-section > .cs-stack + * { margin-top: 20px; }
 .cs-overview > .cs-recognition { margin-top: 0; }
 .cs-personas .cs-figure + .cs-figure { margin-top: 20px; }
 .cs-competitors { margin-top: 20px; }
 .cs-competitors tbody tr { min-height: 288px; }
 .cs-competitors + .cs-copy { margin-top: 20px; }
 .cs-project-card h3 { font-size: 20px; line-height: 26px; }
 .cs-project-card p { font-size: 16px; line-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
 .cs-project-card img { transition: none; }
}

@media (min-width: 1200px) {
 .cs-interview-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 16px 24px;
 }
 .cs-interview-card { min-height: 0; padding: 16px; gap: 12px; }
}

/* Keep breakpoint-specific PNG sources in the original phone layout. */
.cs-home-walkthrough article > picture, .cs-activity-walkthrough article > picture {
 display: block;
 align-self: center;
 width: 210px;
 max-width: 100%;
}
@media (max-width: 767px) {
 .cs-home-walkthrough article > picture, .cs-activity-walkthrough article > picture { width: 158px; }
 .cs-activity-walkthrough article:first-child > picture { width: 210px; }
}

/* Use the shared portfolio shell, with caps for narrower intermediate widths. */
.master-case-study-page .home-brand,
.master-case-study-page .about-footer-icons a { color: inherit; }
.master-case-study-page .home-header img { display: block; vertical-align: middle; }
.master-case-study-page .home-header button { font-family: inherit; }
.master-case-study-page .home-menu-close { padding: 0; }
.master-case-study-page .home-mobile-parent { line-height: inherit; }
.master-case-study-page .home-nav-frame,
.master-case-study-page > .about-footer > .about-shell { max-width: calc(100% - 160px); }
.master-case-study-page > .side-nav { display: none; }
@media (max-width: 1199px) {
 .master-case-study-page .home-nav-frame,
 .master-case-study-page > .about-footer > .about-shell { max-width: calc(100% - 80px); }
}
@media (max-width: 767px) {
 .master-case-study-page .home-nav-frame,
 .master-case-study-page > .about-footer > .about-shell { max-width: calc(100% - 48px); }
 .master-case-study-page .home-mobile-menu { overflow-y: auto; overscroll-behavior-y: contain; }
}
@media (min-width: 1280px) {
 /* Keep the collapsed menu inside the viewport at its shared 42% anchor. */
 .master-case-study-page > .side-nav { display: block; max-height: calc(84vh - 48px); overflow-y: auto; }
 .master-case-study-page .mental-health-side-nav:is(:hover, :focus-within) { top: 50%; max-height: calc(100vh - 48px); }
 /* Match the shared hover expansion when navigating the section menu by keyboard. */
 .master-case-study-page .mental-health-side-nav:focus-within {
  width: 396px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px);
  overflow-y: auto; padding: 16px 24px; border: 1px solid #d9d9d9;
  border-radius: 12px; background: #f5f5f5; box-shadow: none; backdrop-filter: none;
 }
 .master-case-study-page .mental-health-side-nav:focus-within ul { gap: 16px; }
 .master-case-study-page .mental-health-side-nav:focus-within a {
  justify-content: flex-start; padding: 0; border-radius: 0; color: #8c8c8c;
  background: transparent; box-shadow: none; font-size: 16px; line-height: 20.8px;
  font-weight: 400; white-space: normal;
 }
 .master-case-study-page .mental-health-side-nav:focus-within a.side-nav-child { padding: 4px 20px; border-radius: 8px; line-height: 21px; }
 .master-case-study-page .mental-health-side-nav:focus-within a::before { display: none; }
 .master-case-study-page .mental-health-side-nav:focus-within span { opacity: 1; visibility: visible; width: auto; overflow: visible; transition: none; }
 .master-case-study-page .mental-health-side-nav:focus-within a:is(:hover, .is-parent-active, .is-active:not(.side-nav-child)) { color: #6155f5; background: transparent; box-shadow: none; font-weight: 500; }
 .master-case-study-page .mental-health-side-nav:focus-within a.side-nav-child.is-active { color: #595959; background: #f0f0f0; box-shadow: none; font-weight: 400; }
}
