
    /* ═══════════════════════════════════════════════════════════
       DreamGuru case study - single coherent design system
       SF Pro Display · editorial rhythm · light + dark
       ═══════════════════════════════════════════════════════════ */
    :root {
      --paper: #ffffff; --paper-2: #f5f5f5; --paper-3: #eef0f2;
      --bg: #ffffff; --fg: #22271e; --fg-dim: #4a4a40;
      --muted: #6a7484;
      --rule: rgba(20,32,52,.12); --rule-soft: rgba(20,32,52,.07);
      --card-bg: #f5f5f5; --card-line: rgba(20,32,52,.06);
      --accent: #0083E7; --emph: #0083E7;
      --band: #EAF3FA; --band-card: #ffffff;
      --no-bg: rgba(216,90,48,.10); --no-fg: #a3453d; --no-line: rgba(216,90,48,.30);
      --yes-bg: rgba(88,168,110,.14); --yes-fg: #346947; --yes-line: rgba(88,168,110,.36);
      --sh-1: 0 14px 40px -26px rgba(20,32,52,.22);
      --sh-2: 0 26px 60px -30px rgba(20,32,52,.34);
      --sh-3: 0 6px 20px -6px rgba(20,32,52,.12);
      --ease: cubic-bezier(.22,1,.36,1);
      --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      --mono: var(--font);
      --maxw: 1080px; --gutter: clamp(20px, 4vw, 64px);
    }
    html.dark {
      --paper: #0c0c0c; --paper-2: #17181b; --paper-3: #1f2126;
      --bg: #0c0c0c; --fg: #f2f3f5; --fg-dim: #a6adb8;
      --muted: #878e99;
      --rule: rgba(255,255,255,.12); --rule-soft: rgba(255,255,255,.06);
      --card-bg: #151619; --card-line: rgba(255,255,255,.08);
      --accent: #3aa2ff; --emph: #3aa2ff;
      --band: #101820; --band-card: #171f29;
      --no-bg: rgba(255,122,89,.13); --no-fg: #ff9d82; --no-line: rgba(255,122,89,.32);
      --yes-bg: rgba(94,201,128,.14); --yes-fg: #82d9a0; --yes-line: rgba(94,201,128,.34);
      --sh-1: 0 14px 40px -26px rgba(0,0,0,.55);
      --sh-2: 0 26px 60px -30px rgba(0,0,0,.72);
      --sh-3: 0 6px 20px -6px rgba(0,0,0,.55);
    }

    * { box-sizing: border-box; corner-shape: squircle; }
    html { scroll-behavior: smooth; overflow-x: clip; }
    html, body { margin: 0; padding: 0; max-width: 100%; }
    body {
      background: var(--bg); color: var(--fg);
      font-family: var(--font); font-size: 17px; line-height: 1.65;
      -webkit-font-smoothing: antialiased; overflow-x: clip;
    }
    ::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--fg); }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; height: auto; border-radius: 32px; }
    a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

    .wrap { max-width: var(--maxw); width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
    .hero, .opener { scroll-margin-top: 48px; }

    /* ── Type voices ──────────────────────────────────────────
       1. Display: SF Pro 600, tight tracking
       2. Body: 17px / 1.65, dim ink
       3. Label: 11px caps, .09em tracking, 600  */
    .kicker, .opener .label, .caption, .figure figcaption,
    .voice-card .loc, .problems .p .num, .decisions .d .n,
    .concepts .c .label, .layout-options .opt .status,
    .imp .eyebrow, .metric .tag-label, .voices-label,
    .ph-label, .cr-fact > span, .cr-navlabel, .dg-flow .role {
      font-family: var(--font); font-size: 11px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.09em;
      color: var(--muted); line-height: 1.5;
    }

    /* ── Pills / tags ── */
    .pill, .metric .tag, .problems .p .tag, .concepts .verdict-tags .tag {
      display: inline-flex; align-items: center;
      font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--fg-dim); background: var(--paper-2);
      border: 1px solid var(--rule); border-radius: 999px;
      padding: 5px 11px; line-height: 1.4; white-space: nowrap;
    }
    /* Chips sitting inside a grey card get a contrasting (white / elevated) fill
       so they stand out; the hero .pill on the page keeps its grey fill. */
    .metric .tag, .problems .p .tag, .concepts .verdict-tags .tag { background: var(--paper); }
    html.dark .metric .tag, html.dark .problems .p .tag, html.dark .concepts .verdict-tags .tag { background: var(--paper-3); }
    .pill.brand {
      color: var(--accent);
      border-color: color-mix(in srgb, var(--accent) 45%, transparent);
      background: color-mix(in srgb, var(--accent) 9%, transparent);
    }

    /* ── Topbar ── */
    .cs-topbar {
      position: sticky; top: 0; z-index: 50;
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px clamp(20px, 4vw, 64px);
      background: color-mix(in oklab, var(--paper) 85%, transparent);
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--rule-soft);
    }
    .cs-back {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--muted); transition: color 0.15s;
    }
    .cs-back:hover { color: var(--fg); }
    .cs-back-arrow { font-size: 14px; line-height: 1; }

    /* ── Hero ── */
    .hero { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
    .hero .eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3.5vw, 32px); }
    .hero h1 {
      font-weight: 600; font-size: clamp(34px, 4.4vw, 54px);
      line-height: 1.06; letter-spacing: -0.025em;
      margin: 0 0 18px; text-wrap: balance; max-width: 24ch;
    }
    .hero h1 .acc { color: var(--accent); }
    .hero .lede {
      font-size: clamp(17px, 1.7vw, 20px); color: var(--fg-dim);
      line-height: 1.55; max-width: 58ch; margin: 0; text-wrap: pretty;
    }

    /* ── Metrics strip ── */
    .metrics {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
      border: 1px solid var(--card-line); border-radius: 40px; overflow: hidden;
      background: var(--card-bg); box-shadow: var(--sh-1);
      margin: clamp(28px, 4vw, 40px) 0 clamp(48px, 6vw, 72px);
    }
    .metric {
      padding: 26px 24px; border-right: 1px solid var(--rule-soft);
      display: flex; flex-direction: column;
      transition: background .3s;
    }
    .metric:last-child { border-right: none; }
    .metric:hover { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }
    .metric .big {
      font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
      font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--fg);
    }
    .metric .big .trend { color: var(--accent); display: inline-block; margin-left: 4px; }
    .metric .label { font-size: 14px; color: var(--fg-dim); line-height: 1.5; margin: 12px 0 16px; flex-grow: 1; }
    .metric .tag { align-self: flex-start; }
    @media (max-width: 820px) {
      .metrics { grid-template-columns: repeat(2, 1fr); }
      .metric:nth-child(2n) { border-right: none; }
      .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule-soft); }
    }
    @media (max-width: 480px) {
      .metrics { grid-template-columns: 1fr; }
      .metric { border-right: none; border-bottom: 1px solid var(--rule-soft); }
      .metric:last-child { border-bottom: none; }
    }

    /* ── Cover ── */
    .cover-plate--filled {
      background: transparent; border-radius: 40px; overflow: hidden;
      border: 1px solid var(--card-line);
      margin-bottom: clamp(48px, 6vw, 72px);
    }
    .cover-plate--filled img { width: 100%; height: auto; display: block; border-radius: 0; }

    /* ── TL;DR - editorial statement, no box ── */
    .tldr { margin: 0 0 clamp(48px, 6vw, 72px); max-width: 60ch; }
    .tldr .kicker { display: block; margin-bottom: 12px; }
    .tldr p {
      margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 500;
      line-height: 1.5; letter-spacing: -0.012em; color: var(--fg); text-wrap: pretty;
    }
    .tldr p strong { color: var(--accent); font-weight: 600; }

    /* ── Process timeline ── */
    .escal { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0 0 clamp(16px, 2vw, 24px); }
    .escal .node {
      flex: 1 1 140px; border: 1px solid var(--card-line); border-radius: 18px;
      padding: 18px 16px; background: var(--card-bg); box-shadow: var(--sh-1);
      transition: box-shadow .25s var(--ease), transform .25s var(--ease);
    }
    .escal .node:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
    .escal .node .en { font-size: 10px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
    .escal .node .et { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; color: var(--fg); }
    .escal .node .ed { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
    .escal .node.last { background: var(--fg); border-color: var(--fg); }
    .escal .node.last .en { color: color-mix(in srgb, var(--bg) 60%, var(--fg)); }
    .escal .node.last .et { color: var(--bg); }
    .escal .node.last .ed { color: color-mix(in srgb, var(--bg) 75%, var(--fg)); }
    .escal .arrowx { align-self: center; color: var(--muted); font-size: 18px; flex: 0 0 auto; }
    @media (max-width: 820px) {
      .escal { flex-direction: column; }
      .escal .node { flex: 1 1 auto; }
      .escal .arrowx { transform: rotate(90deg); margin: 2px auto; }
    }

    /* ── Act break ── */
    /* Full-bleed divider line with a fixed 120px of breathing room above and
       below it, applied consistently to every act break down the page. */
    .opener {
      display: flex; flex-direction: column;
      padding: 120px 0 0;
      margin: 120px 0 clamp(36px, 5vw, 52px);
      position: relative;
    }
    .opener::before {
      content: ""; position: absolute; top: 0; left: -100vw; right: -100vw;
      height: 1px; background: var(--rule);
    }
    .opener .title {
      font-weight: 600; font-size: clamp(27px, 3.4vw, 44px);
      line-height: 1.1; letter-spacing: -0.024em;
      margin: 0 0 10px; text-wrap: balance; max-width: 26ch;
    }
    .opener .num-big { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 2px; }
    .opener .sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--fg-dim); line-height: 1.55; max-width: 56ch; margin: 0; text-wrap: pretty; }

    /* ── Section scaffold ── */
    .section { margin-bottom: clamp(56px, 7vw, 96px); }
    .section .kicker { margin: 0 0 10px; }
    .section h2 {
      font-weight: 600; font-size: clamp(22px, 2.6vw, 31px);
      line-height: 1.15; letter-spacing: -0.02em;
      margin: 0 0 16px; text-wrap: balance; max-width: 34ch;
    }
    .section h2 .acc, .section h3 .acc, .opener .title .acc { color: var(--accent); }
    .section h3 {
      font-weight: 600; font-size: clamp(18px, 1.9vw, 22px);
      line-height: 1.25; letter-spacing: -0.014em;
      margin: clamp(44px, 6vw, 64px) 0 10px; text-wrap: balance;
    }
    .section p { font-size: 17px; color: var(--fg-dim); line-height: 1.65; margin: 0 0 18px; max-width: 68ch; text-wrap: pretty; }
    .section p strong { color: var(--fg); font-weight: 600; }
    .section ul.bullets { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 68ch; }
    .section ul.bullets li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.6; color: var(--fg-dim); }
    .section ul.bullets li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 15px; line-height: 1.7; }
    .section ul.bullets li strong { color: var(--fg); font-weight: 600; }

    /* ── Card base (shared) ── */
    .problems .p, .decisions .d, .concepts .c, .scoreboard .col,
    .layout-options .opt, .voice-card, .imp, .synthesis-panel .insights .i {
      background: var(--card-bg);
      border: 1px solid var(--card-line);
      border-radius: 40px; corner-shape: squircle;
      box-shadow: var(--sh-1);
      transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    }
    .problems .p:hover, .decisions .d:hover, .concepts .c:hover,
    .scoreboard .col:hover, .voice-card:hover, .synthesis-panel .insights .i:hover {
      transform: translateY(-4px);
      border-color: color-mix(in srgb, var(--accent) 22%, var(--card-line));
      box-shadow: var(--sh-2);
    }

    /* ── Problems / pressures grid ── */
    .problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3.5vw, 28px); margin: clamp(28px, 4vw, 40px) 0 0; align-items: stretch; }
    @media (max-width: 880px) { .problems { grid-template-columns: 1fr; } }
    .problems .p { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
    .problems .p .num { color: var(--accent); }
    .problems .p .what { font-weight: 600; font-size: 18px; letter-spacing: -0.014em; line-height: 1.3; color: var(--fg); }
    .problems .p .detail { font-size: 17px; color: var(--fg-dim); line-height: 1.6; margin: 0; }
    .problems .p .tag { margin-top: auto; align-self: flex-start; }

    /* ── Voice cards ── */
    .voices-label { display: block; margin: clamp(36px, 5vw, 52px) 0 16px; }
    .voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3.5vw, 28px); margin: 0; }
    @media (max-width: 980px) { .voice-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 780px) { .voice-grid { grid-template-columns: 1fr; } }
    .voice-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 22px; }
    .voice-card .voice-quote { margin-bottom: auto; }
    .voice-card .voice-quote blockquote { margin: 0; font-weight: 500; font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--fg); }
    .voice-card .voice-head { display: flex; align-items: center; gap: 14px; margin-top: auto; }
    .voice-card .voice-avatar {
      width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--rule-soft);
      background: var(--paper-3); border-radius: 50%; overflow: hidden;
    }
    .voice-card .voice-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
    .voice-card .name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; color: var(--fg); }
    .voice-card .loc { margin-top: 3px; font-size: 10px; }

    /* ── Pull quote - centered editorial statement ── */
    .pull-quote {
      margin: clamp(48px, 7vw, 72px) auto; padding: 0;
      max-width: 720px; text-align: center;
    }
    .pull-quote::before {
      content: "\201C"; display: block;
      font-size: 54px; line-height: 0.4; font-weight: 600;
      color: var(--accent); margin-bottom: 22px;
    }
    .pull-quote p {
      margin: 0; font-weight: 500;
      font-size: clamp(20px, 2.3vw, 27px); line-height: 1.4;
      letter-spacing: -0.018em; color: var(--fg); max-width: none; text-wrap: pretty;
    }
    .pull-quote .attr { display: block; margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

    /* ── Figures ── */
    .figure { margin: clamp(28px, 4vw, 44px) 0; position: relative; }
    .figure--live { background: transparent; padding: 0; border: none; }
    .figure--live .figure-img { width: 100%; height: auto; display: block; }
    .figure--caption-top { display: flex; flex-direction: column; gap: 10px; }
    .figure--caption-top .caption { order: -1; padding: 0; border: none; background: transparent; }
    .figure--caption-top .figure-img { border: 1px solid var(--rule-soft); border-radius: 32px; }

    /* ── Placeholder frames ── */
    .figure--placeholder {
      border: 1.5px dashed var(--rule); border-radius: 32px;
      background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, var(--paper-2) 12px, var(--paper-2) 24px);
      min-height: 280px;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 8px; margin: clamp(28px, 4vw, 44px) 0; padding: 32px; text-align: center;
    }
    .figure--placeholder .ph-label { color: var(--fg-dim); }
    .figure--placeholder .ph-sub { font-size: 14px; color: var(--muted); max-width: 44ch; line-height: 1.55; }

    /* ── Artifact grid (2-up images) ── */
    .artifact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin: clamp(28px, 4vw, 40px) 0 0; }
    @media (max-width: 780px) { .artifact-grid { grid-template-columns: 1fr; } }
    .artifact-grid .figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
    .artifact-grid .figure--live .caption { order: -1; padding: 0; border: none; background: transparent; }
    .artifact-grid .figure--live .figure-img { border-radius: 32px; border: 1px solid var(--rule-soft); }

    /* ── Affinity board ── */
    .affinity-board {
      border-radius: 40px; corner-shape: squircle; border: 1px solid var(--card-line);
      background: color-mix(in oklab, var(--paper-3) 55%, #f5f0e6);
      padding: clamp(16px, 2.2vw, 24px);
    }
    html.dark .affinity-board { background: color-mix(in oklab, var(--paper-3) 70%, #2e2a24); }
    .affinity-board .board-meta {
      display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 12px;
      font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    }
    .affinity-board .board-meta .count { color: var(--accent); }
    .affinity-board .board-wrap { position: relative; padding-left: 36px; padding-bottom: 32px; }
    .affinity-board .axis-y { position: absolute; left: 0; top: 0; bottom: 32px; width: 32px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 0; }
    .affinity-board .axis-y .tick, .affinity-board .axis-x .tick { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
    .affinity-board .axis-y .axis-name { writing-mode: vertical-rl; transform: rotate(180deg); }
    .affinity-board .axis-y .axis-name, .affinity-board .axis-x .axis-name { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
    .affinity-board .axis-x { position: absolute; left: 36px; right: 0; bottom: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
    .affinity-board .axis-x .axis-name { position: absolute; left: 50%; transform: translateX(-50%); }
    .affinity-board .axis-legend { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--fg-dim); }
    .affinity-board .axis-legend strong { color: var(--fg); font-weight: 600; }
    .affinity-board .quad-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; min-height: clamp(280px, 34vw, 360px); gap: 0; border: 1px solid var(--rule); position: relative; background: var(--paper); border-radius: 12px; }
    .affinity-board .quad-grid::before, .affinity-board .quad-grid::after { content: ""; position: absolute; background: var(--rule); z-index: 1; pointer-events: none; }
    .affinity-board .quad-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
    .affinity-board .quad-grid::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
    .affinity-board .quad { position: relative; padding: 12px; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 8px; z-index: 0; }
    .affinity-board .quad-label { flex: 0 0 100%; width: 100%; margin: 0 0 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
    .affinity-board .quad-label em { font-style: normal; color: var(--fg-dim); }
    .affinity-board .quad--focus { background: color-mix(in oklab, var(--accent) 7%, transparent); }
    .affinity-board .quad--focus .quad-label, .affinity-board .quad--focus .quad-label em { color: var(--accent); }
    .affinity-board .note { font-size: 11.5px; line-height: 1.4; padding: 9px 10px 11px; max-width: 11em; color: #1d2129; box-shadow: 1px 2px 5px rgba(17,24,39,.12); flex-shrink: 0; border-radius: 6px; }
    .affinity-board .note:nth-child(2) { transform: rotate(-1.8deg); }
    .affinity-board .note:nth-child(3) { transform: rotate(1.4deg); }
    .affinity-board .note:nth-child(4) { transform: rotate(-0.8deg); }
    .affinity-board .note:nth-child(5) { transform: rotate(2deg); }
    .affinity-board .note:nth-child(6) { transform: rotate(-1.2deg); }
    .affinity-board .note--y { background: #fef08a; }
    .affinity-board .note--p { background: #fbcfe8; }
    .affinity-board .note--g { background: #bbf7d0; }
    .affinity-board .note--b { background: #bfdbfe; }
    .affinity-board .note--o { background: #fed7aa; }
    .affinity-board .board-insight { margin: 14px 0 0; font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
    .affinity-board .board-insight strong { color: var(--fg); font-weight: 600; }
    @media (max-width: 680px) {
      .affinity-board .quad-grid { min-height: 420px; }
      .affinity-board .note { max-width: none; flex: 1 1 calc(50% - 8px); min-width: 7.5em; }
    }

    /* ── Telegram / YouTube flow map ── */
    .dg-flow-wrap { width: 100%; padding: clamp(20px, 4vw, 30px) 0 0; }
    .dg-flow { position: relative; width: 100%; margin: 0 auto; }
    .dg-grid-complete { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto; grid-template-rows: 1fr 1fr; align-items: center; justify-items: center; width: 100%; min-height: 220px; }
    .dg-flow .line { height: 2px; background: var(--accent); opacity: 0.35; transform-origin: left; transform: scaleX(0); transition: transform 0.8s var(--ease); width: 100%; min-width: 12px; }
    .dg-flow.go .line { transform: scaleX(1); }
    .converge-wrap { width: 100%; height: 100%; position: relative; min-width: 24px; }
    .converge-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .dg-flow .conn { stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 2px; fill: none; }
    .dg-flow .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s var(--ease); }
    .dg-flow.go .draw { stroke-dashoffset: 0; }
    .dg-flow .pnode {
      background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
      padding: 10px; text-align: center; box-shadow: var(--sh-1);
      opacity: 0; transition: opacity 0.6s ease; width: max-content; max-width: 110px;
      display: flex; flex-direction: column; justify-content: center;
    }
    .dg-flow .pnode.paid { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
    .dg-flow .role { font-size: clamp(8px, 0.9vw, 10px); letter-spacing: 0.08em; }
    .dg-flow .act { font-weight: 600; font-size: clamp(10px, 1.1vw, 13px); margin-top: 2px; color: var(--fg); line-height: 1.25; }
    .dg-flow .dnode {
      background: var(--accent); color: #fff; border: none; border-radius: 12px;
      padding: 12px; text-align: center; opacity: 0; transition: opacity 0.6s ease;
      font-size: clamp(9px, 1.1vw, 11px); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
      width: max-content; max-width: 120px; line-height: 1.3;
      display: flex; flex-direction: column; justify-content: center;
    }
    .dg-flow.go .pnode, .dg-flow.go .dnode { opacity: 1; }
    .dg-flow.go .c1 { transition-delay: 0s; }
    .dg-flow.go .c2 { transition-delay: 0.15s; }
    .dg-flow.go .c3 { transition-delay: 0.3s; }
    .dg-flow.go .c4 { transition-delay: 0.45s; }
    .dg-flow.go .c5 { transition-delay: 0.6s; }
    .dg-flow.go .c6 { transition-delay: 0.75s; }
    .dg-flow.go .c7 { transition-delay: 0.9s; }
    .dg-flow-summary { margin: 24px auto 0; font-size: 16px; line-height: 1.55; color: var(--fg-dim); text-align: center; max-width: 52ch; font-weight: 500; }
    .dg-flow-summary strong { color: var(--fg); font-weight: 600; }

    /* ── Synthesis insights ── */
    .synthesis-panel { margin-top: clamp(56px, 8vw, 96px); }
    .synthesis-panel .insights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: clamp(24px, 3vw, 32px); }
    @media (max-width: 780px) { .synthesis-panel .insights { grid-template-columns: 1fr; } }
    .synthesis-panel .insights .i { position: relative; overflow: hidden; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(20,32,52,.05); border-radius: 40px; corner-shape: squircle; box-shadow: 0 14px 40px -26px rgba(20,32,52,.22); transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease, background .45s ease; }
    .synthesis-panel .insights .i:nth-child(1) { background: linear-gradient(135deg, #fbf7f4 0%, #f5f6f8 45%); }
    .synthesis-panel .insights .i:nth-child(2) { background: linear-gradient(135deg, #f1f6fb 0%, #f5f6f8 45%); }
    .synthesis-panel .insights .i:nth-child(3) { background: linear-gradient(135deg, #f6f2f9 0%, #f5f6f8 45%); }
    .synthesis-panel .insights .i:nth-child(4) { background: linear-gradient(135deg, #f0f1f3 0%, #f5f6f8 45%); }
    .synthesis-panel .insights .i .num { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.09em; line-height: 1.5; text-transform: uppercase; color: var(--accent); display: inline-block; transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
    .synthesis-panel .insights .i:hover .num { transform: translateX(2px); }
    .synthesis-panel .insights .i h4 { font-weight: 600; font-size: 18px; letter-spacing: -0.014em; line-height: 1.3; color: var(--fg); margin: 0; transition: color .3s; }
    .synthesis-panel .insights .i:hover h4 { color: var(--accent); }
    .synthesis-panel .insights .i p { font-size: 17px; color: var(--fg-dim); margin: 0; line-height: 1.6; max-width: none; }
    html.dark .synthesis-panel .insights .i:nth-child(n) { background: var(--card-bg); }
    html.dark .synthesis-panel .insights .i:hover { background: #1b1d22; }

    /* ── Concepts ── */
    .concepts { display: flex; flex-direction: column; gap: clamp(12px, 3.5vw, 28px); margin-top: clamp(28px, 4vw, 40px); }
    .concepts .c { padding: 24px 26px; }
    .concepts .c .c-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 12px; flex-wrap: wrap; }
    .concepts .c .label { display: block; margin-bottom: 5px; color: var(--accent); }
    .concepts .c h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.014em; color: var(--fg); }
    .concepts .verdict-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
    .concepts .verdict-tags .tag.no { background: var(--no-bg); color: var(--no-fg); border-color: var(--no-line); }
    .concepts .verdict-tags .tag.yes { background: var(--yes-bg); color: var(--yes-fg); border-color: var(--yes-line); }
    .concepts .c .c-body p { font-size: 17px; color: var(--fg-dim); line-height: 1.6; margin: 0; max-width: none; }
    .concepts .c .c-body p strong { color: var(--fg); font-weight: 600; }
    .concepts .c.winner {
      background: color-mix(in srgb, var(--accent) 6%, var(--card-bg));
      border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    }
    .concepts .c.winner:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
    @media (max-width: 640px) { .concepts .verdict-tags { justify-content: flex-start; } }

    /* ── Decisions ── */
    .decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(12px, 3.5vw, 28px); margin-top: clamp(28px, 4vw, 40px); }
    .decisions .d { padding: 26px 24px; }
    .decisions .d .n { color: var(--accent); margin-bottom: 10px; }
    .decisions .d h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--fg); }
    .decisions .d p { font-size: 17px; color: var(--fg-dim); line-height: 1.6; margin: 0; max-width: none; }

    /* ── Layout options ── */
    .layout-options { display: flex; flex-direction: column; gap: clamp(12px, 3.5vw, 28px); margin-top: clamp(28px, 4vw, 40px); }
    .layout-options .opt { display: grid; grid-template-columns: 96px 1fr 168px; gap: 22px; align-items: center; padding: 20px 24px; border-radius: 40px; corner-shape: squircle; }
    @media (max-width: 640px) { .layout-options .opt { grid-template-columns: 1fr; gap: 8px; } .layout-options .opt .result { text-align: left; } }
    .layout-options .opt .status { color: var(--accent); }
    .layout-options .opt h4 { margin: 0 0 3px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--fg); }
    .layout-options .opt p { margin: 0; font-size: 17px; color: var(--fg-dim); max-width: none; line-height: 1.6; }
    .layout-options .opt .result { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--fg-dim); text-align: right; line-height: 1.45; }
    .layout-options .opt.shipped {
      background: color-mix(in srgb, var(--accent) 6%, var(--card-bg));
      border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    }
    .layout-options .opt.shipped .result { color: var(--accent); }

    /* ── Impact band + cards ── */
    .impact-sky { background: var(--band); padding: clamp(32px, 5vw, 52px); border-radius: 72px; margin: clamp(28px, 4vw, 40px) 0; }
    .impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(12px, 3.5vw, 28px); margin: clamp(28px, 4vw, 40px) 0; }
    .impact-sky .impact, .impact-sky .scoreboard { margin: 0; }
    .imp { padding: 28px; background: var(--band-card); }
    .impact-sky .imp { border-color: transparent; }
    .imp .eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
    .imp .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
    .imp .ibig { font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.018em; line-height: 1.2; margin-bottom: 10px; color: var(--fg); }
    .imp .ibig .arrow { color: var(--accent); font-size: 0.9em; margin-left: 4px; }
    .imp p { font-size: 17px; color: var(--fg-dim); margin: 0; line-height: 1.6; max-width: none; }
    .imp p strong { color: var(--fg); font-weight: 600; }

    /* ── Scoreboard ── */
    .scoreboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 3.5vw, 28px); margin-top: clamp(28px, 4vw, 40px); }
    @media (max-width: 780px) { .scoreboard { grid-template-columns: 1fr; } }
    .scoreboard .col { padding: 28px 26px; }
    .impact-sky .scoreboard .col { background: var(--band-card); border-color: transparent; }
    .scoreboard .col .k { font-weight: 500; font-size: clamp(38px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1; color: var(--accent); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
    .scoreboard .col .title { font-weight: 600; font-size: 16.5px; letter-spacing: -0.012em; margin-bottom: 6px; color: var(--fg); }
    .scoreboard .col p { font-size: 17px; color: var(--fg-dim); margin: 0; max-width: none; line-height: 1.6; }

    /* ── More cases ── */
    .more-cases-section { position: relative; margin-top: 120px; padding-top: 120px; padding-bottom: 100px; }
    .more-cases-section::before { content: ""; position: absolute; top: 0; left: -100vw; right: -100vw; height: 1px; background: var(--rule); }
    .more-cases-section h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; letter-spacing: -0.014em; margin: 0 0 22px; }
    .more-cases-grid { display: flex; justify-content: space-between; gap: clamp(16px, 2vw, 24px); }
    @media (max-width: 640px) { .more-cases-grid { flex-direction: column; } .case-card { max-width: 100%; } }
    .case-card {
      flex: 1; min-width: 0; max-width: 360px; display: flex; flex-direction: column;
      background: var(--paper); border: 1px solid var(--card-line); border-radius: 48px; corner-shape: squircle;
      padding: clamp(16px, 2.5vw, 24px);
      transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    }
    .case-card:hover {
      transform: translateY(-3px);
      border-color: color-mix(in srgb, var(--accent) 30%, var(--card-line));
      box-shadow: var(--sh-2);
    }
    .case-card .media { position: relative; background: var(--paper-2); overflow: hidden; border-radius: 28px; corner-shape: squircle; }
    .case-card .media img, .case-card .media video { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); border-radius: 0 !important; }
    .case-card:hover .media img, .case-card:hover .media video { transform: scale(1.02); }
    .case-card .tag {
      align-self: flex-start; margin-top: 14px;
      font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
      background: var(--paper-3);
      color: var(--fg); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule-soft);
    }
    .case-card .info { padding: 24px 8px 8px; display: flex; flex-direction: column; flex-grow: 1; }
    .case-card .info p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
    .case-card .info p strong { color: var(--fg); font-weight: 600; }
    html.dark .light-only { display: none; }
    html.dark .dark-only { display: block !important; }
    .img-dark { display: none !important; }
    html.dark .img-light { display: none !important; }
    html.dark .img-dark { display: block !important; }

    /* ── Theme toggle ── */
    .theme-toggle-pill { display: flex; align-items: center; gap: 4px; background: color-mix(in oklab, var(--paper) 80%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--rule-soft); border-radius: 9999px; padding: 4px; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
    .theme-btn { padding: 6px; border-radius: 9999px; cursor: pointer; background: transparent; border: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
    .theme-btn svg { width: 14px; height: 14px; }
    .theme-btn.active { background: var(--paper-3); color: var(--fg); }

    /* ── Left case rail ── */
    #caserail { display: none; }
    .cr-proj { font-weight: 700; letter-spacing: -0.02em; font-size: 20px; line-height: 1.04; color: var(--fg); display: block; margin-bottom: 22px; }
    .cr-proj .a { color: var(--accent); }
    .cr-meta { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
    .cr-fact > span { font-size: 10.5px; display: block; margin-bottom: 6px; }
    .cr-fact p { font-size: 14px; line-height: 1.5; color: var(--fg-dim); margin: 0; font-weight: 500; }
    .cr-fact p .org { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 4px; }
    .cr-rule { height: 1px; background: var(--rule-soft); margin: 2px 0 20px; }
    .cr-navlabel { font-size: 10px; margin-bottom: 12px; }
    .cr-nav { display: flex; flex-direction: column; gap: 2px; }
    .cr-nav a { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 6px 0 6px 14px; color: var(--fg-dim); font-size: 14px; transition: color 0.2s; }
    .cr-nav a .n { font-size: 11px; color: var(--muted); min-width: 15px; font-variant-numeric: tabular-nums; transition: color 0.2s; }
    .cr-nav a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 2px; height: 0; background: var(--accent); border-radius: 2px; transition: height 0.22s var(--ease); }
    .cr-nav a:hover { color: var(--fg); }
    .cr-nav a.active { color: var(--fg); font-weight: 600; }
    .cr-nav a.active .n { color: var(--accent); }
    .cr-nav a.active::before { height: 15px; }
    .cr-progress { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; }
    .cr-progress i { display: block; flex: 1; height: 2px; background: var(--rule-soft); position: relative; border-radius: 2px; overflow: hidden; }
    .cr-progress i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--accent); transition: width 0.15s linear; }
    .cr-pct { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
    @media (min-width: 1200px) {
      #caserail {
        display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: 250px; z-index: 60;
        flex-direction: column; padding: 30px 24px 24px 40px;
        background: var(--paper); border-right: 1px solid var(--rule-soft);
        overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
      }
      #caserail::-webkit-scrollbar { width: 0; }
      body { padding-left: 250px; }
    }

    /* ── Mobile ── */
    @media (max-width: 760px) {
      .opener .title { max-width: none; font-size: clamp(25px, 6.4vw, 34px); }
      .hero h1 { font-size: clamp(30px, 8vw, 40px); }

      /* ── Mobile border-radius scaling ──
         Desktop radii (40-72px) look disproportionately large
         on small screens. Scale them down to keep the same
         visual proportion as on desktop. */

      /* 72px → 32px */
      .impact-sky { border-radius: 32px; }

      /* 48px → 24px */
      .case-card { border-radius: 24px; }

      /* 40px → 22px */
      .problems .p, .decisions .d, .concepts .c, .scoreboard .col,
      .layout-options .opt, .voice-card, .imp,
      .synthesis-panel .insights .i { border-radius: 22px; }
      .metrics { border-radius: 22px; }
      .cover-plate--filled { border-radius: 22px; }
      .affinity-board { border-radius: 22px; }
      .affinity-board .figure--live .figure-img { border-radius: 22px; }

      /* 32px → 18px */
      img { border-radius: 18px; }
      .figure--caption-top .figure-img { border-radius: 18px; }
      .figure--placeholder { border-radius: 18px; }
      .artifact-grid .figure--live .figure-img { border-radius: 18px; }

      /* 28px → 16px */
      .case-card .media { border-radius: 16px; }

      /* 18px → 12px */
      .escal .node { border-radius: 12px; }
    }

    /* ── Reduced motion ── */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
      .dg-flow .line { transform: scaleX(1); }
      .dg-flow .pnode, .dg-flow .dnode { opacity: 1; }
      .dg-flow .draw { stroke-dashoffset: 0; }
    }


    /* ═══════════════════════════════════════════════════════════
       iOS continuous (squircle) corners — applied to every card
       and rounded container. Falls back to normal rounded corners
       in browsers without corner-shape support.
       ═══════════════════════════════════════════════════════════ */
    .metrics, .cover-plate--filled, .escal .node,
    .problems .p, .decisions .d, .concepts .c, .scoreboard .col,
    .layout-options .opt, .voice-card, .imp, .synthesis-panel .insights .i,
    .affinity-board, .affinity-board .quad-grid, .figure--placeholder, .impact-sky,
    .figure--caption-top .figure-img, .artifact-grid .figure--live .figure-img,
    .case-card, .case-card .media, .dg-flow .pnode, .dg-flow .dnode,
    .process-timeline, .process-timeline .step, .stats-strip, .stats-strip .stat,
    .artifact-grid--row .figure-img, .voice-card .voice-avatar {
      corner-shape: superellipse(2);
    }

