/* ===== Allstate CES Case Study — Premium Layout ===== */

/* Header background responds to dark mode */
.header {
  background-color: var(--bg-color-cs);
}

/* Page offset for fixed header */
.ces-page {
  padding-top: 120px;
  background-color: var(--background-color_lighter);
}

/* ── Wrappers ── */
.ces-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

.ces-wrap--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 80px;
  box-sizing: border-box;
}

/* ── Section base ── */
.ces-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.ces-section--featured {
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-top-color: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.ces-section--compact {
  padding: 48px 0;
}

.ces-section--emphasis .ces-wrap > h2,
.ces-section--emphasis .ces-wrap--narrow > h2 {
  position: relative;
  padding-left: 20px;
}

.ces-section--emphasis .ces-wrap > h2::before,
.ces-section--emphasis .ces-wrap--narrow > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  bottom: 0.1em;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ── Eyebrow / label ── */
.ces-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* ── Hiring signal tag ── */
.ces-signal-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-hover);
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 20px;
}

/* ── Section headings ── */
.ces-section h2 {
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  font-weight: 600;
  color: var(--text-headline);
  margin: 0 0 8px;
  line-height: 1.2;
}

.ces-section-intro {
  font-size: 15px !important;
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
  max-width: 660px;
  margin: 0 0 40px !important;
}

/* ── Prose ── */
.ces-prose p {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--text-primary) !important;
  margin-bottom: 20px !important;
}

.ces-bold-statement {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-headline);
  line-height: 1.5;
  margin: 24px 0;
}

/* ── Hero thesis line ── */
.ces-hero-thesis {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.65;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
}

/* ── Role cards ── */
.ces-role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}

.ces-role-card {
  padding: 22px 20px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-role-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ces-role-card p {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ── Complexity callout ── */
.ces-complexity-callout {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-headline);
  line-height: 1.6;
  padding: 22px 26px;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  border-radius: 12px;
  margin-bottom: 32px;
}

/* ── Highlighted matrix row ── */
.ces-matrix-table tr.ces-highlight-row td {
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  color: var(--text-headline);
  font-weight: 600;
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

/* ── Buildable logic intro ── */
.ces-logic-intro {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-headline);
  line-height: 1.4;
  margin-bottom: 28px;
}

/* ════════════════════════════════
   1. HERO
════════════════════════════════ */
.ces-hero {
  padding: 80px 0 72px;
}

.ces-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  box-sizing: border-box;
}

.ces-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.ces-hero h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.15;
  margin: 0 0 14px;
}

.ces-hero-sub {
  font-size: 15px !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin-bottom: 28px !important;
}

.ces-hero-sub--subtitle {
  font-size: 18px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: var(--text-secondary) !important;
  margin: 0 0 20px !important;
  line-height: 1.3 !important;
}

/* Metadata grid */
.ces-metadata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.ces-meta-item {
  padding: 12px 14px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

.ces-meta-item--span {
  grid-column: span 2;
}

.ces-meta-key {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hover);
  margin-bottom: 3px;
}

.ces-meta-val {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
}

.ces-confidentiality {
  font-size: 11px;
  color: var(--text-hover);
  line-height: 1.5;
  font-style: italic;
  margin-top: 8px;
}

/* Hero visual — platform hierarchy diagram */
.ces-hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.ces-platform-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  gap: 0;
  padding: 32px 28px;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

.ces-ph-node {
  padding: 14px 24px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-headline);
  background: var(--background-color_lighter);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.ces-ph-node--root {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-size: 15px;
  padding: 16px 24px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.ces-ph-node--focus {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color_lighter));
  border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
  color: var(--primary-color);
}

.ces-ph-connector {
  width: 2px;
  height: 20px;
  background: color-mix(in srgb, var(--primary-color) 30%, var(--border-color, #e5e7eb));
  flex-shrink: 0;
}

.ces-ph-leaf-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary-color) 2%, var(--background-color_lighter));
}

.ces-ph-leaf {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ces-ph-leaf::before {
  content: "→";
  color: var(--primary-color);
  font-size: 11px;
  flex-shrink: 0;
}

/* ════════════════════════════════
   2. EXECUTIVE SUMMARY
════════════════════════════════ */
.ces-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 32px;
}

.ces-summary-card {
  padding: 22px 24px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
}

.ces-summary-card-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.ces-summary-card p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.ces-solution-statement {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Why it mattered callout */
.ces-why-it-mattered {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 2.5%, var(--background-color_lighter));
  border-radius: 0 8px 8px 0;
}

.ces-why-it-mattered p {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  font-style: italic;
}

/* ════════════════════════════════
   3. CES PLATFORM CONTEXT
════════════════════════════════ */
.ces-platform-tree {
  margin-top: 36px;
  padding: 32px 36px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 16px;
}

.ces-pt-root {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ces-pt-root::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.ces-pt-branches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  border-left: 2px solid color-mix(in srgb, var(--primary-color) 20%, var(--border-color, #e5e7eb));
}

.ces-pt-branch {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ces-pt-branch-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ces-pt-branch-label::before {
  content: "─";
  color: var(--text-hover);
  flex-shrink: 0;
}

.ces-pt-branch-label--focus {
  color: var(--primary-color);
}

.ces-pt-children {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 28px;
  padding-top: 2px;
}

.ces-pt-child {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ces-pt-child::before {
  content: "└";
  color: var(--text-hover);
  flex-shrink: 0;
  font-size: 11px;
}

.ces-pt-child--focus {
  color: var(--primary-color);
  font-weight: 600;
}

.ces-pt-child--focus::before {
  color: var(--primary-color);
}

/* ════════════════════════════════
   4. MANAGE GOALS FOCUS
════════════════════════════════ */
.ces-hierarchy-callout {
  display: flex;
  align-items: center;
  column-gap: 0;
  row-gap: 10px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.ces-hc-item {
  padding: 10px 18px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--background-color_lighter);
}

.ces-hc-item--focus {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color_lighter));
  border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
  color: var(--primary-color);
  font-weight: 700;
}

.ces-hc-arrow {
  padding: 0 12px;
  color: var(--text-hover);
  font-size: 15px;
  flex-shrink: 0;
}

.ces-thesis {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Performance architecture flow */
.ces-perf-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 32px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
}

.ces-pf-box {
  padding: 22px 20px;
  background: var(--background-color_lighter);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ces-pf-box--focus {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color_lighter));
}

.ces-pf-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headline);
}

.ces-pf-title--focus {
  color: var(--primary-color);
}

.ces-pf-sub {
  font-size: 11px;
  color: var(--text-hover);
  line-height: 1.5;
}

.ces-pf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: var(--background-color_lighter);
  color: var(--primary-color);
  font-size: 18px;
  border-left: 1px solid var(--border-color, #e5e7eb);
  border-right: 1px solid var(--border-color, #e5e7eb);
}

/* ════════════════════════════════
   5. ENTERPRISE PROBLEM
════════════════════════════════ */
.ces-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.ces-ba-col {
  padding: 24px 26px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.ces-ba-col--before {
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
}

.ces-ba-col--after {
  background: color-mix(in srgb, var(--primary-color) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.ces-ba-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-hover);
  margin-bottom: 16px;
}

.ces-ba-col--after .ces-ba-heading {
  color: var(--primary-color);
}

/* ── BEFORE: isolated boxes, no connectors ── */
.ces-ba-col--before .ces-ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ces-ba-col--before .ces-ba-list li {
  display: block;
  padding: 9px 13px;
  margin-left: 0 !important;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ces-ba-col--before .ces-ba-list li::before { content: none; }

.ces-ba-col--before .ces-ba-root {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--text-hover) 10%, transparent);
  border-color: color-mix(in srgb, var(--text-hover) 40%, transparent);
  margin-left: 0 !important;
}

.ces-ba-note {
  display: block;
  font-size: 11px;
  color: var(--text-hover);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── AFTER: connected flow with → arrows ── */
.ces-ba-col--after .ces-ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ces-ba-col--after .ces-ba-list li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.45;
}

.ces-ba-col--after .ces-ba-root {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  margin-left: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.ces-ba-col--after .ces-ba-list li:not(.ces-ba-root) {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px;
  align-items: center;
  padding: 5px 0;
  margin-left: 0 !important;
}

.ces-ba-col--after .ces-ba-list li:not(.ces-ba-root)::before {
  content: "→";
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  justify-self: center;
}

/* ── Summary lines ── */
.ces-ba-summary {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  font-style: italic;
  color: var(--text-hover);
  line-height: 1.5;
}

.ces-ba-col--before .ces-ba-summary {
  margin-top: 24px;
}

.ces-ba-col--after .ces-ba-summary {
  color: color-mix(in srgb, var(--primary-color) 75%, var(--text-secondary));
  border-top-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* ════════════════════════════════
   6. USERS & JOBS
════════════════════════════════ */
.ces-user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 14px;
}

.ces-user-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hover);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ces-user-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-primary);
  line-height: 1.55;
  vertical-align: top;
}

.ces-user-table td:first-child {
  font-weight: 600;
  color: var(--text-headline);
  white-space: nowrap;
  width: 180px;
}

.ces-user-table tr:last-child td {
  border-bottom: none;
}

/* User hierarchy diagram */
.ces-user-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 320px;
  margin-top: 40px;
}

.ces-uh-step-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ces-uh-badge {
  padding: 10px 18px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-headline);
  white-space: nowrap;
}

.ces-uh-note {
  font-size: 11px;
  color: var(--text-hover);
  font-style: italic;
}

.ces-uh-connector {
  width: 2px;
  height: 20px;
  background: color-mix(in srgb, var(--primary-color) 25%, var(--border-color, #e5e7eb));
  margin-left: 28px;
}

/* ════════════════════════════════
   7. MY ROLE
════════════════════════════════ */
.ces-role-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-role-list li {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-left: 0 !important;
}

.ces-role-list li::before {
  content: "→";
  color: var(--primary-color);
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 600;
}

.ces-artifact-frame {
  margin-top: 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--background-color_lighter);
}

.ces-artifact-frame img {
  width: 100%;
  display: block;
}

.ces-artifact-placeholder {
  width: 100%;
  min-height: 240px;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--background-color_lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-hover);
  font-style: italic;
}

.ces-artifact-caption {
  font-size: 12px;
  color: var(--text-hover);
  line-height: 1.5;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

/* ════════════════════════════════
   7-B. ARTIFACT WALKTHROUGH
════════════════════════════════ */
.ces-artifact-walkthrough {
  margin-top: 56px;
  padding-top: 52px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.ces-aw-intro {
  max-width: 700px;
  margin-bottom: 60px;
}

.ces-aw-intro h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-headline);
  margin: 0 0 12px;
  line-height: 1.3;
}

.ces-aw-intro p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.ces-artifact-entry {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ces-artifact-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ces-artifact-entry__header {
  max-width: 700px;
  margin-bottom: 28px;
}

.ces-artifact-entry__n {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-hover);
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.ces-artifact-entry__title {
  font-size: clamp(1.1rem, 1.2vw + 0.7rem, 1.4rem);
  font-weight: 700;
  color: var(--text-headline);
  margin: 0 0 12px;
  line-height: 1.3;
}

.ces-artifact-entry__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.ces-artifact-entry__image-wrap {
  width: 65%;
  margin: 0 auto 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.09);
  background: var(--background-color_lighter);
}

.ces-artifact-entry__image-wrap--full {
  width: 100%;
}

.ces-artifact-entry--hero .ces-artifact-entry__image-wrap {
  box-shadow: 0 14px 64px rgba(0, 0, 0, 0.13);
  border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.ces-artifact-entry__image-wrap img {
  width: 100%;
  display: block;
}

.ces-artifact-entry__image-wrap .ces-artifact-placeholder {
  min-height: 320px;
}

.ces-artifact-entry--hero .ces-artifact-entry__image-wrap .ces-artifact-placeholder {
  min-height: 440px;
}

.ces-artifact-entry__takeaway {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  border-radius: 10px;
  padding: 10px 18px;
  line-height: 1.4;
  margin: 0 auto;
  display: block;
  max-width: fit-content;
}

/* Compact artifact grid (3 small + 1 hero) */
.ces-aw-small-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.ces-aw-small-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ces-aw-small-image {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--background-color_lighter);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}

.ces-aw-small-image img {
  width: 100%;
  display: block;
}

.ces-aw-small-image .ces-artifact-placeholder {
  min-height: 150px;
}

.ces-aw-small-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.3;
}

.ces-aw-small-caption {
  font-size: 11px;
  color: var(--text-hover);
  line-height: 1.5;
  margin-top: 2px;
}

.ces-aw-hero {
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding-top: 40px;
}

.ces-aw-hero-header {
  max-width: 700px;
  margin-bottom: 24px;
}

.ces-aw-hero-header h3 {
  font-size: clamp(1.1rem, 1.2vw + 0.7rem, 1.35rem);
  font-weight: 700;
  color: var(--text-headline);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ces-aw-hero-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.ces-aw-hero-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
  background: var(--background-color_lighter);
  box-shadow: 0 12px 52px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

.ces-aw-hero-image img {
  width: 100%;
  display: block;
}

.ces-aw-hero-image .ces-artifact-placeholder {
  min-height: 400px;
}

/* ════════════════════════════════
   8. COMPLEXITY MODEL
════════════════════════════════ */
.ces-variables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 40px;
}

.ces-variable-item {
  padding: 12px 16px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ces-variable-item::before {
  content: "·";
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.ces-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.ces-matrix-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hover);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  background: color-mix(in srgb, var(--primary-color) 2%, var(--background-color_lighter));
}

.ces-matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-primary);
  line-height: 1.55;
  vertical-align: top;
}

.ces-matrix-table td:first-child {
  color: var(--text-headline);
  font-weight: 500;
  width: 42%;
}

.ces-matrix-table tr:last-child td {
  border-bottom: none;
}

.ces-matrix-caption {
  font-size: 12px;
  color: var(--text-hover);
  line-height: 1.5;
  margin-top: 12px;
  font-style: italic;
}

/* ════════════════════════════════
   9. DESIGN PRINCIPLES
════════════════════════════════ */
.ces-principle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.ces-principle-card {
  padding: 22px 20px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-principle-number {
  font-size: 24px;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary-color) 45%, var(--text-primary));
  line-height: 1;
}

.ces-principle-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-headline);
  line-height: 1.3;
}

.ces-principle-body {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ════════════════════════════════
   10. SOLUTION WALKTHROUGH
════════════════════════════════ */
.ces-solution-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ces-solution-step {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.ces-solution-step:last-child {
  border-bottom: none;
}

.ces-step-content {}

.ces-step-n {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.ces-step-content h3 {
  font-size: clamp(1.05rem, 1.3vw + 0.7rem, 1.35rem);
  font-weight: 600;
  color: var(--text-headline);
  margin: 0 0 12px;
}

.ces-step-content p {
  font-size: 14px !important;
  color: var(--text-primary) !important;
  line-height: 1.7 !important;
  margin: 0 0 20px !important;
}

.ces-decision-callout {
  padding: 14px 18px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
}

.ces-decision-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.ces-decision-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Screenshot frame */
.ces-screenshot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--background-color_lighter);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.ces-screenshot-frame img {
  width: 100%;
  display: block;
}

.ces-screenshot-frame .ces-artifact-placeholder {
  min-height: 300px;
}

.ces-screenshot-annotation {
  display: inline-block;
  margin: 10px 14px 0;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-radius: 20px;
}

.ces-screenshot-caption {
  font-size: 11px;
  color: var(--text-hover);
  line-height: 1.5;
  padding: 10px 14px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

/* Solution closing chain */
.ces-chain {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-top: 56px;
  padding: 28px 32px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  gap: 0;
}

.ces-chain-step {
  flex: 1;
  padding: 16px 12px;
  background: var(--background-color_lighter);
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.ces-chain-arrow {
  padding: 0 10px;
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

/* ════════════════════════════════
   11. CROSS-FUNCTIONAL COLLABORATION
════════════════════════════════ */
.ces-collab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}

.ces-collab-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hover);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ces-collab-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-primary);
  line-height: 1.6;
  vertical-align: top;
}

.ces-collab-table td:first-child {
  font-weight: 600;
  color: var(--text-headline);
  white-space: nowrap;
  width: 220px;
}

.ces-collab-table tr:last-child td {
  border-bottom: none;
}

.ces-collab-close {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 20px 24px;
  border-left: 3px solid var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 2.5%, var(--background-color_lighter));
  border-radius: 0 8px 8px 0;
}

/* ════════════════════════════════
   12. BUILDABLE LOGIC
════════════════════════════════ */
.ces-logic-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 36px 0;
  max-width: 520px;
  gap: 0;
}

.ces-lf-step-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ces-lf-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.ces-lf-text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

.ces-lf-connector {
  width: 2px;
  height: 20px;
  background: color-mix(in srgb, var(--primary-color) 30%, var(--border-color, #e5e7eb));
  margin-left: 17px;
}

.ces-logic-rules {
  margin-top: 8px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-logic-rules li {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-left: 0 !important;
  padding: 12px 16px;
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
}

.ces-logic-rules li::before {
  content: "→";
  color: var(--primary-color);
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 600;
}

/* ════════════════════════════════
   13. OUTCOMES
════════════════════════════════ */
.ces-outcome-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.ces-outcome-card {
  padding: 24px 22px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-outcome-card--span {
  grid-column: span 2;
}

.ces-outcome-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-color) 12%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
}

.ces-outcome-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-headline);
  margin: 0;
  line-height: 1.3;
}

.ces-outcome-card p {
  font-size: 13px !important;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.ces-outcome-statement {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ════════════════════════════════
   14. REFLECTION
════════════════════════════════ */
.ces-reflection-highlight {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.65;
  border-left: 3px solid var(--primary-color);
  padding: 20px 24px;
  margin: 32px 0 0;
  background: color-mix(in srgb, var(--primary-color) 2.5%, var(--background-color_lighter));
  border-radius: 0 8px 8px 0;
}

/* ════════════════════════════════
   CLOSING
════════════════════════════════ */
.ces-closing {
  padding: 96px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
  text-align: center;
}

.ces-closing-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 40px;
}

.ces-closing-body {
  font-size: 15px !important;
  color: var(--text-secondary) !important;
  line-height: 1.75 !important;
  margin-bottom: 36px !important;
}

.ces-closing-quote {
  font-size: clamp(1.3rem, 2vw + 0.7rem, 1.9rem);
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.3;
  margin-bottom: 16px;
}

.ces-closing-final {
  font-size: 14px !important;
  color: var(--text-hover) !important;
  margin: 0 !important;
}

/* ════════════════════════════════
   NEXT CASE STUDY
════════════════════════════════ */
.next {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 80px;
  background: var(--background-color_lighter);
  border-top: 1px solid var(--border-color, #e5e7eb);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.next:hover {
  background: var(--about-background, #f3f3f3);
}

.next:hover .next-arrow {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateX(3px);
}

.next img {
  border-radius: 8px;
  object-fit: cover;
  height: 110px;
  width: 160px;
  flex-shrink: 0;
}

.next-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.next-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-hover, rgba(0, 0, 0, .45));
}

.next-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line-color, rgba(0,0,0,.15));
  font-size: 0;
  color: transparent;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.next-arrow::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--text-primary);
  border-top: 2.5px solid var(--text-primary);
  border-radius: 1px;
  transform: rotate(45deg) translate(-1px, 0px);
  transition: border-color 0.2s;
}

.next:hover .next-arrow::after {
  border-color: #fff;
}

/* ════════════════════════════════
   9-A. SCENARIO MODELING (9 STATES)
════════════════════════════════ */

/* State matrix */
.ces-state-matrix {
  display: grid;
  grid-template-columns: 190px repeat(3, 1fr);
  gap: 8px;
  margin: 28px 0 48px;
  padding: 24px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 15%, transparent);
  border-radius: 16px;
  overflow-x: auto;
  min-width: 0;
}

.ces-sm-col-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
  padding: 6px 4px 14px;
}

.ces-sm-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-headline);
  display: flex;
  align-items: center;
  padding: 0 14px 0 4px;
  line-height: 1.4;
}

.ces-sm-row-label--focus {
  color: var(--primary-color);
}

.ces-sm-cell {
  background: var(--background-color_lighter);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.ces-sm-cell--focus {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--background-color_lighter));
  border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.ces-sm-state {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  opacity: 0.55;
}

.ces-sm-cell--focus .ces-sm-state {
  opacity: 1;
}

.ces-sm-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Scenario cards */
.ces-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.ces-scenario-card {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--background-color_lighter);
  text-align: left;
}

.ces-scenario-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
  margin-bottom: -4px;
}

.ces-scenario-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headline);
  margin: 0;
  line-height: 1.35;
}

.ces-scenario-behavior {
  flex: 1;
}

.ces-scenario-behavior-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hover);
  margin-bottom: 8px;
}

.ces-scenario-behavior ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ces-scenario-behavior li {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
  padding: 3px 0;
  margin-left: 0 !important;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px;
}

.ces-scenario-behavior li::before {
  content: "→";
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 700;
  padding-top: 1px;
}

.ces-scenario-decision {
  padding: 12px 14px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ces-scenario-decision-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Reference / completed state callout */
.ces-reference-state {
  margin: 32px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-left: 4px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--background-color_lighter));
}

.ces-reference-state-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ces-reference-state-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-hover);
  background: color-mix(in srgb, var(--text-hover) 10%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--text-hover) 20%, transparent);
  border-radius: 20px;
  padding: 3px 9px;
}

.ces-reference-state-header strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headline);
}

.ces-reference-state-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ces-reference-state-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 3px 0 3px 18px;
  position: relative;
}

.ces-reference-state-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-hover);
}

.ces-reference-state-decision {
  padding: 10px 14px;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ces-reference-state-decision-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 4px;
}

/* Pull quote */
.ces-pull-quote {
  margin: 40px 0 32px;
  padding: 28px 36px;
  border-left: 4px solid var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 4%, var(--background-color_lighter));
  border-radius: 0 12px 12px 0;
  font-size: clamp(1.05rem, 1.2vw + 0.7rem, 1.35rem);
  font-weight: 600;
  color: var(--text-headline);
  line-height: 1.5;
  quotes: none;
}

/* ════════════════════════════════
   14-A. HOW SUCCESS WAS DEFINED
════════════════════════════════ */

.ces-success-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 48px;
}

.ces-success-category {
  padding: 24px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  background: var(--background-color_lighter);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ces-success-category-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ces-success-category-desc {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.ces-success-indicators {
  flex: 1;
}

.ces-success-indicator-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hover);
  margin-bottom: 8px;
}

.ces-success-indicators ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ces-success-indicators li {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.ces-success-indicators li::before {
  content: "→";
  color: var(--primary-color);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Success theme cards */
.ces-success-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 8px 0 32px;
}

.ces-success-card {
  padding: 24px 22px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ces-success-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.ces-success-card p {
  font-size: 13px !important;
  color: var(--text-primary) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* Enterprise callout */
.ces-enterprise-callout {
  margin-top: 28px;
  padding: 22px 28px;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--background-color_lighter));
  border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
  border-radius: 14px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .ces-page {
    padding-top: 96px;
  }
  .ces-hero-inner,
  .ces-wrap,
  .ces-wrap--narrow {
    padding: 0 40px;
  }
  .ces-principle-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .ces-outcome-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .ces-outcome-card--span {
    grid-column: span 2;
  }
  .ces-solution-step {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ces-role-cards {
    grid-template-columns: 1fr;
  }
  .ces-scenario-grid {
    grid-template-columns: 1fr;
  }
  .ces-state-matrix {
    grid-template-columns: 150px repeat(3, 1fr);
  }
  .ces-artifact-entry__image-wrap {
    width: 80%;
  }
  .ces-aw-small-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .next {
    padding: 24px 40px;
  }
}

@media (max-width: 700px) {
  .ces-page {
    padding-top: 0;
  }
  .ces-hero-inner,
  .ces-wrap,
  .ces-wrap--narrow {
    padding: 0 24px;
  }
  .ces-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ces-hero-visual {
    display: none;
  }
  .ces-summary-grid,
  .ces-metadata-grid,
  .ces-before-after,
  .ces-principle-cards,
  .ces-outcome-cards,
  .ces-variables-grid {
    grid-template-columns: 1fr;
  }
  .ces-metadata-grid .ces-meta-item--span,
  .ces-outcome-card--span {
    grid-column: span 1;
  }
  .ces-perf-flow {
    grid-template-columns: 1fr;
  }
  .ces-pf-arrow {
    display: none;
  }
  .ces-section {
    padding: 48px 0;
  }
  .ces-hero {
    padding: 48px 0 40px;
  }
  .ces-closing {
    padding: 64px 0;
  }
  .ces-chain {
    flex-direction: column;
    padding: 20px;
    gap: 4px;
  }
  .ces-chain-step {
    flex: none;
    width: 100%;
    text-align: left;
  }
  .ces-chain-arrow {
    padding: 0 0 0 12px;
    font-size: 16px;
    transform: rotate(90deg);
  }
  .next {
    padding: 20px 24px 44px;
    gap: 16px;
  }
  .next img {
    height: 84px;
    width: 126px;
  }
  .next-title {
    font-size: 15px;
  }
  .next-arrow {
    display: none;
  }
  .ces-user-table td:first-child {
    width: auto;
  }
  .ces-collab-table td:first-child {
    width: auto;
    white-space: normal;
  }
  .ces-role-cards {
    grid-template-columns: 1fr;
  }
  .ces-scenario-grid {
    grid-template-columns: 1fr;
  }
  .ces-success-categories,
  .ces-success-grid {
    grid-template-columns: 1fr;
  }
  .ces-artifact-entry__image-wrap {
    width: 100%;
  }
  .ces-artifact-entry {
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
  .ces-aw-small-grid {
    grid-template-columns: 1fr;
  }
  .ces-state-matrix {
    grid-template-columns: 120px repeat(3, minmax(90px, 1fr));
    padding: 16px;
    gap: 6px;
  }
  .ces-pull-quote {
    padding: 20px 22px;
  }
}

@media (max-width: 450px) {
  .ces-hero-inner,
  .ces-wrap,
  .ces-wrap--narrow {
    padding: 0 16px;
  }
}
