/* marty case study styles */


  :root {
    --ink: #0C0C14;
    --cream: #F2F0EC;
    --light-bg: #F0EEF8;
    --indigo: #7B6EF6;
    --indigo-light: #9B91F8;
    --indigo-mid: #5549C0;
    --indigo-deep: #3d3480;
    --indigo-ink: #2a2060;
    --text-primary: #0C0C14;
    --text-secondary: #4a4760;
    --text-tertiary: #7a789a;
    --border: rgba(12,12,20,0.10);
    --border-strong: rgba(12,12,20,0.18);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--cream);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  /* ── Nav ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242,240,236,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .wordmark {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .wordmark-logo-wrap { display: inline-flex; align-items: center; flex-shrink: 0; }
  .wordmark-logo { width: 28px; height: 28px; object-fit: contain; display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
  .wordmark:hover .wordmark-logo { transform: rotate(-8deg) scale(1.1); }
  .wordmark .first { font-weight: 400; }
  .wordmark .last  { font-style: italic; font-weight: 300; color: var(--indigo); }
  nav a.back {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
  }
  nav a.back:hover { color: var(--indigo); }
  nav a.back svg { width: 14px; height: 14px; }

  /* ── Layout ── */
  .page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
  }

  /* ── Breadcrumb ── */
  .hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
  }
  .hero-breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
  }
  .hero-breadcrumb a:hover { color: var(--indigo); }

  /* ── Hero ── */
  .hero {
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 1.25rem;
  }
  .hero-eyebrow span {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--indigo);
  }
  h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.25rem;
  }
  .hero-sub {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .meta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .meta-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
  }

  /* ── Hero video ── */
  .hero-video {
    margin-top: 3rem;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--ink);
  }
  .hero-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  .placeholder-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--indigo-light);
  }
  .placeholder-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    max-width: 320px;
  }

  /* ── Body sections ── */
  .section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .section:last-child { border-bottom: none; }
  .main-col .section:first-child { padding-top: 0; }

  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 1rem;
  }

  h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 1.25rem;
  }

  h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 0.5rem;
  }

  p { margin-bottom: 1.1rem; color: var(--text-secondary); }
  p:last-child { margin-bottom: 0; }

  strong { font-weight: 500; color: var(--text-primary); }

  /* ── Pull quote ── */
  .pull-quote {
    border-left: 3px solid var(--indigo);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
  }
  .pull-quote p {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
  }

  /* ── Problem cards ── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
  }
  .card {
    background: var(--cream);
    padding: 1.5rem;
  }
  .card-num {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--indigo-light);
    line-height: 1;
    margin-bottom: 0.75rem;
  }
  .card h3 { margin-bottom: 0.4rem; }
  .card p { font-size: 14px; margin: 0; }

  /* ── Two-col layout ── */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
  }
  @media (max-width: 640px) {
    .two-col { grid-template-columns: 1fr; }
  }

  /* ── Image placeholder (inline) ── */
  .img-placeholder {
    width: 100%;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2rem 1rem;
  }
  .img-placeholder.tall { aspect-ratio: 4/3; }
  .img-placeholder.medium { aspect-ratio: 16/9; }
  .img-placeholder.short { aspect-ratio: 21/9; }

  /* ── Role callout ── */
  .role-block {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
  }
  .role-block h3 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); margin-bottom: 1rem; }
  .role-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .role-item { display: flex; flex-direction: column; gap: 3px; }
  .role-item .ri-label { font-size: 12px; color: var(--text-tertiary); }
  .role-item .ri-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

  /* ── Principles ── */
  .principle-list { list-style: none; padding: 0; margin: 1.5rem 0; }
  .principle-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
  }
  .principle-list li:last-child { border-bottom: none; }
  .principle-num {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--indigo);
    padding-top: 2px;
  }
  .principle-content h3 { margin-bottom: 0.3rem; font-size: 15px; }
  .principle-content p { font-size: 14px; margin: 0; }

  /* ── Horizon block ── */
  .horizon-block {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
  }
  .horizon-block h3 {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
  }
  .horizon-items { display: flex; flex-direction: column; gap: 1rem; }
  .horizon-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: start;
  }
  .horizon-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    margin-top: 2px;
  }
  .tag-now { background: #ede9fe; color: var(--indigo-deep); }
  .tag-next { background: #ddd8fc; color: var(--indigo-deep); }
  .tag-later { background: var(--light-bg); color: var(--indigo-mid); }
  .horizon-item p { font-size: 14px; margin: 0; }

  /* ── Footer ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  footer p { font-size: 13px; color: var(--text-tertiary); margin: 0; }
  .next-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--indigo);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .next-link:hover { color: var(--indigo-mid); }

  /* ── Caption ── */
  .caption {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 0.6rem;
    padding-left: 2px;
  }

  /* ── Team org chart ── */
  .org-chart {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 28px 20px 24px;
    background: var(--cream);
    margin-bottom: 0.5rem;
    overflow: hidden;
  }
  .org-root-row {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
  }
  .org-root-node {
    background: var(--ink);
    color: #F2F0EC;
    border-radius: 10px;
    padding: 12px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .org-root-name {
    font-size: 15px;
    font-weight: 600;
    color: #F2F0EC;
    letter-spacing: -0.01em;
  }
  .org-root-title {
    font-size: 12px;
    color: var(--indigo-light);
  }
  /* Connector tree */
  .org-connector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40px;
    position: relative;
  }
  .org-v-line {
    width: 1.5px;
    height: 16px;
    background: var(--indigo-light);
    flex-shrink: 0;
  }
  .org-h-line {
    width: calc(75% + 2px);
    height: 1.5px;
    background: var(--indigo-light);
  }
  .org-branch-row {
    display: flex;
    width: calc(75% + 2px);
    justify-content: space-between;
    padding: 0 calc(12.5% - 1px);
  }
  .org-branch-v {
    width: 1.5px;
    height: 14px;
    background: var(--indigo-light);
  }
  /* Columns */
  .org-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .org-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .org-area-node {
    background: rgba(123,110,246,0.10);
    border: 1px solid var(--indigo-light);
    border-radius: 10px;
    padding: 12px 10px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    justify-content: center;
  }
  .org-area-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
  }
  .org-area-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.35;
  }
  .org-person-node {
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 10px 10px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .org-person-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }
  .org-person-role {
    font-size: 11px;
    color: var(--text-tertiary);
  }
  /* Marty badge */
  .org-marty-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .org-marty-badge {
    border: 1.5px dashed var(--indigo-light);
    border-radius: 100px;
    padding: 10px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }
  .org-marty-name {
    font-size: 13px;
    font-style: italic;
    color: var(--indigo);
    font-weight: 400;
  }
  .org-marty-dates {
    font-size: 11px;
    color: var(--text-tertiary);
  }
  @media (max-width: 580px) {
    .org-cols { grid-template-columns: repeat(2, 1fr); }
    .org-h-line, .org-branch-row { width: calc(50% + 2px); }
    .org-branch-row { padding: 0 calc(25% - 1px); }
  }

  /* ── Brand evolution strip ── */
  .brand-evo {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0 0.5rem;
  }
  .brand-evo-header {
    background: var(--light-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .brand-evo-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--indigo);
  }
  .brand-evo-steps {
    display: flex;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 0;
    background: var(--cream);
  }
  .brand-evo-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 12px;
  }
  .brand-evo-step-final .brand-evo-img-wrap {
    border-color: var(--indigo-light);
    background: var(--light-bg);
  }
  .brand-evo-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }
  .brand-evo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }
  .brand-evo-img-orb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }
  .brand-evo-phase {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
  }
  .brand-evo-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .brand-evo-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.45;
  }
  .brand-evo-arrow {
    font-size: 18px;
    color: var(--border-strong);
    flex-shrink: 0;
    padding-top: 26px;
    align-self: flex-start;
  }
  @media (max-width: 600px) {
    .brand-evo-steps { flex-direction: column; align-items: flex-start; gap: 16px; }
    .brand-evo-step  { flex-direction: row; text-align: left; }
    .brand-evo-arrow { transform: rotate(90deg); padding: 0 0 0 28px; }
  }

  /* ── Scope map artifact ── */
  .scope-map {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
  }
  .scope-map-header {
    background: var(--light-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .scope-map-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--indigo);
  }
  .scope-map-grid {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr;
    background: var(--border);
    gap: 1px;
  }
  .sm-col-head {
    background: var(--cream);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sm-mode-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    width: fit-content;
  }
  .sm-mode-badge.auto   { background: rgba(123,110,246,0.12); color: var(--indigo-mid); }
  .sm-mode-badge.assist { background: rgba(123,110,246,0.07); color: var(--indigo-mid); }
  .sm-mode-badge.esc    { background: rgba(12,12,20,0.06);    color: var(--text-secondary); }
  .sm-mode-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin: 0;
  }
  .sm-row-label {
    background: var(--light-bg);
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
  }
  .sm-cell {
    background: var(--cream);
    padding: 12px 14px;
    color: var(--text-secondary);
    line-height: 1.45;
    display: flex;
    align-items: center;
  }
  .sm-cell.sm-auto   { border-left: 2px solid rgba(123,110,246,0.35); }
  .sm-cell.sm-assist { border-left: 2px solid rgba(123,110,246,0.18); }
  .sm-cell.sm-esc    { color: var(--text-tertiary); font-style: italic; }
  .scope-map-caption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
    background: var(--cream);
    margin: 0;
  }
  @media (max-width: 700px) {
    .scope-map-grid { grid-template-columns: 1fr; }
    .sm-col-head, .sm-row-label { display: none; }
    .sm-cell { border-left: none; border-top: 1px solid var(--border); }
  }

  /* ── Divider ── */
  .section-divider {
    width: 32px;
    height: 2px;
    background: var(--indigo-light);
    margin: 1.5rem 0;
  }

  /* ── Page body: main + sidebar grid ── */
  .page-body {
    max-width: 1060px;
    margin: 0 auto;
    padding: 56px clamp(1.5rem, 5vw, 2.5rem) 80px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: start;
  }
  .main-col { min-width: 0; }
  .side-col  {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .side-col::-webkit-scrollbar { display: none; }

  /* ── Sidebar cards ── */
  .side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 14px;
  }
  .side-card-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
  }
  .side-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .side-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .side-item-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .side-item-val {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.4;
  }
  .side-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .side-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    background: var(--light-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  .side-tag.accent {
    background: rgba(123,110,246,0.08);
    color: var(--indigo-deep);
    border-color: rgba(123,110,246,0.2);
  }
  .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .toc-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .toc-list a:hover { background: var(--light-bg); color: var(--indigo-mid); }

  /* ── Feature vs Agent diagram ── */
  .model-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    margin-top: 2rem;
  }
  .model-panel {
    padding: 24px 22px;
  }
  .model-panel--light {
    background: #fff;
    border-right: 1px solid var(--border);
  }
  .model-panel--dark {
    background: var(--indigo-ink);
  }
  .model-panel-header {
    margin-bottom: 20px;
  }
  .model-panel-eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .model-panel--light .model-panel-eyebrow { color: var(--text-tertiary); }
  .model-panel--dark  .model-panel-eyebrow { color: rgba(155,145,248,0.7); }
  .model-panel-title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
  }
  .model-panel--light .model-panel-title { color: var(--ink); }
  .model-panel--dark  .model-panel-title { color: #fff; }
  .model-panel-sub {
    font-size: 12px;
    font-weight: 300;
    margin-top: 2px;
  }
  .model-panel--light .model-panel-sub { color: var(--text-tertiary); }
  .model-panel--dark  .model-panel-sub { color: rgba(255,255,255,0.55); }

  /* flow */
  .model-flow { display: flex; flex-direction: column; gap: 5px; }
  .model-step { display: flex; align-items: flex-start; gap: 9px; }
  .model-step-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .model-panel--light .model-step-icon { background: var(--light-bg); color: var(--indigo); }
  .model-panel--dark  .model-step-icon { background: rgba(123,110,246,0.18); color: var(--indigo-light); }
  .model-step-who {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.07em; text-transform: uppercase;
    margin-bottom: 2px;
  }
  .model-panel--light .model-step-who { color: var(--text-tertiary); }
  .model-panel--dark  .model-step-who { color: rgba(255,255,255,0.5); }
  .model-step-text {
    font-size: 13px; line-height: 1.45;
  }
  .model-panel--light .model-step-text { color: var(--text-secondary); }
  .model-panel--dark  .model-step-text { color: rgba(255,255,255,0.78); }
  .model-step-text strong {
    font-weight: 500;
  }
  .model-panel--light .model-step-text strong { color: var(--ink); }
  .model-panel--dark  .model-step-text strong { color: #fff; }
  .model-panel--dark  .model-bubble strong { color: #fff; font-weight: 500; }

  .model-flow-arrow {
    padding-left: 13px; height: 12px;
    font-size: 11px; line-height: 12px;
  }
  .model-panel--light .model-flow-arrow { color: rgba(12,12,20,0.2); }
  .model-panel--dark  .model-flow-arrow { color: rgba(255,255,255,0.15); }

  .model-bubble {
    display: block;
    margin-top: 4px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .model-panel--light .model-bubble { background: var(--light-bg); color: var(--text-secondary); }
  .model-panel--dark  .model-bubble { background: rgba(123,110,246,0.16); color: rgba(255,255,255,0.82); }

  .model-action-chips {
    display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
  }
  .model-chip {
    padding: 3px 8px; border-radius: 100px;
    font-size: 11px; font-weight: 500;
  }
  .model-panel--light .model-chip { background: rgba(12,12,20,0.06); color: var(--text-secondary); }
  .model-panel--dark  .model-chip { background: rgba(123,110,246,0.22); color: #c8c3ff; }

  .model-result {
    margin-top: 18px; padding: 9px 13px;
    border-radius: 9px; font-size: 12.5px; font-weight: 500;
    display: flex; align-items: center; gap: 7px;
  }
  .model-result-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .model-result--muted {
    background: rgba(192,57,43,0.06);
    color: #a0392b;
    border: 1px solid rgba(192,57,43,0.13);
  }
  .model-result--muted .model-result-dot { background: #c0392b; }
  .model-result--positive {
    background: rgba(0,168,90,0.14);
    color: #00d46a;
    border: 1px solid rgba(0,168,90,0.25);
  }
  .model-result--positive .model-result-dot { background: #00d46a; }

  /* ── Responsive ── */
  @media (max-width: 860px) {
    .page-body { grid-template-columns: 1fr; }
    .side-col  { position: static; }
    .model-diagram { grid-template-columns: 1fr; }
    .model-panel--light { border-right: none; border-bottom: 1px solid var(--border); }
  }
