/* Case study modal — Behance/Dribbble-style sheet over homepage */

html.cs-modal-open {
  overflow: hidden;
}

.cs-overlay {
  --cs-gutter: clamp(20px, 4vw, 48px);
  --cs-top-gap: clamp(14px, 2.8vh, 32px);
  --cs-panel-width: 90%;
  --cs-read-max: 105ch;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: var(--cs-top-gap) 0 0;
  margin: 0;
  box-sizing: border-box;
  background: rgba(12, 10, 8, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cs-overlay.is-opening {
  animation: cs-overlay-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-overlay.is-closing {
  animation: cs-overlay-out 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cs-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cs-overlay-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Chrome controls — shared close + TOC trigger */
.cs-chrome-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border, rgba(44, 40, 35, 0.2));
  border-radius: 8px;
  background: #fff;
  color: var(--ink-dark, #33302a);
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(44, 40, 35, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-chrome-btn:hover,
.cs-chrome-toc.is-open .cs-chrome-toc-trigger {
  background: var(--paper-card, #fcfbf7);
  border-color: rgba(90, 122, 138, 0.5);
  color: var(--ink, #2c2823);
  box-shadow:
    0 2px 8px rgba(90, 122, 138, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transform: scale(1.03);
}

.cs-chrome-btn:active {
  transform: scale(0.97);
  background: var(--paper-deep, #ede9df);
}

.cs-chrome-btn:focus-visible {
  outline: 2px solid rgba(90, 122, 138, 0.55);
  outline-offset: 2px;
}

/* Close — top-right of panel chrome */
.cs-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.cs-close-icon {
  font-family: var(--font-label);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin-top: -1px;
}

.cs-panel.is-opening .cs-close {
  animation: cs-close-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes cs-close-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cs-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: var(--cs-panel-width);
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - var(--cs-top-gap));
  border-radius: 14px 14px 0 0;
  background: var(--paper, #fcfbf7);
  box-shadow:
    0 -4px 40px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(44, 40, 35, 0.06);
  overflow: hidden;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.cs-panel.is-opening {
  animation: cs-panel-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cs-panel.is-closing {
  animation: cs-panel-out 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cs-panel-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cs-panel-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(28px) scale(0.975);
  }
}

/* Panel title bar */
.cs-chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--cs-gutter);
  border-bottom: 1px solid rgba(44, 40, 35, 0.1);
  background: var(--paper, #fcfbf7);
}

.cs-chrome-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-right: 8px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cs-chrome-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cs-chrome-toc {
  display: none;
  position: relative;
  min-width: 0;
}

.cs-chrome-toc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.cs-chrome-toc-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34vw;
}

.cs-chrome-toc-chevron {
  flex: 0 0 auto;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin-top: -1px;
  transition: transform 0.2s ease;
}

.cs-chrome-toc.is-open .cs-chrome-toc-chevron {
  transform: rotate(180deg);
}

.cs-chrome-toc-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: grid;
  gap: 2px;
  min-width: min(300px, calc(100vw - 32px));
  max-height: min(52vh, 360px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(44, 40, 35, 0.12);
  border-radius: 12px;
  background: rgba(252, 251, 247, 0.98);
  box-shadow:
    0 16px 40px rgba(44, 40, 35, 0.14),
    0 2px 8px rgba(44, 40, 35, 0.06);
  -webkit-overflow-scrolling: touch;
}

.cs-chrome-toc-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-mid);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.cs-chrome-toc-item:hover {
  background: rgba(44, 40, 35, 0.05);
  color: var(--ink-dark);
}

.cs-chrome-toc-item.is-active {
  background: rgba(90, 122, 138, 0.1);
  color: var(--ink-dark);
  font-weight: 500;
}

/* Nested subsection entries — smaller than the section (narrative) items */
.cs-chrome-toc-item.is-sub {
  font-size: 11px;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 26px;
  color: var(--ink-mute);
}

.cs-chrome-toc-item.is-sub:hover,
.cs-chrome-toc-item.is-sub.is-active {
  color: var(--ink-dark);
}

/* Project switcher — mobile-only dropdown at the left of the window header */
.cs-chrome-project {
  display: none;
  position: relative;
  min-width: 0;
}

.cs-chrome-project-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.cs-chrome-project-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
  font-weight: 500;
}

.cs-chrome-project.is-open .cs-chrome-project-trigger {
  background: var(--paper-card, #fcfbf7);
  border-color: rgba(90, 122, 138, 0.5);
  color: var(--ink, #2c2823);
}

.cs-chrome-project.is-open .cs-chrome-toc-chevron {
  transform: rotate(180deg);
}

.cs-chrome-project-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 2px;
  min-width: min(260px, calc(100vw - 32px));
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(44, 40, 35, 0.12);
  border-radius: 12px;
  background: rgba(252, 251, 247, 0.98);
  box-shadow:
    0 16px 40px rgba(44, 40, 35, 0.14),
    0 2px 8px rgba(44, 40, 35, 0.06);
  -webkit-overflow-scrolling: touch;
}

.cs-label-btn {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.cs-label-btn:hover {
  color: var(--ink-dark);
}

.cs-label-btn.is-emphasis {
  color: var(--ink-dark);
  font-weight: 500;
}

.cs-label-btn:focus-visible {
  outline: 2px solid rgba(90, 122, 138, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

.cs-scroll-layout {
  width: 100%;
  box-sizing: border-box;
}

.cs-toc {
  display: none;
  position: relative;
  z-index: 3;
}

.cs-toc-label {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.cs-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-toc-link {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-toc-link:hover {
  color: var(--ink-dark);
}

.cs-toc-link.is-active {
  color: var(--ink-dark);
  border-left-color: var(--accent, #5a7a8a);
  font-weight: 500;
}

/* Nested subsection entries — smaller than the section (narrative) items */
.cs-toc-link-sub {
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-mute);
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 22px;
}

.cs-toc-link-sub:hover {
  color: var(--ink-dark);
}

.cs-toc-link-sub.is-active {
  color: var(--ink-dark);
  font-weight: 500;
}

.cs-toc-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(44, 40, 35, 0.08);
}

.cs-toc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #231d15;
  background: transparent;
  border: 1px solid rgba(35, 29, 21, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.2;
}

.cs-toc-tag-icon {
  display: inline-flex;
  color: #231d15;
  flex-shrink: 0;
  opacity: 0.9;
}

.cs-panel .cs-hero,
.cs-panel .cs-highlights,
.cs-panel .cs-quotes,
.cs-panel .cs-impacts,
.cs-panel .cs-section {
  scroll-margin-top: 16px;
}

/* Centered read column inside the window */
.cs-content {
  width: 100%;
  min-width: 0;
  max-width: var(--cs-read-max);
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 40px) var(--cs-gutter) clamp(32px, 5vw, 56px);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Hero thumbnail — flows with case study content */
.cs-panel .cs-hero-media {
  width: 100%;
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: none;
}

.cs-panel .cs-hero-media .cs-hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center top;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 8px;
}

.cs-panel .cs-hero-media .cs-hero-img.is-gif {
  object-fit: contain;
  background: var(--paper-deep, #ede9df);
}

.cs-panel-scroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: visible;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.cs-panel .cs-hero,
.cs-panel .cs-highlights,
.cs-panel .cs-quotes,
.cs-panel .cs-impacts,
.cs-panel .cs-body,
.cs-panel .cs-nav-footer {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.cs-panel .cs-hero {
  padding-top: 0;
}

.cs-product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin: clamp(8px, 2vh, 16px) 0 clamp(40px, 6vh, 56px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(44, 40, 35, 0.08);
  border-radius: 12px;
  background: rgba(252, 251, 247, 0.72);
}

.cs-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin-top: 4px;
}

.cs-intro-split-visual {
  min-width: 0;
}

.cs-intro-split-figure {
  margin: 0 auto;
  max-width: 320px;
}

.cs-intro-split-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
}

.cs-intro-split-copy {
  min-width: 0;
}

.cs-intro-split-footnote {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.cs-intro-split .cs-card-deck,
.cs-intro-split-deck {
  max-width: 320px;
  height: 320px;
  margin: 0 auto;
}

.cs-intro-split .cs-card-deck-item img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: top center;
}

.cs-intro-split .cs-card-deck-item.is-raised img {
  max-height: 280px;
}

.cs-subsection-visual:has(.cs-intro-split) {
  margin-bottom: 0;
}

.cs-product-intro-visual {
  min-width: 0;
}

.cs-card-deck {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: 200px;
  overflow: visible;
}

.cs-card-deck.is-interactive .cs-card-deck-item {
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    top 0.28s ease,
    left 0.28s ease;
}

.cs-card-deck-item {
  position: absolute;
  width: 72%;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(44, 40, 35, 0.1);
  box-shadow: 0 8px 22px rgba(44, 40, 35, 0.1);
  background: #fff;
  z-index: calc(var(--deck-index, 0) + 1);
  top: calc(8% + (var(--deck-index, 0) * 1.5%));
  left: calc(var(--deck-index, 0) * 4%);
  transform: rotate(calc(-6deg + (var(--deck-index, 0) * 2.5deg)));
}

.cs-card-deck-item.is-raised {
  z-index: 30;
  top: 0;
  left: calc(var(--deck-index, 0) * 2%);
  transform: rotate(0deg) translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px rgba(44, 40, 35, 0.18);
}

.cs-subsection-visual .cs-card-deck {
  max-width: 280px;
  height: 168px;
  margin: 4px auto 0;
}

.cs-subsection-visual:has(.cs-card-deck) {
  margin-bottom: 12px;
}

.cs-card-deck-item img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: top center;
}

.cs-subsection-visual .cs-card-deck-item img {
  height: 104px;
}

.cs-card-deck-item.is-raised img {
  height: 128px;
}

.cs-subsection-visual .cs-card-deck-item.is-raised img {
  height: 116px;
}

.cs-product-intro-copy {
  min-width: 0;
}

.cs-product-intro-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cs-narrative-color, var(--accent, #5a7a8a));
  margin: 0 0 14px;
}

.cs-product-intro-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-dark);
  margin: 0 0 20px;
  max-width: 36ch;
}

.cs-product-intro-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
  max-width: 38ch;
}

.cs-panel .cs-highlights {
  padding: 24px 0;
}

.cs-panel .cs-impacts {
  padding: clamp(40px, 6vh, 64px) 0 24px;
}

.cs-panel .cs-impacts .cs-section-title {
  margin-top: 0;
}

.cs-impacts-subtitle {
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--cs-narrative-color, var(--accent, #5a7a8a));
  margin: 0 0 20px;
}

.cs-panel .cs-impacts .cs-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin-bottom: 24px;
}

.cs-panel .cs-impacts .cs-quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cs-panel .cs-highlight {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-panel .cs-quotes {
  padding: 0 0 24px;
  display: grid;
  gap: 16px;
}

.cs-panel .cs-quote {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cs-panel .cs-body {
  padding: clamp(40px, 6vh, 64px) 0 0;
}

.cs-panel .cs-section {
  padding: 0;
  border-top: none;
}

.cs-panel .cs-section + .cs-section {
  margin-top: clamp(48px, 7vh, 80px);
}

.cs-panel .cs-section .cs-block-p:last-child {
  margin-bottom: 0;
}

.cs-panel .cs-section .cs-gallery {
  margin-top: 16px;
  margin-bottom: 0;
}

.cs-panel .cs-nav-footer {
  margin-top: 32px;
  padding-top: 28px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(44, 40, 35, 0.12);
}

.cs-panel .cs-block-p,
.cs-panel .cs-block-ul,
.cs-panel .cs-block-ol,
.cs-panel .cs-subtitle,
.cs-panel .cs-disclaimer,
.cs-panel .cs-title,
.cs-panel .cs-section-title,
.cs-panel .cs-quote-text {
  max-width: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-panel .cs-meta {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.cs-panel .cs-meta-item dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-panel .cs-nav-link {
  cursor: pointer;
  background: transparent;
  font: inherit;
}

.cs-page {
  padding-bottom: 48px;
}

.cs-hero {
  padding: 48px var(--page-gutter, 48px) 32px;
  max-width: var(--site-max, 1280px);
  margin: 0 auto;
}

.cs-hero-img {
  width: 100%;
  max-height: min(52vh, 480px);
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(44, 40, 35, 0.1);
  margin-bottom: 28px;
  display: block;
}

.cs-hero-img.is-gif {
  object-fit: contain;
  background: #f5f2ea;
  max-height: min(44vh, 400px);
}

.cs-kicker {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.cs-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
  margin: 0 0 10px;
}

.cs-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 24px;
  max-width: 78ch;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(44, 40, 35, 0.12);
  border-bottom: 1px solid rgba(44, 40, 35, 0.12);
  margin-bottom: 8px;
}

.cs-meta-item dt {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-meta-icon {
  display: inline-flex;
  color: var(--accent, #5a7a8a);
  flex-shrink: 0;
}

.cs-meta-item dd {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.cs-meta-year {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.cs-disclaimer {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 16px 0 0;
  max-width: 90ch;
}

.cs-highlights {
  max-width: var(--site-max, 1280px);
  margin: 0 auto;
  padding: 28px var(--page-gutter, 48px);
}

.cs-highlights-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--accent, #5a7a8a);
  margin: 0 0 16px;
}

.cs-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.cs-highlight {
  padding: 20px 22px;
  border: 1px solid rgba(44, 40, 35, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(44, 40, 35, 0.06);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cs-highlight-icon {
  display: inline-flex;
  color: var(--ink-dark);
  margin-bottom: 12px;
}

.cs-highlight-title {
  margin: 0 0 8px;
}

.cs-highlight-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
}

.cs-block-figure {
  margin: 0;
  max-width: 100%;
}

.cs-figure-frame {
  --cs-figure-frame-border: rgba(44, 40, 35, 0.1);
  --cs-figure-frame-radius: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--cs-figure-frame-border);
  border-radius: var(--cs-figure-frame-radius);
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.cs-figure-frame.has-custom-bg {
  --cs-figure-frame-pad-y: clamp(20px, 3.5vw, 36px);
  --cs-figure-frame-pad-x: clamp(20px, 3vw, 40px);
  padding: var(--cs-figure-frame-pad-y) var(--cs-figure-frame-pad-x) 0;
  background: var(--cs-figure-frame-bg);
  border-color: color-mix(in srgb, var(--cs-figure-frame-bg) 72%, rgba(44, 40, 35, 0.22));
}

.cs-block-figure.has-editorial-caption.is-unframed .cs-figure-frame {
  border: none;
  border-radius: 0;
}

.cs-figure-media-clip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.cs-figure-frame .cs-block-img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
}

.cs-figure-desc,
.cs-gallery-desc {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 12px 16px;
  border-top: 1px solid var(--cs-figure-frame-border, var(--cs-gallery-frame-border));
  background: rgba(252, 251, 247, 0.98);
}

.cs-figure-desc {
  width: 100%;
  margin: 0;
}

.cs-figure-frame.has-custom-bg .cs-figure-desc {
  width: calc(100% + (var(--cs-figure-frame-pad-x) * 2));
  margin: 0 calc(var(--cs-figure-frame-pad-x) * -1);
}

.cs-figure-desc p,
.cs-gallery-desc p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  text-align: left;
}

.cs-block-figure.has-frame-bg {
  padding: clamp(20px, 3.5vw, 36px);
  border-radius: 12px;
  border: 1px solid rgba(90, 122, 138, 0.28);
  background: var(--cs-figure-frame-bg, #eef4f8);
  box-sizing: border-box;
}

.cs-block-figure.has-frame-bg .cs-block-img {
  border: none;
  background: transparent;
}

.cs-block-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(44, 40, 35, 0.1);
}

.cs-block-figure.is-unframed .cs-block-img {
  border: none;
  border-radius: 0;
  background: transparent;
}

.cs-showcase {
  margin: 0;
  width: 100%;
}

.cs-showcase-unit {
  position: relative;
  border: 1px solid rgba(90, 122, 138, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(72% 64% at 18% 14%, rgba(90, 154, 148, 0.14), transparent 72%),
    radial-gradient(58% 52% at 84% 82%, rgba(44, 40, 35, 0.06), transparent 72%),
    #f3f0e9;
  overflow: hidden;
}

.cs-showcase-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 14px 16px;
}

.cs-showcase-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(44, 40, 35, 0.12);
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dark);
}

.cs-showcase-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(48px, 8vw, 72px) clamp(24px, 5vw, 48px) clamp(32px, 6vw, 56px);
}

.cs-showcase-stage.is-screen {
  padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 36px) clamp(24px, 4vw, 32px);
  background: #fff;
}

.cs-showcase-screen-img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
}

.cs-showcase-image .cs-showcase-stage.is-screen {
  padding: clamp(20px, 3.5vw, 32px) clamp(16px, 3vw, 24px) clamp(20px, 3.5vw, 28px);
}

.cs-showcase-image .cs-showcase-screen-img {
  width: min(100%, 720px);
}

.cs-video-showcase {
  margin: 0;
  width: 100%;
}

.cs-video-showcase .cs-showcase-stage.is-video {
  padding: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 36px) clamp(24px, 4vw, 32px);
  background: #fff;
}

.cs-video-embed {
  position: relative;
  width: min(100%, 960px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.cs-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-showcase-desc {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(44, 40, 35, 0.1);
  background: rgba(255, 255, 255, 0.42);
}

.cs-showcase-desc p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cs-phone-showcase {
  margin: 0;
  width: 100%;
}

.cs-kiosk-showcase {
  margin: 0;
  width: 100%;
}

.cs-kiosk-frame {
  width: min(480px, 92vw);
  padding: 16px 16px 0;
  border-radius: 20px 20px 12px 12px;
  background: linear-gradient(165deg, #4a4642 0%, #2a2826 100%);
  box-shadow:
    0 28px 64px rgba(44, 40, 35, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cs-kiosk-screen {
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-kiosk-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cs-kiosk-base {
  width: 36%;
  height: 14px;
  margin: 12px auto 0;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #3a3632 0%, #1f1d1b 100%);
  box-shadow: 0 6px 16px rgba(44, 40, 35, 0.18);
}

.cs-phone-frame {
  width: min(272px, 58vw);
  padding: 11px 9px 13px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3f3b37 0%, #1f1d1b 100%);
  box-shadow:
    0 24px 56px rgba(44, 40, 35, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cs-phone-screen {
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.cs-phone-screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cs-gallery {
  --cs-gallery-media-h: clamp(280px, 52vh, 540px);
  --cs-gallery-chip-h: 38px;
  --cs-gallery-slide-gap: 48px;
  --cs-gallery-btn-inset: 12px;
  --cs-gallery-frame-bg: #eef4f8;
  --cs-gallery-frame-border: rgba(90, 122, 138, 0.28);
  --cs-gallery-frame-pad-y: clamp(28px, 4.5vw, 52px);
  --cs-gallery-frame-pad-x: clamp(24px, 4vw, 48px);
  --cs-gallery-frame-radius: 12px;
  position: relative;
  margin: 0;
  width: 100%;
}

.cs-gallery-viewport {
  position: relative;
  min-width: 0;
  padding: 0 2px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Swipe/drag affordance — vertical page scroll still passes through */
.cs-gallery-viewport.is-swipeable {
  touch-action: pan-y;
  cursor: grab;
}

.cs-gallery-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cs-gallery-viewport.is-swipeable .cs-gallery-img,
.cs-gallery-viewport.is-swipeable .cs-phone-screen-img {
  -webkit-user-drag: none;
  user-select: none;
}

.cs-gallery-track {
  display: flex;
  gap: var(--cs-gallery-slide-gap);
  padding: 0;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cs-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  min-height: var(--cs-gallery-media-h);
}

.cs-gallery-media {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: var(--cs-gallery-media-h);
  height: var(--cs-gallery-media-h);
  box-sizing: border-box;
  padding: var(--cs-gallery-frame-pad-y) var(--cs-gallery-frame-pad-x) 0;
  border: none;
  border-radius: var(--cs-gallery-frame-radius);
  background: var(--cs-gallery-frame-bg);
  box-shadow: inset 0 0 0 1px var(--cs-gallery-frame-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cs-gallery-media.has-slide-bg {
  background: var(--cs-gallery-frame-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-gallery-frame-bg) 72%, rgba(44, 40, 35, 0.22));
}

.cs-gallery-tag {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  left: clamp(12px, 2vw, 18px);
  z-index: 4;
  max-width: min(320px, 72%);
  pointer-events: none;
}

.cs-gallery-chip {
  display: inline-block;
  min-height: var(--cs-gallery-chip-h);
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dark);
  padding: 10px 12px;
  margin: 0;
  border: 1px solid rgba(44, 40, 35, 0.12);
  border-radius: 8px;
  background: rgba(252, 251, 247, 0.96);
  box-shadow: 0 4px 16px rgba(44, 40, 35, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.cs-gallery-caption {
  display: none;
}

.cs-gallery-desc {
  width: calc(100% + (var(--cs-gallery-frame-pad-x) * 2));
  margin: 0 calc(var(--cs-gallery-frame-pad-x) * -1);
}

.cs-gallery-desc p {
  margin: 0;
}

.cs-gallery-media.is-unframed {
  padding: var(--cs-gallery-frame-pad-y) var(--cs-gallery-frame-pad-x) 0;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: var(--cs-gallery-frame-radius);
  background: transparent;
  min-height: var(--cs-gallery-media-h);
  height: var(--cs-gallery-media-h);
}

.cs-gallery-media.is-unframed .cs-gallery-desc {
  border-top-color: rgba(44, 40, 35, 0.1);
}

.cs-gallery-media-clip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.cs-gallery-media.is-unframed .cs-gallery-media-clip {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
}

.cs-gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.cs-gallery-media.is-unframed .cs-gallery-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.cs-gallery-img.is-gif {
  object-fit: contain;
}

.cs-gallery-controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--cs-gallery-btn-inset);
  pointer-events: none;
  z-index: 6;
}

.cs-gallery-btn {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(44, 40, 35, 0.14);
  border-radius: 10px;
  background: rgba(252, 251, 247, 0.98);
  color: var(--ink-dark);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 20px rgba(44, 40, 35, 0.16),
    0 2px 6px rgba(44, 40, 35, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.cs-gallery-btn:hover:not(:disabled) {
  border-color: rgba(90, 122, 138, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(90, 122, 138, 0.2),
    0 4px 10px rgba(44, 40, 35, 0.1);
  transform: translateY(-1px);
}

.cs-gallery-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.cs-gallery-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.cs-gallery-btn-key {
  font-family: var(--font-label);
  font-size: 22px;
  line-height: 1;
  margin-top: -1px;
}

.cs-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.cs-feature-card {
  --cs-card-icon-color: var(--ink-dark, #2c2823);
  padding: 16px 18px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 8px;
  background: var(--paper-card, #fcfbf7);
}

.cs-feature-icon {
  display: inline-flex;
  color: var(--cs-card-icon-color);
  margin-bottom: 8px;
}

.cs-feature-title {
  margin-bottom: 6px;
}

.cs-feature-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.cs-list-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  width: min(100%, 52rem);
}

.cs-list-card {
  --cs-card-icon-color: #5a9a94;
  padding: 18px 20px;
  border: 1px solid rgba(90, 154, 148, 0.16);
  border-radius: 10px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 154, 148, 0.07), transparent 72%),
    var(--paper-card, #fcfbf7);
}

.cs-list-card-title {
  margin-bottom: 8px;
  color: var(--cs-narrative-color, var(--accent, #5a7a8a));
}

.cs-list-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

.cs-approach-callout {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 12px;
  border: 1px solid rgba(90, 154, 148, 0.24);
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 154, 148, 0.14), transparent 72%),
    radial-gradient(58% 52% at 84% 82%, rgba(44, 40, 35, 0.04), transparent 72%),
    #f3f8f7;
}

.cs-approach-callout-head {
  padding: 0;
  border: 0;
  background: transparent;
}

.cs-approach-callout-head .cs-callout-head {
  margin-bottom: 8px;
}

.cs-approach-callout-head .cs-callout-text {
  max-width: none;
}

.cs-approach-callout .cs-list-card-grid {
  width: 100%;
}

.cs-approach-callout .cs-list-card {
  background: #fff;
  border-color: rgba(90, 154, 148, 0.18);
}

/* Collapsible "My approach" — closed by default, expands on click */
.cs-approach-callout-toggle {
  width: 100%;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cs-approach-callout-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-approach-callout-head .cs-approach-callout-headline .cs-callout-head {
  margin-bottom: 0;
}

.cs-approach-callout-toggle .cs-callout-text {
  margin-top: 8px;
}

.cs-approach-callout-chevron {
  flex: 0 0 auto;
  font-family: var(--font-label);
  font-size: 14px;
  line-height: 1;
  color: var(--accent, #5a7a8a);
  transition: transform 0.24s ease;
}

.cs-approach-callout.is-open .cs-approach-callout-chevron {
  transform: rotate(180deg);
}

/* Approach cards: icon + title left-aligned, description below */
.cs-approach-callout .cs-list-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
}

.cs-list-card-icon {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  color: var(--cs-card-icon-color);
}

.cs-approach-callout .cs-list-card > .cs-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.cs-approach-callout .cs-list-card > .cs-card-title:first-child {
  grid-column: 1 / -1;
}

.cs-approach-callout .cs-list-card-text {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.cs-problem-reframing {
  display: grid;
  gap: clamp(20px, 3vh, 28px);
  max-width: 52rem;
}

.cs-reframing-accordion {
  border: 1px solid rgba(90, 154, 148, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 154, 148, 0.06), transparent 72%),
    #f8f6f2;
  overflow: hidden;
}

.cs-reframing-accordion-bar {
  padding: 16px 18px 0;
}

.cs-reframing-accordion-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-dark);
}

.cs-reframing-accordion-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.cs-reframing-accordion-panel {
  padding: 10px 18px 18px;
}

.cs-reframing-accordion-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
}

.cs-reframing-bridge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
}

.cs-reframing-arrow {
  width: 40px;
  height: auto;
  color: var(--ink-dark);
  margin-top: 2px;
}

.cs-reframing-bridge-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 42ch;
}

.cs-reframing-findings {
  display: grid;
  gap: 12px;
}

.cs-reframing-finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 12px;
  background: #fff;
}

.cs-reframing-finding-icon {
  display: inline-flex;
  color: var(--ink-dark);
  margin-top: 2px;
}

.cs-reframing-finding-title {
  margin-bottom: 8px;
}

.cs-reframing-finding-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
}

.cs-reframing-finding.is-quote .cs-reframing-finding-text {
  color: var(--ink-soft);
}

.cs-callout {
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.cs-callout.is-problem {
  border-color: rgba(184, 94, 62, 0.22);
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(184, 94, 62, 0.08), transparent 72%),
    #fdf8f5;
}

.cs-callout.is-solution {
  border-color: rgba(90, 122, 138, 0.22);
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 122, 138, 0.1), transparent 72%),
    #f6fafc;
}

.cs-callout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cs-callout-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.cs-callout.is-problem .cs-callout-icon {
  color: #a85f42;
}

.cs-callout.is-solution .cs-callout-icon {
  color: var(--accent, #5a7a8a);
}

.cs-callout-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cs-callout.is-problem .cs-callout-label {
  color: #a85f42;
}

.cs-callout.is-solution .cs-callout-label {
  color: var(--accent, #5a7a8a);
}

.cs-callout-title {
  margin-bottom: 8px;
}

.cs-callout-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
  max-width: 72ch;
}

.cs-callout-list {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.cs-callout-list li {
  margin-bottom: 6px;
}

.cs-callout-list li:last-child {
  margin-bottom: 0;
}

.cs-problem-solution-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cs-feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 36px);
}

.cs-feature-split-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(44, 40, 35, 0.12);
}

.cs-feature-split-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.cs-feature-split-figure {
  margin: 0;
}

.cs-feature-split-figure .cs-block-img {
  border-radius: 8px;
}

.cs-component-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.cs-component-card {
  padding: 18px 20px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 10px;
  background: var(--paper-card, #fcfbf7);
}

.cs-component-card-title {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(44, 40, 35, 0.12);
}

.cs-component-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.cs-component-card-figure {
  margin: 14px 0 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(44, 40, 35, 0.08);
  background: #fff;
}

.cs-component-card-figure .cs-block-img {
  width: 100%;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Shared card title — all case-study cards except quotes */
.cs-card-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-dark);
  margin: 0 0 8px;
}

.cs-info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.cs-info-card {
  --cs-card-icon-color: #a85f42;
  padding: 18px 20px;
  border: 1px solid rgba(184, 94, 62, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(184, 94, 62, 0.07), transparent 72%),
    #fdf8f5;
}

.cs-info-card-icon {
  display: inline-flex;
  color: var(--cs-card-icon-color);
  margin-bottom: 10px;
}

.cs-info-card-title {
  margin-bottom: 6px;
}

.cs-info-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.cs-info-card-grid.is-positive .cs-info-card {
  --cs-card-icon-color: #5a7a8a;
  border: 1px solid rgba(90, 122, 138, 0.14);
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 122, 138, 0.08), transparent 72%),
    #f6fafc;
}

.cs-info-card-grid.is-positive .cs-info-card-icon {
  color: var(--cs-card-icon-color);
}

.cs-info-card-grid.is-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-info-card-grid.is-chips .cs-info-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border-style: dashed;
}

.cs-info-card-grid.is-chips .cs-info-card-icon {
  display: inline-flex;
  margin: 0;
  color: var(--cs-card-icon-color, #a85f42);
  flex-shrink: 0;
}

.cs-info-card-grid.is-chips .cs-info-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cs-problem-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.cs-problem-card-grid.is-negative {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.cs-problem-card-grid.is-negative.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-problem-card {
  --cs-card-icon-color: #5a7a8a;
  padding: 20px 22px;
  border: 1px solid rgba(90, 122, 138, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(90, 122, 138, 0.08), transparent 72%),
    #f6fafc;
}

.cs-problem-card-grid.is-negative .cs-problem-card {
  --cs-card-icon-color: #a85f42;
  padding: 16px 18px;
  border: 1px solid rgba(184, 94, 62, 0.22);
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(184, 94, 62, 0.08), transparent 72%),
    #fdf8f5;
}

.cs-problem-card-icon {
  display: inline-flex;
  color: var(--cs-card-icon-color);
  margin-bottom: 12px;
}

.cs-problem-card-grid.is-negative .cs-problem-card-icon {
  margin-bottom: 10px;
}

.cs-problem-card-grid.is-negative .cs-problem-card-title {
  color: var(--ink-dark);
}

.cs-problem-card-title {
  margin-bottom: 8px;
}

.cs-problem-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

.cs-challenge {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vh, 28px);
}

.cs-subsection-visual .cs-block-figure.is-half-width {
  width: min(50%, 36rem);
  max-width: 36rem;
}

.cs-project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
}

.cs-project-overview-card {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 40, 35, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.cs-project-overview-img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-project-overview-footnote {
  margin: 0;
  padding: 14px 18px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-mid);
  border-top: 1px solid rgba(44, 40, 35, 0.08);
}

.cs-project-overview-meta {
  margin: 0;
  padding: 4px 0 0 18px;
  border-left: 3px solid var(--cs-narrative-color, var(--accent, #5a7a8a));
}

.cs-project-overview-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.cs-project-overview-row {
  display: grid;
  gap: 4px;
}

.cs-project-overview-row dt {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.cs-project-overview-row dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-dark);
}

.cs-project-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(44, 40, 35, 0.1);
}

.cs-project-overview-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #231d15;
  background: transparent;
  border: 1px solid rgba(35, 29, 21, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
}

.cs-project-overview-tag-icon {
  display: inline-flex;
}

.cs-subsection.has-problem-issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  column-gap: clamp(24px, 4vw, 40px);
  row-gap: clamp(20px, 3vw, 28px);
}

.cs-subsection.has-problem-issue .cs-subsection-intro {
  grid-column: 1 / -1;
}

.cs-subsection.has-problem-issue .cs-subsection-copy {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
  align-self: start;
}

.cs-subsection.has-problem-issue .cs-subsection-copy .cs-subsection-body {
  margin-top: 0;
}

.cs-problem-issue-quotes .cs-quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cs-problem-issue-quotes .cs-quote {
  padding: 12px 14px;
  border: 1px dashed rgba(44, 40, 35, 0.22);
  background: #fff;
}

.cs-problem-issue-quotes .cs-quote-text {
  font-size: 13px;
  line-height: 1.48;
}

.cs-subsection.has-problem-issue .cs-subsection-visual,
.cs-subsection.has-problem-issue .cs-problem-issue {
  display: contents;
}

.cs-problem-issue-figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

.cs-problem-issue-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: grayscale(100%);
}

.cs-problem-issue-caption {
  margin: 8px 0 0;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}

.cs-problem-issue-points {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.cs-problem-issue-point {
  display: grid;
  gap: 8px;
}

.cs-problem-issue-card {
  padding: 16px 18px;
  border: 1px solid rgba(184, 94, 62, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(184, 94, 62, 0.08), transparent 72%),
    #fdf8f5;
}

.cs-problem-issue-card .cs-problem-issue-title {
  color: var(--ink-dark);
}

.cs-problem-issue-card .cs-problem-issue-title.is-discovery {
  color: #231d15;
  font-weight: 650;
}

.cs-problem-issue-card.is-full-width {
  grid-column: 1 / -1;
}

.cs-problem-issue-card .cs-problem-issue-text {
  color: var(--ink-mid);
}

.cs-subsection.has-side-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 44%);
  column-gap: clamp(24px, 4vw, 40px);
  row-gap: 14px;
  align-items: start;
}

.cs-subsection.has-side-image .cs-subsection-intro {
  grid-column: 1 / -1;
}

.cs-subsection.has-side-image .cs-subsection-copy {
  grid-column: 1;
  display: grid;
  gap: 12px;
}

.cs-subsection.has-side-image .cs-subsection-copy .cs-subsection-body {
  margin-top: 0;
}

.cs-subsection.has-side-image .cs-subsection-visual,
.cs-subsection.has-side-image .cs-side-image {
  display: contents;
}

.cs-side-image {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: start;
}

.cs-side-image-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  background: #fff;
}

.cs-problem-issue-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.cs-problem-issue-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cs-narrative-color, var(--accent, #5a7a8a));
}

.cs-problem-issue-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mid);
}

.cs-challenge.is-compact {
  width: 100%;
  max-width: 52rem;
}

.cs-challenge.is-compact .cs-challenge-callout {
  width: 100%;
  max-width: none;
}

.cs-challenge.is-compact .cs-challenge-split.is-quotes-only {
  width: 100%;
  max-width: none;
}

.cs-challenge-callout {
  margin: 0;
  max-width: none;
  width: 100%;
  padding: 16px 18px;
}

.cs-challenge-callout .cs-callout-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.45;
  color: var(--ink-dark);
}

.cs-challenge-callout.is-problem .cs-callout-label {
  color: var(--ink-dark);
}

.cs-challenge-callout .cs-callout-label.is-discovery {
  color: #231d15;
  font-weight: 650;
}

.cs-challenge-lead {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
  max-width: 72ch;
}

.cs-challenge-split {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  margin: 0;
}

.cs-challenge-split.is-quotes-only {
  grid-template-columns: 1fr;
}

.cs-challenge-split.is-quotes-only .cs-challenge-quotes {
  width: 100%;
}

.cs-challenge-split.is-quotes-only .cs-challenge-quotes .cs-quotes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
}

.cs-challenge-split.is-quotes-only .cs-challenge-quotes .cs-quote {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-challenge-before {
  margin: 0;
  min-width: 0;
}

.cs-challenge-before-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  box-shadow: 0 8px 24px rgba(44, 40, 35, 0.08);
}

.cs-challenge-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.cs-challenge-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cs-challenge-point-icon {
  display: inline-flex;
  color: #a85f42;
  margin-top: 2px;
}

.cs-challenge-point-title {
  margin-bottom: 6px;
}

.cs-challenge-point-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

.cs-challenge-quotes {
  min-width: 0;
}

.cs-challenge-quotes .cs-quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cs-challenge-quotes .cs-quote {
  padding: 16px 18px 14px;
  border: 1px dashed rgba(44, 40, 35, 0.22);
  background: #fff;
}

.cs-challenge-quotes .cs-quote-text {
  font-size: 14px;
  line-height: 1.5;
}

.cs-block-narrative {
  font-family: var(--font-head);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  /* Dedicated AAA-compliant tone (>=7:1 on paper) so the narrative copy stays
     legible while decorative accents keep their brighter hue. */
  color: var(--cs-narrative-text, #34474e);
  margin: 0 0 18px;
  max-width: 72ch;
}

.cs-panel.has-narrative-purple {
  --cs-narrative-color: #a487dc;
  --cs-narrative-text: #6033b6;
  --accent: #a487dc;
}

.cs-panel.has-narrative-teal {
  --cs-narrative-color: #5a9a94;
  --cs-narrative-text: #335754;
  --accent: #5a9a94;
}

.cs-panel.has-narrative-amber {
  --cs-narrative-color: #e8943a;
  --cs-narrative-text: #78440d;
  --accent: #e8943a;
}

.cs-panel.has-narrative-green {
  --cs-narrative-color: #27763b;
  --cs-narrative-text: #1e5d2e;
  --accent: #27763b;
}

.cs-panel.has-narrative-amber .cs-showcase-unit {
  border-color: rgba(232, 148, 58, 0.28);
  background:
    radial-gradient(72% 64% at 18% 14%, rgba(232, 148, 58, 0.14), transparent 72%),
    radial-gradient(58% 52% at 84% 82%, rgba(44, 40, 35, 0.06), transparent 72%),
    #f3f0e9;
}

.cs-panel.has-narrative-amber .cs-gallery {
  --cs-gallery-frame-pad-y: 0;
  --cs-gallery-frame-pad-x: 0;
}

.cs-panel.has-narrative-green .cs-showcase-unit {
  border-color: rgba(39, 118, 59, 0.28);
  background:
    radial-gradient(72% 64% at 18% 14%, rgba(39, 118, 59, 0.14), transparent 72%),
    radial-gradient(58% 52% at 84% 82%, rgba(44, 40, 35, 0.06), transparent 72%),
    #f3f0e9;
}

.cs-panel.has-narrative-green .cs-gallery {
  --cs-gallery-frame-pad-y: 0;
  --cs-gallery-frame-pad-x: 0;
}

.cs-panel.has-narrative-brown {
  --cs-narrative-color: #b0936e;
  --cs-narrative-text: #624e35;
  --accent: #b0936e;
}

.cs-panel.has-narrative-brown .cs-showcase-unit {
  border-color: rgba(176, 147, 110, 0.24);
  background:
    radial-gradient(72% 64% at 18% 14%, rgba(176, 147, 110, 0.1), transparent 72%),
    radial-gradient(58% 52% at 84% 82%, rgba(44, 40, 35, 0.05), transparent 72%),
    #f8f5f0;
}

.cs-panel.has-narrative-brown .cs-gallery {
  --cs-gallery-frame-pad-y: 0;
  --cs-gallery-frame-pad-x: 0;
}

.cs-gallery.is-phone-frame .cs-gallery-media:not(.is-unframed) {
  height: auto;
  min-height: var(--cs-gallery-media-h);
  max-height: none;
}

.cs-gallery.is-phone-frame .cs-gallery-media-clip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(36px, 6vw, 56px);
}

.cs-gallery.is-phone-frame .cs-gallery-media-clip .cs-phone-frame {
  flex: 0 0 auto;
  width: min(228px, 44vw);
  margin-inline: auto;
}

.cs-gallery.is-phone-frame .cs-phone-screen-img {
  object-fit: contain;
  object-position: center center;
}

.cs-gallery.is-phone-frame .cs-gallery-media.is-unframed {
  padding: 0;
  height: auto;
  min-height: var(--cs-gallery-media-h);
  border: none;
  border-radius: var(--cs-gallery-frame-radius);
  background: var(--cs-gallery-frame-bg);
  box-shadow: inset 0 0 0 1px var(--cs-gallery-frame-border);
}

.cs-gallery.is-phone-frame .cs-gallery-media.is-unframed.has-custom-bg {
  box-shadow: inset 0 0 0 1px rgba(44, 40, 35, 0.1);
}

.cs-gallery.is-phone-frame .cs-gallery-media.is-unframed .cs-gallery-media-clip {
  padding: 0;
  overflow: hidden;
  background: var(--cs-gallery-frame-bg, transparent);
}

.cs-gallery.is-phone-frame .cs-gallery-media.is-unframed .cs-gallery-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

.cs-figure-frame.has-custom-bg .cs-block-img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-position: center center;
}

.cs-gallery.is-phone-frame .cs-gallery-img {
  position: static;
  width: auto;
  height: auto;
  max-height: none;
}

.cs-gallery.is-caption-stack .cs-gallery-slide {
  display: block;
  min-height: 0;
}

.cs-gallery.is-caption-stack .cs-gallery-media.is-caption-below {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
  flex: none;
  overflow: hidden;
  border: none;
  border-radius: var(--cs-gallery-frame-radius);
  background: var(--cs-gallery-frame-bg);
  box-shadow: inset 0 0 0 1px var(--cs-gallery-frame-border);
}

.cs-gallery.is-caption-stack .cs-gallery-media.is-caption-below .cs-gallery-tag {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  left: clamp(12px, 2vw, 18px);
  z-index: 4;
}

.cs-gallery.is-caption-stack .cs-gallery-media.is-caption-below .cs-gallery-media-clip {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
  line-height: 0;
}

.cs-gallery.is-caption-stack .cs-gallery-media.is-caption-below .cs-gallery-img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  vertical-align: top;
}

.cs-gallery.is-caption-stack .cs-gallery-media.is-caption-below .cs-gallery-desc {
  flex: 0 0 auto;
  display: block;
  position: static;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-top: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 0;
  background: rgba(252, 251, 247, 0.98);
}

.cs-block-label + .cs-block-narrative {
  margin-top: 8px;
}

.cs-block-heading .cs-block-narrative {
  margin-top: 0;
}

.cs-block-hmw {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  margin: 0;
  max-width: 72ch;
}

.cs-insight-split {
  margin: 0;
}

.cs-insight-split-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cs-insight-split-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(44, 40, 35, 0.06);
  color: var(--ink-dark);
}

.cs-insight-split-card {
  padding: 20px 22px;
  border: 1px dashed rgba(184, 94, 62, 0.35);
  border-radius: 10px;
  background:
    radial-gradient(72% 64% at 18% 16%, rgba(184, 94, 62, 0.07), transparent 72%),
    #fdf8f5;
}

.cs-insight-split-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #a85f42;
  margin: 0 0 8px;
}

.cs-insight-split-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.cs-competitive {
  margin: 0;
}

.cs-competitive .cs-block-label {
  margin-top: 0;
}

.cs-competitive-lead,
.cs-competitive-body,
.cs-competitive-insight {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 72ch;
}

.cs-competitive-insight {
  margin-top: 16px;
  margin-bottom: 0;
}

.cs-competitive-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}

.cs-competitive-figure {
  margin: 0;
}

.cs-competitive-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(44, 40, 35, 0.1);
}

.cs-panel .cs-quote-text .wc-mark::before,
.cs-panel .cs-persona-quote .wc-mark::before,
.cs-panel .cs-competitive .wc-mark::before {
  opacity: 1;
  transform: scaleX(1);
}

.cs-block-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding: 16px 18px;
  border-left: 3px solid rgba(90, 122, 138, 0.45);
  background:
    radial-gradient(64% 58% at 12% 24%, rgba(90, 122, 138, 0.1), transparent 72%),
    var(--paper-card, #fcfbf7);
  border-radius: 0 8px 8px 0;
}

.cs-end-mark {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-mute);
  margin: clamp(56px, 8vh, 88px) 0 0;
  padding: 0 0 32px;
  border-top: none;
  text-align: center;
}

.cs-project-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: clamp(40px, 6vh, 56px) var(--cs-gutter) 32px;
  border-top: none;
  background:
    linear-gradient(180deg, rgba(237, 233, 223, 0.55) 0%, var(--paper, #fcfbf7) 100%);
  box-sizing: border-box;
}

.cs-project-nav-spacer {
  flex: 1;
}

.cs-project-nav .cs-label-btn {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  padding: 14px 20px;
  border: 1px solid rgba(44, 40, 35, 0.16);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.cs-project-nav .cs-wash-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.cs-project-nav .cs-wash-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(72% 82% at 28% 28%, rgba(90, 122, 138, 0.52), transparent 72%),
    radial-gradient(72% 82% at 76% 72%, rgba(184, 94, 62, 0.44), transparent 72%),
    radial-gradient(60% 60% at 54% 50%, rgba(120, 142, 84, 0.3), transparent 74%),
    #f2ede2;
}

.cs-project-nav .cs-wash-btn:hover {
  color: var(--ink-dark);
  border-color: rgba(90, 122, 138, 0.62);
  box-shadow: 0 0 0 1px rgba(90, 122, 138, 0.22);
}

.cs-project-nav .cs-wash-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.cs-project-nav .cs-wash-btn.is-emphasis {
  color: var(--ink-dark);
  font-weight: 500;
}

.cs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px dashed rgba(184, 94, 62, 0.35);
  border-radius: 999px;
  background:
    radial-gradient(68% 60% at 82% 18%, rgba(184, 94, 62, 0.1), transparent 72%),
    #faf7f2;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.cs-chip-icon {
  display: inline-flex;
  color: #a85f42;
  flex-shrink: 0;
}

.cs-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.cs-persona {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(44, 40, 35, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(44, 40, 35, 0.06);
}

.cs-persona-icon {
  display: inline-flex;
  color: var(--accent, #5a7a8a);
  margin-bottom: 8px;
}

.cs-persona-title {
  margin-bottom: 8px;
}

.cs-persona-quote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  font-style: italic;
}

/* Function cards: icon + title left-aligned, description below */
.cs-feature-card,
.cs-info-card-grid:not(.is-chips) .cs-info-card,
.cs-problem-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
}

/* Highlight / persona cards: icon + title inline, left-aligned */
.cs-highlight,
.cs-persona {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: center;
}

.cs-highlight-icon,
.cs-persona-icon {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.cs-feature-icon,
.cs-info-card-grid:not(.is-chips) .cs-info-card-icon,
.cs-problem-card-icon {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.cs-highlight > .cs-card-title,
.cs-persona > .cs-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.cs-feature-card > .cs-card-title,
.cs-info-card-grid:not(.is-chips) .cs-info-card > .cs-card-title,
.cs-problem-card > .cs-card-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

/* Iconless cards: title reclaims the full width */
.cs-highlight > .cs-card-title:first-child,
.cs-persona > .cs-card-title:first-child {
  grid-column: 1 / -1;
}

.cs-feature-card > .cs-card-title:first-child,
.cs-info-card-grid:not(.is-chips) .cs-info-card > .cs-card-title:first-child,
.cs-problem-card > .cs-card-title:first-child {
  grid-column: 1 / -1;
}

.cs-highlight-text,
.cs-feature-text,
.cs-info-card-grid:not(.is-chips) .cs-info-card-text,
.cs-problem-card-text,
.cs-persona-quote {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.cs-body {
  max-width: var(--site-max, 1280px);
  margin: 0 auto;
  padding: 8px var(--page-gutter, 48px) 40px;
}

.cs-section {
  padding: 0 0 8px;
  border-top: none;
}

.cs-section + .cs-section {
  margin-top: clamp(64px, 9vh, 96px);
}

.cs-section:first-child {
  padding-top: 0;
}

.cs-section-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  margin: 0 0 16px;
}

.cs-section .cs-block + .cs-block {
  margin-top: clamp(36px, 5vh, 52px);
}

.cs-subsection-intro .cs-block-label {
  margin: 0 0 20px;
}

.cs-subsection-intro .cs-block-label + .cs-block-narrative {
  margin-top: 0;
}

.cs-subsection-intro .cs-block-narrative {
  margin: 0;
}

.cs-subsection-intro + .cs-subsection-body,
.cs-subsection-intro ~ .cs-subsection-body:first-of-type {
  margin-top: 16px;
}

.cs-subsection-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 14px 0 0;
  max-width: 72ch;
}

.cs-subsection-body + .cs-subsection-body {
  margin-top: 10px;
}

.cs-section.has-two-col-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 40px);
  row-gap: clamp(28px, 4vh, 44px);
  align-items: start;
}

.cs-section.has-two-col-blocks > .cs-section-title,
.cs-section.has-two-col-blocks > .cs-block.is-span-full {
  grid-column: 1 / -1;
}

.cs-section.has-two-col-blocks > .cs-block .cs-subsection-visual {
  margin-top: 14px;
}

.cs-subsection-visual {
  margin: 18px 0 0;
}

.cs-subsection-visual:has(.cs-gallery),
.cs-subsection-visual:has(.cs-problem-card-grid),
.cs-subsection-visual:has(.cs-showcase) {
  width: 100%;
  max-width: none;
}

.cs-subsection-visual:has(.cs-challenge) {
  margin-top: clamp(20px, 2.8vh, 28px);
}

.cs-subsection-footnote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 72ch;
}

.cs-section .cs-block:has(.cs-block-heading) + .cs-block {
  margin-top: clamp(36px, 5vh, 52px);
}

.cs-section .cs-block .cs-block-heading,
.cs-section .cs-block .cs-subsection,
.cs-section .cs-block .cs-competitive,
.cs-section .cs-block .cs-subsection-visual .cs-gallery,
.cs-section .cs-block .cs-subsection-visual .cs-insight-split,
.cs-section .cs-block .cs-gallery,
.cs-section .cs-block .cs-insight-split,
.cs-section .cs-block .cs-callout,
.cs-section .cs-block .cs-problem-solution-split,
.cs-section .cs-block .cs-feature-split,
.cs-section .cs-block .cs-component-card-grid,
.cs-section .cs-block .cs-persona-grid,
.cs-section .cs-block .cs-feature-grid,
.cs-section .cs-block .cs-problem-card-grid,
.cs-section .cs-block .cs-info-card-grid,
.cs-section .cs-block .cs-showcase,
.cs-section .cs-block .cs-block-figure,
.cs-section .cs-block .cs-chip-row {
  margin-top: 0;
  margin-bottom: 0;
}

.cs-section .cs-block .cs-block-p,
.cs-section .cs-block .cs-block-narrative,
.cs-section .cs-block .cs-block-hmw,
.cs-section .cs-block .cs-block-label,
.cs-section .cs-block .cs-block-h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.cs-block-label {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.cs-block-label:first-child {
  margin-top: 0;
}

.cs-block-heading {
  margin: 0;
}

.cs-block-heading:first-child {
  margin-top: 0;
}

.cs-block-heading .cs-block-label {
  margin-top: 0;
  margin-bottom: 16px;
}

.cs-block-h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent, #5a7a8a);
  margin: 24px 0 10px;
}

.cs-block-h3:first-child {
  margin-top: 0;
}

.cs-block-p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: var(--cs-read-max);
}

.cs-block-ul,
.cs-block-ol {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-left: 1.25em;
  max-width: var(--cs-read-max);
}

.cs-block-ul li,
.cs-block-ol li {
  margin-bottom: 8px;
}

.cs-quotes {
  max-width: var(--site-max, 1280px);
  margin: 0 auto;
  padding: 0 var(--page-gutter, 48px) 24px;
  display: grid;
  gap: 16px;
}

.cs-quote {
  margin: 0;
  padding: 22px 24px 18px;
  border-radius: 8px;
  border: 1px solid rgba(44, 40, 35, 0.12);
  background:
    radial-gradient(64% 58% at 24% 22%, rgba(90, 122, 138, 0.2), transparent 72%),
    radial-gradient(58% 56% at 78% 78%, rgba(184, 94, 62, 0.16), transparent 72%),
    #f5f2ea;
}

.cs-quote-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cs-quote-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.cs-quote-logo.is-wide {
  width: auto;
  height: 28px;
  max-width: 132px;
}

.cs-quote-logo.is-clip-8 {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #fa7436;
}

.cs-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cs-quote-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.cs-quote-role {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-mid);
}

.cs-quote-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.cs-quote-by {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
}

.cs-nav-footer {
  max-width: var(--site-max, 1280px);
  margin: 32px auto 0;
  padding: 28px var(--page-gutter, 48px) 0;
  border-top: 1px solid rgba(44, 40, 35, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.cs-nav-link {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(44, 40, 35, 0.16);
  border-radius: 999px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cs-nav-link:hover {
  color: var(--ink-dark);
  border-color: rgba(90, 122, 138, 0.45);
}

.cs-nav-link.is-primary {
  color: var(--ink-dark);
  font-weight: 500;
}

.pcard.is-openable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.pcard.is-openable:focus-visible {
  outline: 2px solid rgba(90, 122, 138, 0.55);
  outline-offset: 3px;
}

/* Laptop+ — larger type + sticky TOC */
@media (min-width: 960px) {
  .cs-scroll-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--cs-read-max)) minmax(148px, 200px);
    gap: clamp(24px, 4vw, 48px);
    width: min(100%, calc(var(--cs-read-max) + 200px + 48px));
    max-width: calc(var(--cs-read-max) + 248px);
    margin: 0 auto;
    padding: 0 var(--cs-gutter);
    align-items: start;
  }

  .cs-scroll-layout .cs-content {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .cs-toc {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 16px;
    z-index: 3;
    padding: 4px 0 24px;
    max-height: calc(100dvh - var(--cs-top-gap) - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .cs-panel .cs-title {
    font-size: clamp(34px, 3.4vw, 50px);
  }

  .cs-panel .cs-subtitle {
    font-size: 19px;
    line-height: 1.58;
  }

  .cs-panel .cs-meta-item dt { font-size: 10px; }
  .cs-panel .cs-meta-item dd { font-size: 16px; }

  .cs-panel .cs-disclaimer { font-size: 12px; }

  .cs-panel .cs-highlight {
    font-size: 16px;
    line-height: 1.55;
  }

  .cs-panel .cs-section-title {
    font-size: clamp(24px, 2.4vw, 32px);
  }

  .cs-panel .cs-block-h3 { font-size: 20px; }

  .cs-panel .cs-block-p,
  .cs-panel .cs-block-ul,
  .cs-panel .cs-block-ol {
    font-size: 18px;
    line-height: 1.65;
  }

  .cs-panel .cs-quote-text { font-size: 17px; }
  .cs-panel .cs-quote-by { font-size: 12px; }
  .cs-panel .cs-nav-link { font-size: 12px; }
}

@media (max-width: 959px) {
  .cs-scroll-layout {
    padding: 0;
  }

  .cs-scroll-layout > .cs-toc {
    display: none;
  }

  .cs-chrome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px var(--cs-gutter);
  }

  /* Project switcher takes the left slot; it already shows the current title,
     so the scroll-reveal chrome title is redundant on mobile. */
  .cs-chrome-project {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
  }

  .cs-chrome-title {
    display: none;
  }

  .cs-close {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  /* Section TOC floats in the bottom-right corner of the window */
  .cs-chrome-toc {
    display: block;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
    z-index: 40;
    width: auto;
    max-width: min(340px, 72vw);
  }

  .cs-chrome-toc .cs-chrome-toc-trigger {
    background: rgba(252, 251, 247, 0.68);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
    box-shadow:
      0 8px 24px rgba(44, 40, 35, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  .cs-chrome-toc.is-open .cs-chrome-toc-trigger {
    background: rgba(252, 251, 247, 0.92);
  }

  .cs-chrome-toc-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: auto;
    right: 0;
    transform: none;
    max-height: min(60vh, 420px);
    background: rgba(252, 251, 247, 0.92);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
  }
}

@media (max-width: 809px) {
  .cs-overlay {
    --cs-gutter: 16px;
    --cs-top-gap: 8px;
    --cs-panel-width: 100%;
  }

  .cs-panel {
    border-radius: 12px 12px 0 0;
    max-height: calc(100dvh - var(--cs-top-gap));
  }

  .cs-chrome {
    gap: 8px;
    padding: 10px var(--cs-gutter);
  }

  .cs-chrome-title {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .cs-chrome-toc {
    max-width: min(280px, 62vw);
  }

  .cs-chrome-toc-trigger {
    height: 40px;
    padding: 0 12px;
    font-size: 11px;
  }

  .cs-chrome-toc-trigger-label {
    max-width: 40vw;
  }

  .cs-close {
    width: 40px;
    height: 40px;
    border-radius: 7px;
  }

  .cs-close-icon { font-size: 20px; }

  .cs-panel-scroll {
    overflow-x: clip;
  }

  .cs-scroll-layout,
  .cs-content {
    min-width: 0;
    max-width: 100%;
  }

  .cs-content {
    padding:
      20px
      max(16px, var(--cs-gutter))
      max(28px, calc(16px + env(safe-area-inset-bottom)));
  }

  .cs-panel .cs-body {
    padding-top: clamp(24px, 4vh, 36px);
  }

  .cs-panel .cs-section + .cs-section {
    margin-top: clamp(32px, 5vh, 48px);
  }

  .cs-title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.12;
  }

  .cs-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .cs-section-title {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .cs-meta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .cs-block-narrative,
  .cs-block-hmw {
    font-size: 17px;
    line-height: 1.42;
    max-width: none;
  }

  .cs-block-p,
  .cs-subsection-body,
  .cs-block-note {
    font-size: 15px;
    line-height: 1.58;
    max-width: none;
  }

  .cs-impacts-subtitle {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .cs-product-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    margin-bottom: 32px;
  }

  .cs-intro-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs-intro-split .cs-card-deck,
  .cs-intro-split-deck {
    max-width: min(280px, 100%);
    height: auto;
    min-height: 220px;
  }

  .cs-intro-split .cs-card-deck-item img {
    max-height: 180px;
    height: auto;
  }

  .cs-card-deck {
    max-width: min(260px, 100%);
    height: auto;
    min-height: 140px;
  }

  .cs-subsection-visual .cs-card-deck {
    max-width: min(240px, 100%);
    height: auto;
    min-height: 132px;
  }

  .cs-card-deck-item img,
  .cs-subsection-visual .cs-card-deck-item img {
    height: auto;
    max-height: 96px;
  }

  .cs-product-intro-body,
  .cs-product-intro-tagline {
    max-width: none;
  }

  .cs-panel .cs-impacts .cs-highlights-grid,
  .cs-highlights-grid,
  .cs-info-card-grid,
  .cs-persona-grid,
  .cs-feature-grid {
    grid-template-columns: 1fr;
  }

  .cs-panel .cs-impacts .cs-quotes-grid {
    grid-template-columns: 1fr;
  }

  .cs-problem-card-grid,
  .cs-problem-card-grid.is-negative,
  .cs-problem-card-grid.is-negative.is-cols-3 {
    grid-template-columns: 1fr;
  }

  .cs-challenge-split,
  .cs-challenge-split.is-quotes-only .cs-challenge-quotes .cs-quotes-grid {
    grid-template-columns: 1fr;
  }

  .cs-project-overview,
  .cs-section.has-two-col-blocks,
  .cs-subsection.has-side-image,
  .cs-subsection.has-problem-issue,
  .cs-problem-solution-split,
  .cs-feature-split,
  .cs-component-card-grid,
  .cs-insight-split,
  .cs-competitive-images,
  .cs-reframing-bridge,
  .cs-list-card-grid,
  .cs-approach-callout .cs-list-card-grid {
    grid-template-columns: 1fr;
  }

  .cs-subsection.has-side-image .cs-subsection-copy {
    grid-column: 1;
  }

  .cs-side-image {
    grid-column: 1;
    grid-row: auto;
  }

  .cs-subsection.has-problem-issue {
    row-gap: 20px;
  }

  .cs-subsection.has-problem-issue .cs-subsection-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .cs-problem-issue-figure {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    margin-inline: auto;
  }

  .cs-problem-issue-points,
  .cs-challenge.is-compact,
  .cs-subsection-visual .cs-block-figure.is-half-width {
    max-width: none;
    width: 100%;
  }

  .cs-problem-card,
  .cs-info-card,
  .cs-highlight,
  .cs-list-card,
  .cs-component-card {
    padding: 16px;
  }

  .cs-gallery {
    --cs-gallery-media-h: clamp(220px, 42vh, 400px);
    --cs-gallery-chip-h: 34px;
    --cs-gallery-slide-gap: 32px;
    --cs-gallery-frame-pad-y: clamp(20px, 5vw, 32px);
    --cs-gallery-frame-pad-x: clamp(16px, 4vw, 28px);
    --cs-gallery-frame-radius: 10px;
    --cs-gallery-btn-inset: 4px;
  }

  .cs-gallery-viewport {
    padding-inline: 1px;
  }

  .cs-gallery-desc {
    width: calc(100% + (var(--cs-gallery-frame-pad-x) * 2));
    margin: 0 calc(var(--cs-gallery-frame-pad-x) * -1);
    box-sizing: border-box;
  }

  .cs-gallery-media.is-caption-below .cs-gallery-desc {
    width: 100%;
    margin: 0;
  }

  .cs-gallery-tag {
    max-width: calc(100% - 80px);
  }

  .cs-gallery-chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  .cs-gallery-btn {
    width: 36px;
    height: 36px;
  }

  .cs-gallery-btn-key {
    font-size: 18px;
  }

  .cs-gallery.is-phone-frame .cs-gallery-media-clip {
    padding: clamp(20px, 5vw, 32px);
  }

  .cs-gallery.is-phone-frame .cs-gallery-media-clip .cs-phone-frame {
    width: min(200px, 58vw);
  }

  .cs-phone-frame {
    width: min(220px, 72vw);
  }

  .cs-kiosk-frame {
    width: 100%;
    max-width: 100%;
  }

  .cs-video-showcase .cs-showcase-stage.is-video {
    padding: 16px 12px;
  }

  .cs-showcase-image .cs-showcase-screen-img {
    width: 100%;
  }

  .cs-figure-frame.has-custom-bg {
    --cs-figure-frame-pad-x: clamp(12px, 4vw, 20px);
    --cs-figure-frame-pad-y: clamp(12px, 4vw, 20px);
  }

  .cs-figure-frame.has-custom-bg .cs-figure-desc {
    width: 100%;
    margin: 0;
  }

  .cs-nav-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .cs-nav-link {
    text-align: center;
  }

  .cs-end-mark {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .cs-reframing-arrow {
    width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-overlay.is-opening,
  .cs-overlay.is-closing,
  .cs-panel.is-opening,
  .cs-panel.is-closing,
  .cs-panel.is-opening .cs-close {
    animation: none;
  }

  .cs-close {
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .cs-close:hover,
  .cs-close:active {
    transform: none;
  }

  .cs-card-deck.is-interactive .cs-card-deck-item {
    transition: none;
  }
}
