/* ══════════════════════════════════════
   CASE STUDY PAGES - case-study.css
   White canvas. Serif display headings.
══════════════════════════════════════ */

body.cs-page {
  background-color: var(--bg);
  --gutter:  clamp(24px, 5vw, 72px);
  --max:     960px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ── Progress bar ── */
.cs-progress {
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 98;
}
#cs-progress-bar {
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.08s linear;
}

/* ── Nav on case study pages ── */
body.cs-page #nav {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}

/* ── Sticky section context bar ── */
.cs-context-bar {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 97;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cs-context-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cs-context-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cs-context-sep {
  font-size: 11px;
  color: var(--ink-3);
}
.cs-context-section {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Shift progress bar below context bar when context bar is visible */
body.cs-page:has(.cs-context-bar.visible) .cs-progress {
  top: 106px;
  transition: top 0.22s ease;
}

/* ── Sticky left TOC ── */
.cs-toc {
  position: fixed;
  left: clamp(14px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  display: flex;
  flex-direction: column;
  z-index: 80;
  width: 168px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cs-toc.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.cs-toc-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
  padding-left: 12px;
  display: block;
}

.cs-toc-item {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px 6px 11px;
  border-left: 1.5px solid var(--border-mid);
  line-height: 1.35;
  transform-origin: left center;
  transition: color 0.2s, border-color 0.2s, transform 0.22s ease, background 0.22s ease;
}
.cs-toc-item:hover {
  color: var(--ink);
  background: var(--surface-2);
  transform: scale(1.015);
}
.cs-toc-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 550;
  background: var(--accent-muted);
  transform: scale(1.03);
}

@media (max-width: 1300px) { .cs-toc { display: none; } }

/* ══════════════════════════════════════
   CONTENT WRAPPER
══════════════════════════════════════ */
.cs-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}
body.cs-page { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.cs-header {
  padding-top: 90px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.cs-header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 34px;
  align-items: start;
}

.cs-header-copy {
  min-width: 0;
}

.cs-header-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.cs-header-proto {
  align-self: end;
  display: flex;
  justify-content: flex-end;
}

.cs-header-phone-frame {
  position: relative;
  width: min(100%, 286px);
  aspect-ratio: 650 / 1338;
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2b2b2f 0%, #121214 45%, #2a2a2d 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 14px 36px rgba(0,0,0,0.2);
}

.cs-header-phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #09090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 2;
  pointer-events: none;
}

.cs-header-phone-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  z-index: 1;
  pointer-events: none;
}

.cs-header-proto-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 34px;
  border: 0;
  box-shadow: none;
  background: #000;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.cs-header-proto-video.is-ready {
  opacity: 1;
}

.cs-reading-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-company-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.cs-title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 100%;
  margin-bottom: 22px;
}

.cs-summary {
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.72;
  max-width: 56ch;
  margin-bottom: 34px;
}

.cs-meta-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0 30px;
  justify-content: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.cs-meta-row > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cs-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
  display: block;
}
.cs-meta-value { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* ── Impact numbers ── */
.cs-impact {
  display: flex;
  gap: 0;
  margin-top: 28px;
}
.cs-impact-stat {
  padding: 0 36px 0 0;
  border-right: 1px solid var(--border);
  margin-right: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-impact-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.cs-impact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: block;
}
.cs-impact-num {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1a9e5c;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
[data-theme="dark"] .cs-impact-num { color: #34c97a; }
.cs-impact-stat.is-down .cs-impact-num { color: #d86f5f; }
[data-theme="dark"] .cs-impact-stat.is-down .cs-impact-num { color: #ff8d80; }
.cs-impact-context {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ══════════════════════════════════════
   BODY
══════════════════════════════════════ */
.cs-body {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Hotel problem brief ── */
.cs-problem-brief {
  margin: 32px 0 0;
  max-width: 1020px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.cs-problem-main {
  min-width: 0;
}
.cs-problem-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-problem-label::before {
  content: '-';
  font-weight: 300;
}
.cs-problem-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.85vw, 38px);
  line-height: 1.2;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
}
.cs-problem-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 60ch;
}
.cs-problem-why {
  border-left: 1px solid var(--border);
  padding-left: 22px;
}
.cs-problem-why-label {
  margin: 2px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-problem-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}
.cs-problem-list li {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}
.cs-problem-list li strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

/* ── Hotel case: readability and rhythm refinements ── */
body.cs-hotel .cs-problem-brief {
  margin: 54px 0 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
}
body.cs-hotel .cs-problem-main {
  max-width: 62ch;
}
body.cs-hotel .cs-problem-title {
  max-width: 18.5ch;
}
body.cs-hotel .cs-problem-text {
  max-width: 58ch;
}
body.cs-hotel .cs-problem-why {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
}
body.cs-hotel .cs-problem-why-label {
  margin-top: 0;
}

/* ── Shortlist page: distinct narrative layout ── */
body.cs-system .cs-body > .cs-block {
  border-top: 1px solid var(--border);
}
body.cs-system .cs-body > .cs-block:first-child {
  border-top: none;
}
body.cs-system .cs-block-statement {
  max-width: 24ch;
}
body.cs-system .cs-block-text {
  max-width: 66ch;
}
body.cs-system .cs-header {
  padding-bottom: 52px;
}
body.cs-system .cs-impact-system {
  display: flex;
  gap: 0;
  margin-top: 28px;
}
body.cs-system .cs-impact-system .cs-impact-stat {
  padding: 0 36px 0 0;
  border-right: 1px solid var(--border);
  margin-right: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: none;
  border-radius: 0;
  min-height: 0;
}
body.cs-system .cs-impact-system .cs-impact-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
body.cs-system .cs-impact-system .cs-impact-num {
  font-size: clamp(28px, 3.2vw, 42px);
}
body.cs-system .cs-system-subhead {
  margin: 28px 0 14px;
}
body.cs-system .cs-system-pullquote {
  margin-top: 32px;
}
body.cs-system .cs-system-reframe .cs-findings,
body.cs-system .cs-system-exploration .cs-step-grid {
  margin-top: 18px;
}
body.cs-system .cs-system-impact-notes {
  margin-top: 28px;
}
body.cs-system .cs-system-exploration .cs-step-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
body.cs-system .cs-system-principles {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.cs-system .cs-system-principle {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 14px 12px;
}
body.cs-system .cs-system-principle-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
body.cs-system .cs-system-principle h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}
body.cs-system .cs-system-principle p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
body.cs-system .cs-system-timeline {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}
body.cs-system .cs-system-timeline .cs-timeline-title {
  font-size: 15px;
}
body.cs-system .cs-system-timeline .cs-timeline-desc {
  max-width: 62ch;
}
body.cs-system .cs-system-outcome-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.cs-system .cs-system-outcome-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 14px 14px 12px;
}
body.cs-system .cs-system-outcome-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
body.cs-system .cs-system-outcome-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
body.cs-system .cs-system-outcome-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
body.cs-system .cs-system-pillars,
body.cs-system .cs-system-operating-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body.cs-system .cs-system-pillar,
body.cs-system .cs-system-operating-card,
body.cs-system .cs-system-guardrail {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 14px 12px;
}
body.cs-system .cs-system-pillar-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
body.cs-system .cs-system-pillar h3,
body.cs-system .cs-system-operating-card h3,
body.cs-system .cs-system-guardrail h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
body.cs-system .cs-system-pillar p,
body.cs-system .cs-system-operating-card p,
body.cs-system .cs-system-guardrail p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
body.cs-system .cs-system-mini-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
body.cs-system .cs-system-mini-list li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 12px;
  position: relative;
}
body.cs-system .cs-system-mini-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
  position: absolute;
  left: 0;
  top: 0.52em;
}
body.cs-system .cs-system-guardrails-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cs-system-loop {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px 14px 12px;
}
.cs-system-loop-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-system-loop-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-system-loop-steps li {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
}
.cs-system-loop-steps li:not(:last-child)::after {
  content: '→';
  margin-left: 8px;
  color: var(--ink-3);
  font-weight: 500;
}

.cs-system-compare {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cs-system-compare-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px 14px 13px;
}
.cs-system-compare-card.is-real {
  background: linear-gradient(180deg, rgba(37,99,235,0.07) 0%, rgba(37,99,235,0.02) 100%);
  border-color: rgba(37,99,235,0.25);
}
.cs-system-compare-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-system-compare-flow {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-system-compare-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.cs-system-failure-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cs-system-failure {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 14px 12px;
}
.cs-system-failure-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.cs-system-failure h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-system-failure p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

body.cs-hotel .cs-cover {
  margin-top: 36px;
}
body.cs-hotel .cs-cover figcaption {
  margin-top: 12px;
}
body.cs-hotel .cs-body > .cs-block {
  padding: 60px 0;
}
body.cs-hotel .cs-body > .cs-block + .cs-block {
  border-top: 1px solid var(--border);
}
body.cs-hotel .cs-block-label {
  margin-bottom: 18px;
}
body.cs-hotel .cs-block-statement {
  max-width: 100%;
  line-height: 1.18;
  margin-bottom: 22px;
}
body.cs-hotel .cs-text-danger {
  color: #cf4a3d;
}
[data-theme="dark"] body.cs-hotel .cs-text-danger {
  color: #ff7f72;
}
body.cs-hotel .cs-block-text {
  max-width: 58ch;
  line-height: 1.72;
}
body.cs-hotel .cs-block-text + .cs-block-text {
  margin-top: 14px;
}
body.cs-hotel .cs-findings {
  max-width: 58ch;
  margin-top: 28px;
}
/* Insight-card pattern for major diagnostic sections */
body.cs-hotel [data-section="System Friction"] .cs-findings,
body.cs-hotel [data-section="Behavioral Insight"] .cs-findings,
body.cs-hotel [data-section="Existing Solution Failed"] .cs-findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: none;
}
body.cs-hotel [data-section="System Friction"] .cs-finding,
body.cs-hotel [data-section="Behavioral Insight"] .cs-finding,
body.cs-hotel [data-section="Existing Solution Failed"] .cs-finding {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 12px 11px;
  border-bottom: 1px solid var(--border);
}
body.cs-hotel [data-section="System Friction"] .cs-finding:last-child,
body.cs-hotel [data-section="Behavioral Insight"] .cs-finding:last-child,
body.cs-hotel [data-section="Existing Solution Failed"] .cs-finding:last-child {
  border-bottom: 1px solid var(--border);
}
body.cs-hotel .cs-split {
  margin-top: 34px;
  gap: 34px clamp(28px, 4.5vw, 56px);
}
body.cs-hotel .cs-split .cs-figure figcaption {
  text-align: left;
}
body.cs-hotel .cs-showcase {
  margin-top: 44px;
  gap: 16px;
}
body.cs-hotel .cs-testing-stack {
  margin-top: 40px;
  gap: 56px;
}
body.cs-hotel .cs-testing-group-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface-2);
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--ink);
}
body.cs-hotel [data-section="Outcome"] .cs-stat-grid {
  margin-top: 20px;
}

/* ── Stakeholder alignment revamp ── */
body.cs-hotel .cs-block-stakeholders .cs-block-text {
  max-width: 64ch;
}
.cs-stakeholder-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cs-stakeholder-point {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 20px 22px;
}
.cs-stakeholder-point-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-stakeholder-point-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

/* ── What this unlocked ── */
.cs-unlocked-intro { display: flex; flex-direction: column; gap: 14px; }
.cs-block-unlocked .cs-block-statement { max-width: 24ch; margin-bottom: 0; }

/* Split: text left, iPhone right */
.cs-split-unlocked {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-top: 20px;
  gap: 0 clamp(28px, 4vw, 52px);
}

/* Left column */
.cs-unlocked-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Lead paragraph */
.cs-unlocked-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
}

/* Sub-section wrapper */
.cs-unlocked-section { display: flex; flex-direction: column; gap: 14px; }

/* Sub-section label */
.cs-unlocked-subhead {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Observed patterns 2×2 grid */
.cs-unlocked-patterns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cs-unlocked-pattern {
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-unlocked-pattern:nth-child(2n) { border-right: none; }
.cs-unlocked-pattern:nth-last-child(-n+2) { border-bottom: none; }
.cs-unlocked-pattern strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.cs-unlocked-pattern span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Friction list */
.cs-unlocked-friction {
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border-mid);
}
.cs-unlocked-tight {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-unlocked-tight li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cs-unlocked-tight li strong { color: var(--ink); font-weight: 600; }

/* Contextual tags pills */
.cs-unlocked-tags {
  list-style: none;
  counter-reset: unlockedTags;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cs-unlocked-tags li {
  counter-increment: unlockedTags;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.cs-unlocked-tags li::before {
  content: counter(unlockedTags, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* 2×2 screenshot grid (inline, below the tags) */
.cs-unlocked-shots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cs-unlocked-shot-wrap {
  margin: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: linear-gradient(180deg, #171b24 0%, #10131b 100%);
  overflow: hidden;
}
.cs-unlocked-shot-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
[data-theme="dark"] .cs-unlocked-shot-wrap {
  border-color: rgba(255,255,255,0.10);
  background: linear-gradient(180deg, #191d28 0%, #10131a 100%);
}

/* Chip strip: 4 tags in a single quiet row */
.cs-unlocked-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-unlocked-chip-wrap {
  margin: 0;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #171b24 0%, #10131b 100%);
  overflow: hidden;
  height: 44px;
}
.cs-unlocked-chip-wrap img {
  display: block;
  height: 100%;
  width: auto;
}
[data-theme="dark"] .cs-unlocked-chip-wrap {
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #191d28 0%, #10131a 100%);
}

/* What we learned: vertical list with dividers */
.cs-unlocked-learns-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-unlocked-learn-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.cs-unlocked-learn-item:last-child { border-bottom: none; padding-bottom: 0; }
.cs-unlocked-learn-item .cs-unlocked-learn-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 3px;
  flex-shrink: 0;
  width: 20px;
}
.cs-unlocked-learn-item > div { flex: 1; min-width: 0; }
.cs-unlocked-learn-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.cs-unlocked-learn-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Why it mattered: 3 horizontal cards */
.cs-unlocked-benefits-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cs-unlocked-benefit {
  padding: 16px 18px;
  border-right: 1px solid var(--border);
}
.cs-unlocked-benefit:last-child { border-right: none; }
.cs-unlocked-benefit strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 5px;
}
.cs-unlocked-benefit span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* What we learned: 2 numbered cards */
.cs-unlocked-learns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-unlocked-learn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.cs-unlocked-learn-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.cs-unlocked-learn p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cs-unlocked-learn strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Closing callout */
.cs-unlocked-callout {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}
.cs-unlocked-callout-label {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.cs-unlocked-callout-text {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--ink);
  max-width: 26ch;
}
.cs-highlight {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 1px 7px 3px;
  font-style: normal;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Right column: iPhone only, sticky */
.cs-unlocked-media-stack {
  position: sticky;
  top: clamp(80px, calc(50vh - 240px), 180px);
  align-self: start;
  justify-self: end;
  width: fit-content;
}
.cs-unlocked-media-stack .cs-testing-iphone-frame {
  width: clamp(200px, 18vw, 224px);
}

/* ── At a glance strip ── */
.cs-scan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 32px 0 0;
  background: var(--surface);
}
.cs-scan-card {
  --scan-tone: var(--ink-3);
  padding: 22px 24px 24px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px;
}
.cs-scan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
  background: var(--scan-tone);
}
.cs-scan-card[data-type="problem"]      { --scan-tone: #da5a5a; }
.cs-scan-card[data-type="intervention"] { --scan-tone: var(--accent); }
.cs-scan-card[data-type="outcome"]      { --scan-tone: #2a9d63; }

.cs-scan-card:last-child { border-right: none; }

.cs-scan-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--scan-tone);
  margin-bottom: 0;
  display: block;
}
.cs-scan-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-scan-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}
.cs-scan-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.cs-scan-metric {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 10px 10px 9px;
}
.cs-scan-metric-value {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--scan-tone);
}
.cs-scan-metric-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-2);
}
.cs-scan-footnote {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}

[data-theme="dark"] .cs-scan-card[data-type="problem"]      { --scan-tone: #ff7b7b; }
[data-theme="dark"] .cs-scan-card[data-type="intervention"] { --scan-tone: #7ea7ff; }
[data-theme="dark"] .cs-scan-card[data-type="outcome"]      { --scan-tone: #66d899; }
[data-theme="dark"] .cs-scan-metric { background: var(--surface-3); }
[data-theme="dark"] .cs-scan-footnote { color: var(--ink-2); }

/* ── Phase dividers ── */
.cs-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 60px 0 0;
  margin-bottom: 0;
}
.cs-phase::before, .cs-phase::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.07);
}
.cs-phase span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── Section blocks - open, no box ── */
.cs-block {
  position: relative;
  padding: 52px 0;
  scroll-margin-top: 90px;
}
.cs-header { scroll-margin-top: 90px; }

html.js-enhanced body.cs-page .cs-scroll-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js-enhanced body.cs-page .cs-scroll-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-enhanced body.cs-page .cs-scroll-section.is-active .cs-block-label,
html.js-enhanced body.cs-page .cs-scroll-section.is-active .cs-problem-label {
  color: var(--accent);
}
html.js-enhanced body.cs-page .cs-scroll-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.44s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay: calc(var(--scroll-stagger, 0) * 55ms);
  will-change: opacity, transform;
}
html.js-enhanced body.cs-page .cs-scroll-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-enhanced body.cs-page .cs-scroll-float {
  transform: translate3d(0, var(--scroll-float-y, 0px), 0) rotate(var(--scroll-float-r, 0deg));
  transition: transform 0.16s linear, box-shadow 0.32s ease, filter 0.32s ease;
  will-change: transform;
}

/* ── Section label (e.g. "- System Friction") ── */
.cs-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cs-block-label::before { content: '-'; font-weight: 300; }

/* ── Section headline ── */
.cs-block-statement {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 16px;
}

/* ── Body text ── */
.cs-block-text {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 52ch;
}
.cs-block-text + .cs-block-text { margin-top: 10px; }

/* ── Design principle cards ── */
.cs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.cs-card {
  background: var(--surface);
  padding: 20px 22px 24px;
}
.cs-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.cs-card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── Findings - flush list, no card boxes ── */
.cs-findings {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52ch;
}
.cs-finding {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cs-finding:last-child { border-bottom: none; }
body.cs-page .cs-findings { counter-reset: cs-finding; }
body.cs-page .cs-finding { counter-increment: cs-finding; }
body.cs-page .cs-finding-icon {
  width: 18px;
  min-width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1px;
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
}
body.cs-page .cs-finding-icon::before {
  content: counter(cs-finding, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1;
}

.cs-finding-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.cs-finding-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

/* ── Pullquote ── */
.cs-pullquote {
  border-left: 2px solid var(--border-mid);
  padding: 4px 0 4px 20px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  max-width: 48ch;
}

/* ── Split ── */
.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 28px;
}

/* Keep unlocked split independent from generic .cs-split sizing */
body.cs-hotel .cs-split.cs-split-unlocked {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 clamp(28px, 4vw, 52px);
  margin-top: 20px;
}

.cs-split-system-friction {
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 300px);
  gap: 28px clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.cs-split-existing-failed {
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 280px);
  gap: 28px clamp(32px, 4.5vw, 64px);
  align-items: start;
}
body.cs-hotel .cs-block-existing-failed .cs-split-existing-failed {
  margin-top: 18px;
}

.cs-block-existing-failed .cs-findings {
  margin-top: 24px;
  max-width: 60ch;
}
.cs-block-existing-failed .cs-figure-existing-failed {
  max-width: 280px;
}
body.cs-hotel .cs-block-existing-failed .cs-figure-existing-failed .cs-img-ph.has-media.media-phone {
  width: min(100%, 260px);
}

.cs-split-interaction {
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 340px);
  gap: 28px clamp(32px, 4vw, 56px);
}
.cs-compact-cards {
  margin-top: 20px;
  grid-template-columns: 1fr 1fr;
}
.cs-compact-label {
  margin: 20px 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 52ch;
}
.cs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cs-figure-system-friction {
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

.cs-figure-existing-failed {
  justify-self: end;
  width: 100%;
  max-width: 310px;
}

body.cs-hotel .cs-figure-system-friction .cs-img-ph.has-media.media-phone {
  width: min(100%, 300px);
}

body.cs-hotel .cs-figure-existing-failed .cs-img-ph.has-media.media-phone {
  width: min(100%, 285px);
}

/* ── Image placeholders ── */
.cs-figure { margin-top: 16px; }
.cs-figure figcaption {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 7px;
  line-height: 1.5;
  text-align: center;
}

.cs-img-ph {
  background: var(--surface);
  border-radius: 10px;
  border: 1.5px dashed var(--border-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px 12px;
  text-align: center;
  width: 100%;
}
.cs-img-ph.has-media {
  padding: 0;
  gap: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.cs-img-ph.has-media img,
.cs-img-ph.has-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cs-img-ph.has-media.media-dark {
  background: #0f1012;
}

/* Hotel case study is mobile-first: render media in phone ratio */
body.cs-hotel .cs-img-ph.has-media.media-phone {
  aspect-ratio: 390 / 844;
  width: min(100%, 340px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
}

body.cs-hotel .cs-img-ph.has-media.media-mid {
  aspect-ratio: 3 / 4;
  width: min(100%, 360px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
}

body.cs-hotel .cs-img-ph.has-media.media-wide {
  aspect-ratio: 16 / 11;
  width: min(100%, 430px);
  margin-left: auto;
  margin-right: auto;
  border-radius: 14px;
}

body.cs-hotel .cs-showcase > .cs-figure .cs-img-ph.has-media {
  width: min(100%, 360px);
}

body.cs-hotel .cs-img-ph.has-media img,
body.cs-hotel .cs-img-ph.has-media video {
  object-fit: contain;
  object-position: center center;
}
.cs-img-ph.r-21-9 { aspect-ratio: 21/9; }
.cs-img-ph.r-16-9 { aspect-ratio: 16/9; }
.cs-img-ph.r-16-7 { aspect-ratio: 16/7; }
.cs-img-ph.r-4-3  { aspect-ratio: 4/3;  }
.cs-img-ph.r-1-1  { aspect-ratio: 1;    }
.cs-img-ph.r-3-1  { aspect-ratio: 3/1;  }

.cs-img-ph.ph-product { background: #f0f5ff; border-color: rgba(60,120,220,0.1); }
.cs-img-ph.ph-data    { background: #f5fff5; border-color: rgba(30,160,80,0.1); }
.cs-img-ph.ph-archive { background: #fff5f0; border-color: rgba(200,80,40,0.1); }
.cs-img-ph.ph-system  { background: #fdf5ff; border-color: rgba(130,60,200,0.1); }
.cs-img-ph.ph-motion  { background: #1c1c1e; border-color: rgba(255,255,255,0.08); }
.cs-img-ph.ph-motion .cs-img-ph-icon,
.cs-img-ph.ph-motion .cs-img-ph-label,
.cs-img-ph.ph-motion .cs-img-ph-sub { color: rgba(255,255,255,0.35); }

.cs-img-ph {
  transition: transform 0.35s var(--ease, cubic-bezier(0.25,0,0,1)), box-shadow 0.35s ease;
}
.cs-img-ph:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 32px var(--shadow-md);
}

body.cs-page .cs-img-ph-icon  {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  opacity: 1;
}
body.cs-page .cs-img-ph-icon::before {
  content: '◆';
  font-size: 12px;
  line-height: 1;
  color: var(--ink-3);
}
body.cs-page .cs-img-ph.ph-motion .cs-img-ph-icon::before { color: rgba(255,255,255,0.58); }
.cs-img-ph-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cs-img-ph-sub   { font-size: 11px; color: var(--ink-3); opacity: 0.5; }

/* ── Cover ── */
.cs-cover { margin: 28px 0 0; }
.cs-cover .cs-img-ph {
  border-radius: 14px;
  border-style: solid;
  border-color: var(--border);
  background: var(--surface);
}
.cs-cover .cs-img-ph:hover { transform: scale(1.01); box-shadow: 0 12px 40px var(--shadow-md); }
.cs-cover figcaption {
  font-size: 11px;
  color: var(--ink-2);
  margin: 0;
  text-align: left;
}

.cs-gallery-wrap {
  position: relative;
  overflow: visible;
}

.cs-scroll-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
}

body.cs-hotel .cs-scroll-gallery {
  padding-left: clamp(18px, 3vw, 36px);
  padding-right: clamp(18px, 3vw, 36px);
  scrollbar-width: none;
}

body.cs-hotel .cs-scroll-gallery::-webkit-scrollbar {
  display: none;
}

.cs-gallery-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.18s ease;
  z-index: 4;
}
.cs-gallery-arrow svg {
  width: 16px;
  height: 16px;
}
.cs-gallery-arrow:hover {
  background: rgba(255,255,255,0.96);
  transform: translateY(-50%) scale(1.08);
}
.cs-gallery-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.88);
}
[data-theme="dark"] .cs-gallery-arrow {
  border-color: rgba(255,255,255,0.14);
  background: rgba(28,28,30,0.82);
  color: #fff;
}

.cs-gallery-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.cs-gallery-indicator {
  min-width: 152px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cs-gallery-indicator-value {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  min-width: 20px;
  text-align: center;
}

.cs-gallery-indicator-track {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 78%, transparent);
  overflow: hidden;
}

.cs-gallery-indicator-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0.14);
  transition: transform 0.18s ease;
}

.cs-scroll-gallery::-webkit-scrollbar {
  height: 6px;
}

.cs-scroll-gallery::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 999px;
}

.cs-scroll-gallery img {
  flex: 0 0 clamp(175px, 20vw, 215px);
  width: clamp(175px, 20vw, 215px);
  height: clamp(360px, 44vw, 470px);
  object-fit: contain;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  scroll-snap-align: start;
}

.cs-cover-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: #0f0f10;
  box-shadow: none;
}

.cs-system-friction-closing {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  font-style: italic;
}

.cs-cover-media video,
.cs-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Grids ── */
.cs-img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.cs-img-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 18px; }

.cs-showcase { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.cs-showcase-row { display: grid; gap: 10px; }
.cs-showcase-row.col-2 { grid-template-columns: 1fr 1fr; }
.cs-showcase-row.col-3 { grid-template-columns: 1fr 1fr 1fr; }
.cs-showcase-row.col-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.cs-showcase-row.options-variation-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: start;
}

.cs-option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 10px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.25s;
}
.cs-option-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 6px 20px var(--shadow-md);
}

.cs-option-variation-media {
  width: 100%;
  max-width: none;
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1012;
  border: 1px solid var(--border);
}

.cs-option-video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
  cursor: pointer;
}

/* Always show toggle on touch devices - no hover available */
@media (hover: none) {
  .cs-option-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(0,0,0,0.45);
  }
}

.cs-option-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.52);
  color: #fff;
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.2s, border-color 0.2s;
}
.cs-option-toggle:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.54);
}
.cs-option-variation-media:hover .cs-option-toggle,
.cs-option-variation-media:focus-within .cs-option-toggle,
.cs-option-variation-media.is-paused .cs-option-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cs-option-card.is-final {
  border-color: rgba(37,99,235,0.65);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.16);
}
.cs-option-card.is-final .cs-option-variation-media {
  border-color: rgba(37,99,235,0.42);
}

.cs-option-chip {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 2px 7px;
}

.cs-option-card figcaption {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.cs-option-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.4;
  display: block;
}

/* ── Booking failed fallback (moved below options) ── */
.cs-booking-failed-wrap {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.cs-split-booking-failed {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 300px);
  gap: 24px clamp(28px, 4vw, 52px);
  margin-top: 0;
}
.cs-booking-failed-copy {
  max-width: 58ch;
}
.cs-booking-failed-title {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cs-recovery-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-recovery-card {
  padding: 16px 16px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.cs-recovery-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.cs-recovery-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cs-booking-failed-subhead {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-booking-failed-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.cs-booking-failed-subhead + .cs-booking-failed-list {
  margin-top: 0;
}
.cs-booking-failed-list + .cs-booking-failed-subhead {
  margin-top: 16px;
}
.cs-booking-failed-list li {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}
.cs-booking-failed-list li strong {
  color: var(--ink);
  font-weight: 600;
}
.cs-booking-failed-figure {
  width: 100%;
  max-width: 300px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-booking-failed-iphone {
  width: min(100%, 280px);
}

/* ── Flight information revamp section ── */
.cs-flight-info-wrap {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.cs-flight-info-title {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: clamp(22px, 2.25vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 28ch;
}
.cs-inline-points {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 62ch;
}
.cs-inline-point {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cs-flight-info-grid {
  margin-top: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 44px);
  align-items: start;
}
.cs-flight-info-card {
  display: grid;
  grid-template-rows: minmax(260px, auto) auto;
  gap: 14px;
  min-width: 0;
}
.cs-flight-info-media {
  align-self: end;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  width: min(100%, 300px);
  margin: 0 auto;
}
body.cs-hotel .cs-flight-info-card .cs-img-ph.has-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.cs-flight-info-card figcaption {
  margin-top: 0;
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cs-flight-info-card figcaption strong {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cs-flight-info-card figcaption span {
  max-width: 28ch;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ── Before / After ── */
.cs-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cs-ba-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; display: block; }
.cs-ba-label.before { color: var(--ink-3); }
.cs-ba-label.after  { color: var(--ink); }

/* ── Testing comparison ── */
.cs-testing-stack {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cs-testing-group {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.cs-testing-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.cs-testing-compare {
  margin-top: 0;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.cs-testing-compare .cs-figure {
  margin-top: 0;
}
.cs-testing-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cs-testing-card-head {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.cs-testing-compare .cs-figure figcaption {
  font-size: 12px;
  line-height: 1.5;
  max-width: 280px;
  margin-top: 8px;
  text-align: center;
}
body.cs-hotel .cs-testing-compare .cs-img-ph.has-media.media-phone,
.cs-testing-compare .cs-testing-placeholder {
  width: min(100%, 260px);
  margin-inline: 0;
}
.cs-testing-media {
  position: relative;
}

/* ── Comparison box wrapper ── */
.cs-testing-compare-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
}

/* ── iPhone 16 Pro frame for treatment UI ── */
.cs-testing-iphone-frame {
  position: relative;
  width: min(100%, 260px);
  border-radius: 34px;
  background: linear-gradient(145deg, #2b2b2f 0%, #121214 45%, #2a2a2d 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    0 10px 28px rgba(0,0,0,0.22);
  padding: 7px;
}
.cs-testing-iphone-frame::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 21px;
  border-radius: 999px;
  background: #09090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 3;
  pointer-events: none;
}
.cs-testing-iphone-frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 27px;
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 1;
  pointer-events: none;
}
.cs-testing-iphone-screen {
  border-radius: 27px;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}
.cs-testing-iphone-screen::-webkit-scrollbar { display: none; }
.cs-testing-iphone-screen img,
.cs-testing-iphone-screen video {
  width: 100%;
  height: auto;
  display: block;
}
.cs-variant-tag {
  position: static;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 4px;
  padding: 4px 8px;
  border: none;
}
.cs-variant-tag.is-control {
  color: var(--ink-3);
  background: var(--surface-2);
}
.cs-variant-tag.is-treatment {
  color: var(--ink);
  background: var(--surface-2);
}
.cs-testing-placeholder {
  position: relative;
  aspect-ratio: 390 / 844;
  border: 1px dashed var(--border-mid);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-testing-placeholder-copy {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.cs-testing-placeholder-copy strong {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.35;
}
.cs-testing-placeholder-copy span {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}
.cs-testing-step-grid {
  margin-top: 0;
}
.cs-testing-step-grid .cs-step-num {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.cs-ab-table {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cs-ab-row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.cs-ab-row:first-child {
  border-top: none;
}
.cs-ab-head {
  background: var(--surface-2);
  padding-top: 12px;
  padding-bottom: 12px;
}
.cs-ab-head span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-ab-row span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.cs-ab-row .is-win {
  color: #1a9e5c;
  font-weight: 700;
  font-size: 15px;
}
[data-theme="dark"] .cs-ab-row .is-win { color: #34c97a; }

/* ── Numbered list ── */
.cs-ol {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: cs-counter;
}
.cs-ol li {
  counter-increment: cs-counter;
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  align-items: flex-start;
}
.cs-ol li::before {
  content: counter(cs-counter, decimal-leading-zero);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 18px;
  padding-top: 3px;
  flex-shrink: 0;
}

[data-section="Interaction Design"] .cs-ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  max-width: 760px;
}
[data-section="Interaction Design"] .cs-ol li {
  font-size: 13px;
  line-height: 1.52;
}

/* ── Step grid (what changed) ── */
.cs-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.cs-step-card {
  background: var(--surface);
  padding: 20px 22px 24px;
}
.cs-step-num {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  background: var(--surface-2);
  border-radius: 4px;
  padding: 3px 7px;
}
.cs-step-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.cs-step-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── Callout band ── */
.cs-callout-band {
  border-left: 2px solid var(--border-mid);
  padding: 4px 0 4px 18px;
  margin: 28px 0;
}
.cs-callout-title { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs-callout-text { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 58ch; }

/* ── Stat grid ── */
.cs-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
}
.cs-stat-card {
  background: var(--surface);
  padding: 22px 24px 26px;
}
.cs-stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 8px; }
.cs-stat-value { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; display: block; margin-bottom: 8px; }
.cs-stat-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

[data-section="Outcome"] .cs-stat-grid {
  margin-top: 14px;
}

/* ── Timeline ── */
.cs-timeline { margin-top: 24px; display: flex; flex-direction: column; padding-left: 80px; position: relative; }
.cs-timeline-item { display: grid; grid-template-columns: 60px 20px 1fr; gap: 0 14px; align-items: start; margin-left: -80px; padding-bottom: 24px; position: relative; }
.cs-timeline-item:last-child { padding-bottom: 0; }
.cs-timeline-meta { font-size: 10px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; text-align: right; padding-top: 3px; }
.cs-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); margin-top: 4px; position: relative; flex-shrink: 0; }
.cs-timeline-dot::after { content: ''; position: absolute; top: 10px; left: 4px; width: 2px; height: calc(100% + 14px); background: var(--border); }
.cs-timeline-item:last-child .cs-timeline-dot::after { display: none; }
.cs-timeline-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cs-timeline-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── Device wireframe ── */
.cs-device-wrap { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.cs-phone { background: var(--surface); border-radius: 14px; border: 1.5px solid var(--border); overflow: hidden; flex: 1; max-width: 176px; box-shadow: 0 3px 12px var(--shadow-sm); }
.cs-phone-bar { height: 9px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.cs-phone-notch { width: 34px; height: 5px; background: var(--border-mid); border-radius: 3px; }
.cs-phone-screen { min-height: 250px; padding: 7px; display: flex; flex-direction: column; gap: 5px; }

.cs-wireframe-journey {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.wf-journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.wf-journey-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.wf-journey-time {
  font-size: 10px;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
}

.wf-journey-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf-journey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.wf-step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.wf-step-id {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 2px;
}
.wf-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.wf-step-copy {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.45;
}

.wf-mini-phone {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 8px 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wf-mini-notch {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-mid);
  margin: 0 auto 2px;
}
.wf-mini-line {
  height: 5px;
  border-radius: 999px;
  background: var(--border-mid);
}
.wf-mini-line.lg { width: 88%; }
.wf-mini-line.md { width: 72%; }
.wf-mini-line.sm { width: 56%; }
.wf-mini-sheet {
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.wf-state-confirm .wf-mini-sheet { height: 16px; opacity: 0.42; }
.wf-state-pause .wf-mini-sheet { height: 28px; opacity: 0.72; }
.wf-state-reveal .wf-mini-sheet {
  height: 44px;
  opacity: 1;
  border-color: rgba(37,99,235,0.38);
  background: rgba(37,99,235,0.08);
}

.wf-journey-arrow {
  font-size: 15px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1;
}

/* ══════════════════════════════════════
   NEXT PROJECT
══════════════════════════════════════ */
.cs-next {
  background: var(--bg);
  border-top: none;
  padding: clamp(40px, 5vw, 64px) 0;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  html.js-enhanced body.cs-page .cs-scroll-section,
  html.js-enhanced body.cs-page .cs-scroll-item,
  html.js-enhanced body.cs-page .cs-scroll-float {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.cs-next-inner { max-width: var(--max); margin: 0 auto; }
.cs-next-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cs-next-title {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 320px;
  line-height: 1.35;
}
.cs-next-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 280px;
}
.cs-next-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cs-next-link:hover {
  border-color: transparent;
  box-shadow: 0 10px 30px var(--shadow-md);
  transform: translateY(-2px);
}
.cs-next-copy { min-width: 0; }
.cs-next-title { max-width: 100%; }
.cs-next-desc { max-width: 100%; }
.cs-next-action {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-next-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
  transition: color 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}
.cs-next-link:hover .cs-next-action-pill {
  color: var(--accent);
  background: #fff;
  border-color: var(--accent);
  transform: translateX(2px);
}
.cs-next-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cs-next-thumb img,
.cs-next-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-next-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}

/* ── Footer override ── */
body.cs-page footer#footer { background: var(--bg); border-top: 1px solid var(--border); padding-left: 0; padding-right: 0; }
body.cs-page .footer-top { border-bottom-color: var(--border); }
body.cs-page .footer-name { color: var(--ink); }
body.cs-page .footer-nav a { color: var(--ink-2); }
body.cs-page .footer-nav a:hover { color: var(--ink); }
body.cs-page .footer-copy { color: var(--ink-3); }
body.cs-page .footer-weather { color: var(--ink-2); }
body.cs-page .fw-city { color: var(--ink); }
body.cs-page .fw-sep { color: var(--ink-3); }
body.cs-page .fw-temp { color: var(--ink-2); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* ── Mobile nav height sync (nav shrinks to 60px at ≤640px) ── */
@media (max-width: 640px) {
  .cs-context-bar { top: 60px; }
  .cs-progress { top: 60px; }
  body.cs-page:has(.cs-context-bar.visible) .cs-progress { top: 96px; }
}

/* ── Tablet large ── */
@media (max-width: 1080px) {
  body.cs-page { --gutter: clamp(20px, 4vw, 48px); }
  .cs-header-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
  .cs-scan-strip { grid-template-columns: 1fr 1fr; }
  .cs-scan-card:nth-child(2) { border-right: none; }
  .cs-scan-card[data-type="outcome"] { grid-column: 1 / -1; border-top: 1px solid var(--border); border-right: none; min-height: auto; }
}

/* ── Tablet ── */
@media (max-width: 860px) {
  .cs-header-layout { grid-template-columns: 1fr; }
  .cs-header-proto { order: -1; }
  .cs-header-phone-frame { width: min(100%, 220px); margin: 0 auto; }

  .cs-problem-brief { grid-template-columns: 1fr; gap: 18px; }
  .cs-problem-why { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 14px; }
  .cs-problem-title { font-size: clamp(24px, 8vw, 32px); max-width: none; }
  .cs-problem-text { font-size: 15px; max-width: none; }
  .cs-problem-list li { font-size: 14px; }
  body.cs-hotel .cs-problem-brief { margin-top: 36px; margin-bottom: 16px; gap: 20px; }
  body.cs-hotel .cs-problem-why { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 14px 14px; }
  body.cs-hotel .cs-body > .cs-block { padding: 46px 0; }
  body.cs-hotel .cs-body > .cs-block + .cs-block { border-top: none; }
  body.cs-hotel .cs-showcase { margin-top: 34px; }
  body.cs-hotel .cs-testing-stack { margin-top: 32px; gap: 44px; }
  body.cs-hotel [data-section="System Friction"] .cs-findings,
  body.cs-hotel [data-section="Behavioral Insight"] .cs-findings,
  body.cs-hotel [data-section="Existing Solution Failed"] .cs-findings { grid-template-columns: 1fr; }

  .cs-scan-strip { grid-template-columns: 1fr; }
  .cs-scan-card { border-right: none; border-top: 1px solid var(--border); min-height: auto; }
  .cs-scan-card:first-child { border-top: none; }
  .cs-scan-card[data-type="outcome"] { grid-column: auto; }
  .cs-scan-metric-value { font-size: 22px; }

  .cs-split,
  .cs-split-system-friction,
  .cs-split-existing-failed,
  .cs-split-interaction { grid-template-columns: 1fr; gap: 32px; }
  .cs-split-booking-failed { grid-template-columns: 1fr; gap: 22px; }
  .cs-compact-cards,
  .cs-recovery-grid { grid-template-columns: 1fr; }
  body.cs-hotel .cs-split.cs-split-unlocked { grid-template-columns: 1fr; gap: 40px; }
  .cs-stakeholder-grid { grid-template-columns: 1fr; gap: 10px; }
  .cs-flight-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-unlocked-tags { grid-template-columns: 1fr 1fr; }
  .cs-unlocked-shots-grid { grid-template-columns: 1fr 1fr; }
  .cs-unlocked-benefits-row { grid-template-columns: 1fr; }
  .cs-unlocked-benefit { border-right: none; border-bottom: 1px solid var(--border); }
  .cs-unlocked-benefit:last-child { border-bottom: none; }
  .cs-unlocked-learns-row { grid-template-columns: 1fr; }
  .cs-unlocked-patterns { grid-template-columns: 1fr 1fr; }
  body.cs-system .cs-impact-system { grid-template-columns: 1fr; }
  body.cs-system .cs-system-pillars,
  body.cs-system .cs-system-operating-grid { grid-template-columns: 1fr; }
  body.cs-system .cs-system-guardrails-grid { grid-template-columns: 1fr; }
  body.cs-system .cs-system-principles,
  body.cs-system .cs-system-outcome-board { grid-template-columns: 1fr; }
  .cs-system-compare,
  .cs-system-failure-grid { grid-template-columns: 1fr; }

  /* Figures: stretch to full column and let the inner image self-center */
  .cs-figure-system-friction,
  .cs-figure-existing-failed,
  .cs-booking-failed-figure { justify-self: stretch; max-width: none; }
  /* Override higher-specificity base max-widths */
  .cs-block-existing-failed .cs-figure-existing-failed { max-width: none; }
  .cs-booking-failed-figure { max-width: none; }
  .cs-unlocked-media-stack { justify-items: start; }
  .cs-unlocked-video-wrap { position: static; top: auto; transform: none; }

  /* Phone images: keep constrained width and center within figure */
  body.cs-hotel .cs-figure-system-friction .cs-img-ph.has-media.media-phone,
  body.cs-hotel .cs-figure-existing-failed .cs-img-ph.has-media.media-phone,
  body.cs-hotel .cs-block-existing-failed .cs-figure-existing-failed .cs-img-ph.has-media.media-phone,
  body.cs-hotel .cs-booking-failed-figure .cs-img-ph.has-media.media-phone {
    width: min(100%, 300px);
    margin-left: auto;
    margin-right: auto;
  }

  /* Problem section: force single-column despite higher base specificity */
  body.cs-hotel .cs-problem-brief {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.cs-hotel .cs-problem-main { max-width: none; }
  body.cs-hotel .cs-problem-title { max-width: none; }
  body.cs-hotel .cs-problem-text { max-width: none; }
  body.cs-hotel .cs-problem-why { padding: 14px 16px; }

  .cs-before-after { grid-template-columns: 1fr; gap: 32px; }
  .cs-testing-compare { gap: 32px; }
  .cs-testing-iphone-frame { width: min(100%, 220px); }
  .cs-testing-compare-box { padding: 20px; }

  .cs-cards { grid-template-columns: 1fr 1fr; }
  .cs-step-grid { grid-template-columns: 1fr; background: transparent; border: none; border-radius: 0; gap: 1px; }
  .cs-step-card { border: 1px solid var(--border); border-radius: 10px; }
  .cs-stat-grid { grid-template-columns: 1fr 1fr; }
  .cs-img-grid-3 { grid-template-columns: 1fr 1fr; }
  .cs-showcase-row.options-variation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-section="Interaction Design"] .cs-ol { grid-template-columns: 1fr; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  /* Context bar and progress bar: account for shorter 60px nav on mobile */
  .cs-context-bar {
    top: 60px;
    gap: 5px;
    padding: 0 16px;
  }
  .cs-progress { top: 60px; }
  body.cs-page:has(.cs-context-bar.visible) .cs-progress { top: 96px; }
  .cs-context-label { display: none; }
  .cs-context-sep:first-of-type { display: none; }

  body.cs-page { --gutter: 16px; }

  /* Header: account for 60px mobile nav */
  .cs-header { padding-top: 72px; padding-bottom: 20px; }
  .cs-header-layout { gap: 16px; }
  .cs-header-phone-frame { width: min(100%, 200px); }

  /* Reading time + company tag */
  .cs-header-kicker { gap: 8px; margin-bottom: 12px; }
  .cs-reading-time { font-size: 9px; min-height: 26px; padding: 0 9px; }
  .cs-company-tag { font-size: 10px; }

  /* Title */
  .cs-title { font-size: clamp(24px, 7.5vw, 34px); line-height: 1.08; max-width: 100%; margin-bottom: 14px; }
  .cs-summary { font-size: 15px; line-height: 1.65; margin-bottom: 20px; }

  /* Meta row and tools */
  .cs-meta-row { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-bottom: 18px; }
  .cs-meta-label { font-size: 9px; }
  .cs-meta-value { font-size: 13px; }

  /* Blocks */
  .cs-block { padding: 32px 0; }
  .cs-block-label { font-size: 10px; margin-bottom: 12px; }
  .cs-block-statement { font-size: clamp(20px, 6.5vw, 28px); max-width: none; line-height: 1.25; }
  .cs-block-text { font-size: 14px; max-width: none; line-height: 1.65; }

  body.cs-hotel .cs-body > .cs-block { padding: 36px 0; }
  body.cs-hotel .cs-problem-brief { margin-top: 28px; margin-bottom: 10px; }
  body.cs-hotel .cs-problem-title { margin-bottom: 12px; }
  body.cs-hotel .cs-block-label { margin-bottom: 12px; }
  body.cs-hotel .cs-block-statement { margin-bottom: 14px; }

  /* Impact stats */
  .cs-impact { flex-wrap: wrap; gap: 20px 0; }
  .cs-impact-stat { padding: 0 24px 0 0; margin-right: 24px; }
  .cs-impact-num { font-size: clamp(26px, 7vw, 36px); }
  .cs-gallery-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cs-gallery-indicator { min-width: 0; width: min(100%, 220px); }

  /* Phase */
  .cs-phase { padding: 36px 0 0; }

  /* Cards and grids */
  .cs-cards { grid-template-columns: 1fr; }
  .cs-step-grid { grid-template-columns: 1fr; }
  .cs-stat-grid { grid-template-columns: 1fr; background: transparent; border: none; border-radius: 0; gap: 0; }
  .cs-stat-card { border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 0; }
  .cs-stat-card:last-child { border-bottom: none; }

  /* Image grids */
  .cs-img-grid-2 { grid-template-columns: 1fr; }
  .cs-img-grid-3 { grid-template-columns: 1fr; }
  .cs-showcase-row.col-2,
  .cs-showcase-row.col-3,
  .cs-showcase-row.col-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-showcase-row.options-variation-grid { grid-template-columns: 1fr; gap: 14px; }
  .cs-chip-grid,
  .cs-inline-points { gap: 6px; }

  /* Findings / findings list */
  .cs-findings { margin-top: 20px; gap: 12px; }
  .cs-finding { gap: 10px; }
  .cs-finding-text { font-size: 14px; line-height: 1.55; }

  /* Booking failed / flight info */
  .cs-booking-failed-wrap { margin-top: 20px; padding-top: 20px; }
  .cs-booking-failed-copy { max-width: none; }
  .cs-booking-failed-title { font-size: clamp(18px, 5.5vw, 22px); }
  .cs-recovery-grid { gap: 8px; }
  .cs-booking-failed-list { gap: 6px; }
  .cs-booking-failed-list li { font-size: 14px; }
  .cs-chip,
  .cs-inline-point { font-size: 11px; min-height: 26px; padding: 0 10px; }
  /* Re-center booking-failed phone on mobile (specificity override) */
  body.cs-hotel .cs-booking-failed-figure .cs-img-ph.has-media.media-phone {
    width: min(100%, 260px);
    margin-left: auto;
    margin-right: auto;
  }
  .cs-booking-failed-figure { max-width: none; }

  .cs-flight-info-wrap { margin-top: 20px; padding-top: 18px; }
  .cs-flight-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .cs-flight-info-title { max-width: none; font-size: clamp(18px, 5.5vw, 22px); }
  .cs-flight-figure figcaption { font-size: 12px; }
  .cs-system-loop { margin-top: 16px; padding: 12px; }
  .cs-system-loop-steps { gap: 6px; }
  .cs-system-loop-steps li { font-size: 11px; padding: 6px 10px; }
  .cs-system-compare { margin-top: 14px; gap: 8px; }
  .cs-system-compare-card { padding: 12px; }
  .cs-system-compare-flow { font-size: clamp(16px, 5vw, 20px); }
  .cs-system-failure-grid { margin-top: 14px; gap: 8px; }
  .cs-system-failure { padding: 12px; }
  .cs-system-failure h3 { font-size: 16px; }

  /* Existing/system friction figures: re-center on mobile */
  body.cs-hotel .cs-figure-system-friction .cs-img-ph.has-media.media-phone,
  body.cs-hotel .cs-figure-existing-failed .cs-img-ph.has-media.media-phone,
  body.cs-hotel .cs-block-existing-failed .cs-figure-existing-failed .cs-img-ph.has-media.media-phone {
    width: min(100%, 260px);
    margin-left: auto;
    margin-right: auto;
  }
  .cs-figure-existing-failed,
  .cs-figure-system-friction { max-width: none; }

  /* "What This Unlocked" */
  .cs-unlocked-lead { font-size: 15px; line-height: 1.6; }
  .cs-unlocked-patterns { grid-template-columns: 1fr 1fr; }
  .cs-unlocked-friction { padding-left: 14px; }
  .cs-unlocked-tags { grid-template-columns: 1fr 1fr; }
  .cs-unlocked-shots-grid { grid-template-columns: 1fr 1fr; }
  .cs-unlocked-benefits-row { grid-template-columns: 1fr; }
  .cs-unlocked-learns-row { grid-template-columns: 1fr; }
  .cs-unlocked-media-stack { position: static; top: auto; width: 100%; }
  .cs-unlocked-media-stack .cs-testing-iphone-frame { width: min(100%, 220px); margin: 0 auto; }
  .cs-unlocked-callout { padding: 20px 22px; }
  .cs-unlocked-callout-text { font-size: clamp(18px, 5vw, 24px); }

  /* Stakeholder */
  .cs-stakeholder-point { padding: 14px; }
  .cs-stakeholder-num { font-size: 22px; }

  /* Callout */
  .cs-callout { padding: 16px; }
  .cs-callout-text { font-size: clamp(16px, 5.5vw, 20px); }

  /* Testing compare */
  .cs-testing-compare { gap: 20px; }
  .cs-testing-compare-box { padding: 14px; }
  .cs-testing-compare-label { font-size: 9px; }
  .cs-testing-iphone-frame { width: min(100%, 200px); }

  /* Cover */
  .cs-cover { margin: 18px 0 0; }

  /* Scroll gallery */
  .cs-scroll-gallery { gap: 8px; }
  .cs-scroll-gallery img {
    flex: 0 0 72vw;
    width: 72vw;
    height: auto;
    aspect-ratio: 390 / 844;
  }

  /* AB table */
  .cs-ab-row { grid-template-columns: 1fr; gap: 2px; }
  .cs-ab-head { display: none; }
  .cs-ab-row span:first-child { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); font-weight: 700; }

  /* Wireframe journey */
  .cs-wf-journey-head { flex-direction: column; gap: 6px; }

  /* Next case study */
  .cs-next-link { grid-template-columns: 1fr; gap: 20px; }
  .cs-next-action { justify-content: flex-start; }
  .cs-next-title { font-size: clamp(18px, 6vw, 24px); }
  .cs-next-meta { font-size: 10px; }
}

/* ── Small mobile ── */
@media (max-width: 420px) {
  body.cs-page { --gutter: 14px; }
  .cs-meta-row { grid-template-columns: 1fr; }
  .cs-impact { flex-direction: column; gap: 18px; }
  .cs-impact-stat { padding: 0; border-right: none; margin-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  .cs-impact-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .cs-meta-row { gap: 10px; padding-bottom: 16px; }
  .cs-impact-stat { padding: 14px 16px 16px; }
  .cs-scroll-gallery img { flex-basis: 82vw; width: 82vw; }
  .cs-showcase-row.options-variation-grid { grid-template-columns: 1fr; }
  .cs-title { font-size: clamp(22px, 7vw, 28px); max-width: 100%; }
  .cs-summary { font-size: 14px; }
  .cs-block-statement { font-size: clamp(19px, 6vw, 26px); }
  .cs-header { padding-top: 68px; }
  .cs-gallery-indicator { width: 100%; }
  .cs-showcase-row.col-2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   DARK THEME - Residual Overrides
   (Only for elements whose light values
   can't be fully expressed with tokens)
══════════════════════════════════════ */

/* TOC is now token-based but keep active accent-muted */
[data-theme="dark"] .cs-toc-item.active {
  background: var(--accent-muted);
}

/* Colored placeholder variants - neutralise tints in dark */
[data-theme="dark"] .cs-img-ph.ph-product { background: var(--surface-2); border-color: rgba(96,165,250,0.15); }
[data-theme="dark"] .cs-img-ph.ph-data    { background: var(--surface-2); border-color: rgba(52,211,153,0.15); }
[data-theme="dark"] .cs-img-ph.ph-archive { background: var(--surface-2); border-color: rgba(251,146,60,0.15); }
[data-theme="dark"] .cs-img-ph.ph-system  { background: var(--surface-2); border-color: rgba(192,132,252,0.15); }
[data-theme="dark"] .cs-img-ph.ph-motion  { background: #0a0a0c; border-color: rgba(255,255,255,0.08); }

/* Scroll gallery inner glow should be invisible in dark */
[data-theme="dark"] .cs-scroll-gallery img {
  box-shadow: none;
}

/* Final design highlight uses accent shade from dark token */
[data-theme="dark"] .cs-option-card.is-final {
  border-color: rgba(96,165,250,0.5);
  box-shadow: 0 0 0 2px rgba(96,165,250,0.12);
}
[data-theme="dark"] .cs-option-card.is-final .cs-option-variation-media {
  border-color: rgba(96,165,250,0.35);
}

/* Wireframe state: reveal uses blue tint - fix for dark */
[data-theme="dark"] .wf-state-reveal .wf-mini-sheet {
  border-color: rgba(96,165,250,0.38);
  background: rgba(96,165,250,0.12);
}

/* Phase dividers (if present) */
[data-theme="dark"] .cs-phase::before,
[data-theme="dark"] .cs-phase::after {
  background: var(--border);
}

/* ══════════════════════════════════════
   FREEWAY-STYLE EDITORIAL LAYOUT (.cs-fw)
   Scoped, additive. Reuses existing tokens
   and phone-frame / option-video primitives.
══════════════════════════════════════ */

/* Section eyebrow shared across fw blocks */
body.cs-fw .fw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
body.cs-fw .fw-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* ── Introduction ── */
body.cs-fw .fw-intro-lead {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 24px;
}
body.cs-hotel .fw-intro-lead {
  font-size: clamp(26px, 2.8vw, 30px);
  font-weight: 700;
  max-width: 100%;
}
body.cs-fw .fw-prose {
  max-width: 60ch;
}
body.cs-fw .fw-prose p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.74;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.cs-text-highlight {
  background: #2f5eea;
  color: #fff;
  padding: 0.02em 0.14em 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body.cs-hotel .cs-block[data-section="Introduction"] .fw-prose p {
  font-size: clamp(16px, 1.68vw, 18px);
}
body.cs-fw .fw-prose p:last-child { margin-bottom: 0; }

/* ── Existing solution: 3 cards ── */
body.cs-fw .fw-hurdles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
body.cs-fw .fw-hurdle {
  background: var(--surface);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.cs-fw .fw-hurdle-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1;
}
body.cs-fw .fw-hurdle-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.cs-fw .fw-hurdle-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── Personas: 2 cards ── */
body.cs-fw .fw-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
body.cs-fw .fw-persona {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 26px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
body.cs-fw .fw-persona-tag {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
body.cs-fw .fw-persona-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.cs-fw .fw-persona-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── How might we: oversized numbered questions ── */
body.cs-fw .fw-hmw {
  margin-top: 40px;
  display: grid;
  gap: 0;
}
body.cs-fw .fw-hmw-item {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
body.cs-fw .fw-hmw-item:last-child { border-bottom: 1px solid var(--border); }
body.cs-fw .fw-hmw-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 400;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.9;
}
body.cs-fw .fw-hmw-q {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Concept showcases: big media + side copy, alternating ── */
body.cs-fw .fw-concepts { margin-top: 40px; display: grid; gap: clamp(36px, 5vw, 64px); }
body.cs-fw .fw-concept {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
body.cs-fw .fw-concept--flip { grid-template-columns: 1fr minmax(240px, 320px); }
body.cs-fw .fw-concept--flip .fw-concept-copy { order: -1; }

/* media wrapper reuses cs-option-card JS hooks; reset its chrome here */
body.cs-fw .fw-concept .cs-option-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.cs-fw .fw-concept .cs-option-card:hover { box-shadow: none; }
body.cs-fw .fw-concept .cs-option-variation-media {
  width: 100%;
  margin-inline: auto;
  border-radius: 22px;
  border: 1px solid var(--border-mid);
  box-shadow: 0 18px 50px var(--shadow-md);
}
body.cs-fw .fw-concept-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
body.cs-fw .fw-concept-title {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}
body.cs-fw .fw-concept-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 46ch;
}
body.cs-fw .fw-concept-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
body.cs-fw .fw-concept-status::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
}
body.cs-fw .fw-concept-status.is-win { color: #2a9d63; }
body.cs-fw .fw-concept-status.is-win::before { background: #2a9d63; }
[data-theme="dark"] body.cs-fw .fw-concept-status.is-win { color: #66d899; }
[data-theme="dark"] body.cs-fw .fw-concept-status.is-win::before { background: #66d899; }
body.cs-fw .fw-concept.is-final .cs-option-card {
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--border-mid));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, var(--accent) 10%), var(--surface-2));
  box-shadow: 0 24px 64px rgba(47, 94, 234, 0.14);
  transform: translateY(-2px);
}
body.cs-fw .fw-concept.is-final .fw-concept-title {
  color: var(--accent);
}
body.cs-fw .fw-concept.is-final .fw-concept-status {
  color: #2a9d63;
}
body.cs-fw .fw-concept.is-final .fw-concept-status::before {
  background: #2a9d63;
}

/* ── Insights grid (2×2) ── */
body.cs-fw .fw-insights {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
body.cs-fw .fw-insight {
  background: var(--surface);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
body.cs-fw .fw-insight-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.cs-fw .fw-insight-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ── Learning from missteps ── */
body.cs-fw .fw-missteps { margin-top: 28px; display: grid; gap: 12px; max-width: 64ch; }
body.cs-fw .fw-misstep {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
body.cs-fw .fw-misstep-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}
body.cs-fw .fw-misstep-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
body.cs-fw .fw-misstep-text strong { color: var(--ink); font-weight: 600; }

/* ── The reveal ── */
body.cs-fw .fw-reveal-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
body.cs-fw .fw-reveal-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
body.cs-fw .fw-reveal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.cs-fw .fw-reveal-title em {
  font-style: italic;
  color: var(--accent);
}
body.cs-fw .fw-reveal-stage {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  aspect-ratio: 390 / 600;
  width: min(100%, 360px);
  margin: 0 auto;
}
body.cs-fw .fw-reveal-stage img,
body.cs-fw .fw-reveal-stage video {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}

/* ── Feature rows (alternating) ── */
body.cs-fw .fw-features { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: clamp(40px, 6vw, 72px); }
body.cs-fw .fw-feature {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
body.cs-fw .fw-feature--flip { grid-template-columns: 1fr minmax(220px, 300px); }
body.cs-fw .fw-feature--flip .fw-feature-copy { order: -1; }
body.cs-fw .fw-feature-media {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  box-shadow: 0 16px 44px var(--shadow-md);
}
body.cs-fw .fw-feature-media.is-phone { aspect-ratio: 390 / 844; width: min(100%, 300px); margin-inline: auto; }
body.cs-fw .fw-feature-media img,
body.cs-fw .fw-feature-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}

/* ── Hotel case: reusable iPhone shell for product assets ── */
body.cs-hotel .cs-gallery-device,
body.cs-hotel .cs-option-variation-media,
body.cs-fw .fw-reveal-stage,
body.cs-fw .fw-feature-media.is-phone {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 390 / 844;
  padding: 7px;
  border-radius: 34px;
  overflow: visible;
  background: linear-gradient(145deg, #34343a 0%, #111114 46%, #29292f 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.48),
    0 18px 48px rgba(0,0,0,0.18);
}

body.cs-hotel .cs-gallery-device::before,
body.cs-hotel .cs-option-variation-media::before,
body.cs-fw .fw-reveal-stage::before,
body.cs-fw .fw-feature-media.is-phone::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 21px;
  border-radius: 999px;
  background: #09090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  z-index: 4;
  pointer-events: none;
}

body.cs-hotel .cs-gallery-device::before,
body.cs-hotel .cs-option-variation-media::before,
body.cs-hotel .fw-reveal-stage::before,
body.cs-hotel .fw-feature-media.is-phone::before,
body.cs-hotel .hand-mockup-device::before {
  content: none;
  display: none;
}

body.cs-hotel .cs-gallery-device::after,
body.cs-hotel .cs-option-variation-media::after,
body.cs-fw .fw-reveal-stage::after,
body.cs-fw .fw-feature-media.is-phone::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 27px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 3;
  pointer-events: none;
}

body.cs-hotel .cs-gallery-device > img,
body.cs-hotel .cs-option-variation-media > video,
body.cs-fw .fw-reveal-stage > video,
body.cs-fw .fw-feature-media.is-phone > img,
body.cs-fw .fw-feature-media.is-phone > video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  display: block;
  background: #f7f8fb;
  border: 0;
  padding: 0;
  box-shadow: none;
}

body.cs-hotel .cs-gallery-device {
  flex: 0 0 clamp(190px, 21vw, 232px);
  width: clamp(190px, 21vw, 232px);
  scroll-snap-align: start;
}

body.cs-hotel .cs-gallery-device > img,
body.cs-hotel .cs-option-variation-media > video,
body.cs-fw .fw-reveal-stage > video,
body.cs-fw .fw-feature-media.is-phone > img,
body.cs-fw .fw-feature-media.is-phone > video {
  object-fit: cover;
  object-position: center top;
}

body.cs-fw .fw-reveal-stage {
  width: min(100%, 330px);
  margin-inline: auto;
}

body.cs-fw .fw-feature-media.is-phone {
  width: min(100%, 300px);
  margin-inline: auto;
}

body.cs-hotel .cs-option-toggle {
  z-index: 6;
}

body.cs-fw .fw-feature-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 8px;
}
body.cs-fw .fw-feature-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}
body.cs-fw .fw-feature-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 46ch;
}
/* social-proof chips row inside a feature */
body.cs-fw .fw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
body.cs-fw .fw-chip-row img {
  height: 34px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ── Going-live timeline ── */
body.cs-fw .fw-journey {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  position: relative;
}
body.cs-fw .fw-journey::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}
body.cs-fw .fw-journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: center;
  padding: 0;
  text-align: center;
}
body.cs-fw .fw-journey-step-num {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: 0 0 0 8px var(--paper);
}
body.cs-fw .fw-journey-step.is-key .fw-journey-step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
body.cs-fw .fw-journey-step-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

/* ── Result numbers ── */
body.cs-fw .fw-results {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}
body.cs-fw .fw-result {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--border);
}
body.cs-fw .fw-result-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.cs-fw .fw-result.is-up .fw-result-num { color: #2a9d63; }
[data-theme="dark"] body.cs-fw .fw-result.is-up .fw-result-num { color: #66d899; }
body.cs-fw .fw-result.is-down .fw-result-num { color: #d86f5f; }
[data-theme="dark"] body.cs-fw .fw-result.is-down .fw-result-num { color: #ff8d80; }
body.cs-fw .fw-result-label {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}
body.cs-fw .fw-result-label strong { color: var(--ink); font-weight: 600; }

/* ── Closing reflection ── */
body.cs-fw .fw-closing-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 0 24px;
}
body.cs-hotel .fw-closing-lead {
  max-width: 100%;
}
body.cs-fw .fw-learns { margin-top: 28px; display: grid; gap: 16px; max-width: 70ch; }
body.cs-fw .fw-learn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}
body.cs-fw .fw-learn-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
}
body.cs-fw .fw-learn strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.cs-fw .fw-learn p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Hotel rewrite: narrative modules and asset groupings ── */
body.cs-hotel .cs-impact--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cs-hotel .cs-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

body.cs-hotel .cs-opening-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 4.2vw, 56px);
}

body.cs-hotel .cs-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

body.cs-hotel .cs-quote-layout .fw-prose {
  max-width: 68ch;
}

body.cs-hotel .cs-story-callout {
  position: sticky;
  top: 112px;
  padding: clamp(22px, 3vw, 32px);
  border-left: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(47, 94, 234, 0.08), rgba(47, 94, 234, 0.02));
}

body.cs-hotel .cs-story-callout-label {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

body.cs-hotel .cs-story-callout p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

body.cs-hotel .cs-session-stack {
  position: sticky;
  top: 112px;
  display: grid;
  justify-self: end;
  width: min(100%, 320px);
  gap: 12px;
}

body.cs-hotel .cs-session-plane {
  position: absolute;
  top: 52%;
  right: clamp(-104px, -7vw, -68px);
  z-index: 0;
  width: clamp(178px, 17vw, 240px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
}

body.cs-hotel .cs-session-card {
  position: relative;
  z-index: 1;
  min-height: clamp(126px, 12.5vw, 164px);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 34px rgba(15, 23, 42, 0.06);
}

body.cs-hotel .cs-session-card.has-plane {
  overflow: hidden;
  padding-left: clamp(28px, 3.4vw, 42px);
  padding-right: clamp(88px, 7vw, 112px);
}

body.cs-hotel .cs-session-card.has-plane .cs-session-value,
body.cs-hotel .cs-session-card.has-plane .cs-session-label {
  position: relative;
  z-index: 1;
}

body.cs-hotel .cs-session-card.is-accent {
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-color: var(--border-mid);
}

body.cs-hotel .cs-session-value {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
  white-space: nowrap;
  color: var(--ink);
}

body.cs-hotel .cs-session-card.is-accent .cs-session-value {
  color: var(--accent);
}

body.cs-hotel .cs-session-label {
  display: block;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-2);
}

[data-theme="dark"] body.cs-hotel .cs-session-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #17191f 0%, #101217 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] body.cs-hotel .cs-session-card.is-accent {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #17191f 0%, #101217 100%);
}

[data-theme="dark"] body.cs-hotel .cs-session-label {
  color: rgba(245, 245, 247, 0.62);
}

body.cs-hotel .cs-context-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}

body.cs-hotel .cs-context-metric {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
}

body.cs-hotel .cs-context-metric-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
}

body.cs-hotel .cs-context-metric.is-warning .cs-context-metric-value {
  color: #d86f5f;
}

body.cs-hotel .cs-context-metric-label {
  max-width: 19ch;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
}

body.cs-hotel .cs-question-line {
  margin: clamp(26px, 4vw, 44px) 0 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.cs-hotel .cs-large-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--accent);
}

body.cs-hotel .cs-hmw-banner {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(20px, 3vw, 34px) 0 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

body.cs-hotel .cs-hmw-banner p {
  margin: 0;
  max-width: 50ch;
  font-family: 'Geist', var(--font);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

body.cs-hotel .cs-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 64px);
  align-items: start;
}

body.cs-hotel .cs-audit-grid:has(.cs-audit-media:only-child) {
  grid-template-columns: minmax(280px, 480px);
  justify-content: center;
}

body.cs-hotel .cs-audit-media {
  margin: 0;
  display: grid;
  gap: 16px;
}

body.cs-hotel .cs-audit-media figcaption {
  max-width: 34ch;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

body.cs-hotel .cs-audit-media .fw-feature-media.is-phone {
  width: min(100%, 380px);
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.cs-hotel .cs-audit-media .fw-feature-media.is-phone::before,
body.cs-hotel .cs-audit-media .fw-feature-media.is-phone::after {
  content: none;
  display: none;
}

body.cs-hotel .cs-audit-media .fw-feature-media.is-phone > img {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

body.cs-hotel .cs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}

body.cs-hotel .cs-trust-chip-card {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--surface);
  display: grid;
  gap: 16px;
  align-content: start;
}

body.cs-hotel .cs-trust-chip-card img {
  width: min(100%, 190px);
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

body.cs-hotel .cs-trust-chip-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

body.cs-hotel .cs-trust-feature-stack,
body.cs-hotel .cs-recovery-feature {
  margin-top: clamp(46px, 6vw, 82px);
}

body.cs-hotel .cs-wide-media {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 16px 44px var(--shadow-md);
}

body.cs-hotel .cs-wide-media img {
  width: 100%;
  display: block;
}

body.cs-hotel .cs-sequence-grid {
  margin-top: clamp(34px, 5vw, 58px);
}

body.cs-hotel .cs-segment-showcase {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
  margin-top: clamp(34px, 5vw, 60px);
}

body.cs-hotel .cs-segment-panel {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-bottom: clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}

body.cs-hotel .cs-segment-panel:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.cs-hotel .cs-segment-panel .fw-feature-media,
body.cs-hotel .cs-segment-copy {
  will-change: transform;
  transition: transform 0.16s linear;
}

body.cs-hotel .cs-segment-panel .fw-feature-media {
  transform: translate3d(0, var(--segment-media-y, 0px), 0);
}

body.cs-hotel .cs-segment-copy {
  transform: translate3d(0, var(--segment-copy-y, 0px), 0);
}

@media (prefers-reduced-motion: reduce) {
  body.cs-hotel .cs-segment-panel .fw-feature-media,
  body.cs-hotel .cs-segment-copy {
    transform: none !important;
    transition: none;
  }
}

body.cs-hotel .cs-impact-note {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 62ch;
}

[data-theme="dark"] body.cs-hotel .cs-story-callout {
  background: linear-gradient(180deg, rgba(126, 167, 255, 0.14), rgba(126, 167, 255, 0.03));
}

/* ── Responsive ── */
@media (max-width: 860px) {
  body.cs-fw .fw-hurdles { grid-template-columns: 1fr; }
  body.cs-fw .fw-personas { grid-template-columns: 1fr; }
  body.cs-fw .fw-insights { grid-template-columns: 1fr; }
  body.cs-fw .fw-journey {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 44px;
  }
  body.cs-fw .fw-journey::before {
    top: 0;
    bottom: 0;
    left: 18px;
    right: auto;
    width: 1px;
    height: auto;
  }
  body.cs-fw .fw-journey-step {
    min-height: 58px;
    justify-items: start;
    padding: 0 0 24px;
    text-align: left;
  }
  body.cs-fw .fw-journey-step:last-child {
    padding-bottom: 0;
  }
  body.cs-fw .fw-journey-step-num {
    position: absolute;
    top: 0;
    left: -44px;
    box-shadow: 0 0 0 8px var(--paper);
  }
  body.cs-fw .fw-journey-step-title {
    max-width: none;
    padding-top: 5px;
  }
  body.cs-fw .fw-concept,
  body.cs-fw .fw-concept--flip,
  body.cs-fw .fw-feature,
  body.cs-fw .fw-feature--flip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.cs-fw .fw-concept--flip .fw-concept-copy,
  body.cs-fw .fw-feature--flip .fw-feature-copy { order: 0; }
  body.cs-fw .fw-concept .cs-option-variation-media { width: min(100%, 300px); }
  body.cs-fw .fw-hmw-item { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  body.cs-fw .fw-hmw-num { font-size: clamp(56px, 18vw, 88px); }
  body.cs-fw .fw-result { grid-template-columns: 1fr; gap: 6px; }
  body.cs-fw .fw-result-label { max-width: none; }
  body.cs-hotel .cs-opening-grid,
  body.cs-hotel .cs-quote-layout,
  body.cs-hotel .cs-audit-grid,
  body.cs-hotel .cs-segment-panel {
    grid-template-columns: 1fr;
  }
  body.cs-hotel .cs-story-callout {
    position: static;
  }
  body.cs-hotel .cs-session-stack {
    position: static;
    justify-self: stretch;
    width: min(100%, 360px);
  }
  body.cs-hotel .cs-session-plane {
    display: none;
  }
  body.cs-hotel .cs-context-metrics,
  body.cs-hotel .cs-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
  body.cs-hotel .cs-hmw-banner {
    grid-template-columns: 1fr;
  }
}

/* ── Hotel case hero: hand mockup with live booking-success screen ── */
body.cs-hotel .cs-header {
  --hotel-shell-gutter: clamp(24px, 4vw, 48px);
  width: min(1280px, calc(100vw - (var(--hotel-shell-gutter) * 2)));
  margin-left: 50%;
  transform: translateX(-50%);
  padding-bottom: clamp(40px, 5vw, 64px);
}

body.cs-hotel .cs-header-layout {
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 52px);
  align-items: stretch;
}

body.cs-hotel .cs-header-copy {
  width: min(100%, 1060px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}

body.cs-hotel .cs-header-kicker {
  grid-column: 1 / -1;
}

body.cs-hotel .cs-title {
  grid-column: 1 / -1;
}

body.cs-hotel .cs-summary {
  grid-column: 1 / -1;
  align-self: start;
  padding-top: 0;
}

body.cs-hotel .cs-meta-row,
body.cs-hotel .cs-impact {
  grid-column: 1 / -1;
}

body.cs-hotel .cs-header-kicker {
  margin-bottom: 0;
}

body.cs-hotel .cs-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.15vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  width: 100%;
  max-width: none;
  margin-bottom: 0;
  white-space: normal;
}

body.cs-hotel .cs-summary {
  max-width: 76ch;
  margin-bottom: 0;
}

body.cs-hotel .cs-meta-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 64px);
  padding-bottom: 24px;
}

body.cs-hotel .cs-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

body.cs-hotel .cs-impact.cs-impact--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat {
  min-width: 0;
  min-height: 132px;
  margin: 0;
  padding: 0 clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--border);
}

body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:first-child {
  padding-left: 0;
}

body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:last-child {
  padding-right: 0;
  border-right: 0;
}

body.cs-hotel .cs-impact.cs-impact--four .cs-impact-label {
  min-height: 0;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.035em;
  line-height: 1.15;
  white-space: nowrap;
}

body.cs-hotel .cs-impact.cs-impact--four .cs-impact-num {
  font-size: clamp(36px, 4.4vw, 58px);
}

body.cs-hotel .cs-impact-stat {
  margin-right: 0;
  padding-right: clamp(20px, 3vw, 44px);
}

body.cs-hotel .cs-impact-stat + .cs-impact-stat {
  padding-left: clamp(20px, 3vw, 44px);
}

body.cs-hotel .cs-header-proto--mockup {
  order: -1;
  align-self: stretch;
  justify-content: center;
}

body.cs-hotel .cs-hero-hand-mockup {
  width: min(100%, 1060px);
  margin: 0 auto;
  border: 0;
  border-radius: clamp(16px, 2vw, 28px);
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] body.cs-hotel .cs-hero-hand-mockup,
[data-theme="dark"] body.cs-hotel .cs-hero-hand-mockup .hand-mockup-device {
  border: 0;
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] body.cs-hotel .hand-mockup-device::after {
  border-color: transparent;
}

@media (min-width: 1025px) {
  body.cs-hotel .cs-header {
    --hotel-shell-gutter: clamp(32px, 3.2vw, 48px);
    width: min(1280px, calc(100vw - (var(--hotel-shell-gutter) * 2)));
  }
}

@media (min-width: 1440px) {
  body.cs-hotel .cs-header {
    --hotel-shell-gutter: 48px;
  }
}

@media (min-width: 1680px) {
  body.cs-hotel .cs-header {
    --hotel-shell-gutter: 64px;
  }
}

@media (max-width: 1080px) {
  body.cs-hotel .cs-header-copy {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  body.cs-hotel .cs-header-kicker,
  body.cs-hotel .cs-title,
  body.cs-hotel .cs-summary,
  body.cs-hotel .cs-meta-row,
  body.cs-hotel .cs-impact {
    grid-column: 1;
  }

  body.cs-hotel .cs-title {
    font-size: clamp(36px, 3.55vw, 42px);
    max-width: 100%;
    margin-top: clamp(4px, 1vw, 12px);
  }

  body.cs-hotel .cs-summary {
    max-width: 68ch;
    margin-bottom: 30px;
  }

  body.cs-hotel .cs-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 30px;
  }

  body.cs-hotel .cs-impact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  body.cs-hotel .cs-impact.cs-impact--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.cs-hotel .cs-hero-hand-mockup {
    width: 100%;
  }

  body.cs-hotel .cs-impact.cs-impact--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat,
  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:first-child,
  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:last-child {
    min-height: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:nth-child(2n) {
    border-right: 0;
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-label {
    min-height: 0;
    white-space: normal;
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-num {
    font-size: clamp(34px, 8vw, 48px);
  }
}

@media (max-width: 600px) {
  body.cs-hotel .cs-header {
    padding-bottom: 28px;
  }

  body.cs-hotel .cs-header-layout {
    gap: 22px;
  }

  body.cs-hotel .cs-title {
    font-size: clamp(28px, 9.5vw, 40px);
    white-space: normal;
  }

  body.cs-hotel .cs-summary {
    margin-bottom: 22px;
  }

  body.cs-hotel .cs-impact {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body.cs-hotel .cs-impact.cs-impact--four {
    grid-template-columns: 1fr;
  }

  body.cs-hotel .cs-impact-stat,
  body.cs-hotel .cs-impact-stat + .cs-impact-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 18px;
    margin: 0;
  }

  body.cs-hotel .cs-impact-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat,
  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:first-child,
  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.cs-hotel .cs-impact.cs-impact--four .cs-impact-stat:last-child {
    border-bottom: 0;
  }
}

/* Case-study body copy: annotated paragraph color in light mode. */
body.cs-page {
  --paragraph-ink: #202022;
}

[data-theme="dark"] body.cs-page {
  --paragraph-ink: var(--ink-2);
}

body.cs-page p,
body.cs-page.cs-hotel p,
body.cs-page.cs-onboarding p,
body.cs-page.cs-fw p {
  color: var(--paragraph-ink);
}

/* Cosmos DS: a quiet, Medium-style long-form article. */
body.cosmos-essay {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.cosmos-essay #nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cosmos-article {
  padding: clamp(112px, 13vw, 152px) 24px 0;
}

.cosmos-article-header,
.cosmos-prose,
.cosmos-article-end {
  width: min(100%, 720px);
  margin-inline: auto;
}

.cosmos-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: clamp(44px, 7vw, 72px);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.cosmos-back:hover {
  color: var(--ink);
}

.cosmos-kicker {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cosmos-article-header h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.cosmos-deck {
  max-width: 620px;
  margin: 28px 0 24px;
  color: var(--ink-2);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.cosmos-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.cosmos-byline span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.cosmos-article-figure {
  width: min(100%, 820px);
  margin: clamp(56px, 8vw, 88px) auto;
}

.cosmos-article-figure img,
.cosmos-article-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 860px;
  object-fit: contain;
  border-radius: 8px;
  background: oklch(0.96 0.006 280);
}

.cosmos-article-video {
  aspect-ratio: auto;
  background: #0b0c10;
}

.cosmos-article-hero {
  width: min(100%, 760px);
}

.cosmos-article-figure figcaption {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cosmos-prose {
  color: var(--ink-2);
}

.cosmos-prose p,
.cosmos-prose li {
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.78;
}

.cosmos-prose p {
  margin: 0 0 26px;
}

.cosmos-prose .cosmos-lead {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.62;
}

.cosmos-prose h2 {
  max-width: 22ch;
  margin: clamp(64px, 9vw, 96px) 0 24px;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.cosmos-prose ul,
.cosmos-prose ol {
  margin: 8px 0 32px;
  padding-left: 1.35em;
}

.cosmos-prose li {
  margin-bottom: 14px;
  padding-left: 6px;
}

.cosmos-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.cosmos-prose blockquote {
  margin: clamp(52px, 8vw, 80px) 0;
  padding: 28px 0;
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
}

.cosmos-prose blockquote p {
  max-width: 23ch;
  margin: 0;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(27px, 4.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cosmos-article-end {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(72px, 10vw, 120px);
  padding: 28px 0 72px;
  border-top: 1px solid var(--border);
}

.cosmos-article-end a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cosmos-article-end a:hover {
  color: var(--ink);
}

.cosmos-back:focus-visible,
.cosmos-article-end a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .cosmos-article {
    padding-inline: 20px;
  }

  .cosmos-back {
    margin-bottom: 36px;
  }

  .cosmos-article-header h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .cosmos-deck {
    margin-top: 22px;
    font-size: 18px;
  }

  .cosmos-byline {
    flex-direction: column;
    gap: 3px;
  }

  .cosmos-article-figure {
    margin-block: 52px;
  }

  .cosmos-prose p,
  .cosmos-prose li {
    font-size: 17px;
    line-height: 1.72;
  }

  .cosmos-prose h2 {
    margin-top: 60px;
  }

  .cosmos-article-end {
    flex-direction: column;
    gap: 4px;
    padding-bottom: 52px;
  }
}
