/* POWERS OF SCALE — rework palette (Living Swarm: charcoal / cream / lime), shared across scale-a/b/c. */
.scale-rework{--ink:#11120f;--paper:#eae9d9;--lime:#e5fa83;--chapter-size:max(110svh,760px)}
.scale-rework.scale-page{background:var(--ink);color:var(--paper)}
.scale-rework.scale-page .studybar{background:#1b1c17;color:#c2c3b2}
.scale-rework.scale-page .studybar a{margin-right:14px}
.scale-rework .scale-chapter{height:var(--chapter-size);min-height:0}
.scale-rework .scale-chapter>.mono{color:#9ba078}
.scale-rework .scale-chapter em{color:var(--lime)}
.scale-rework .scale-chapter>p:not(.mono){color:#cfd0be}
.scale-rework .chapter-next{background:transparent;border-color:var(--lime);color:var(--lime)}
.scale-rework .chapter-nav a{background:#11120fcc;border-color:#e5fa8355;color:var(--paper)}
.scale-rework .chapter-nav a[aria-current]{background:var(--lime);color:#11120f}
.scale-rework .scale-main>.motion-toggle{background:#11120fcc;border-color:var(--lime);color:var(--lime)}
.scale-rework .scale-coordinate{color:#9ba078}
.scale-rework .scale-letters{background:var(--lime);color:#11120f}
.scale-rework .scale-letters button{border-color:#11120f}

/* preserved A/C portrait badge */
.portrait-badge{position:absolute;top:50px;left:4%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;transition:opacity .15s linear}
.portrait-badge canvas,.portrait-badge img{width:64px;height:64px;border-radius:50%;display:block;object-fit:cover;background:#1b1c17}
.portrait-badge span{font-family:'Courier New',monospace;font-size:10px;letter-spacing:.1em;color:#c2c3b2}
.portrait-badge img{display:none}
.portrait-badge.fallback img{display:block}
.portrait-badge.fallback canvas{display:none}
.portrait-badge.failed canvas,.portrait-badge.failed img{display:none}

/* identity — combined portrait + wordmark particle canvas, top-left of chapter one */
.identity{position:absolute;top:20px;left:6%;z-index:2}
.identity canvas{display:block;width:min(300px,calc(100vw - 12%));height:88px;pointer-events:auto;cursor:default;touch-action:pan-y}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* nav + motion toggle — hidden once the reader scrolls past the chapters */
.scale-rework .chapter-nav,.scale-rework .scale-main>.motion-toggle{transition:opacity .3s ease,visibility .3s ease}
.scale-rework.scale-b.beyond-chapters .chapter-nav,.scale-rework.scale-b.beyond-chapters .scale-main>.motion-toggle{opacity:0;visibility:hidden;pointer-events:none}

/* project index — a compact overview followed by the live newsletter feed */
.scale-rework .scale-projects{position:relative;z-index:5;background:var(--lime);color:#11120f;padding:60px 6% 120px}
.scale-rework .scale-projects>h2{font-size:clamp(40px,6vw,72px);letter-spacing:-.03em;margin:0 0 30px}
.scale-rework .project-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:980px;border-top:1px solid #11120f}
.scale-rework .project-index>a{min-height:145px;padding:22px 24px 24px 0;border-bottom:1px solid #11120f;display:flex;flex-direction:column;align-items:flex-start}
.scale-rework .project-index>a:nth-child(odd){border-right:1px solid #11120f;padding-right:28px}
.scale-rework .project-index>a:nth-child(even){padding-left:28px}
.scale-rework .project-index span,.scale-rework .project-index small{font-family:'Courier New',monospace;font-size:11px;line-height:1.5;letter-spacing:.05em}
.scale-rework .project-index strong{font-size:clamp(24px,3vw,38px);line-height:1;letter-spacing:-.04em;margin:18px 0 0}
.scale-rework .project-index small{margin-top:auto;color:#3a3d2f}
.scale-rework .project-newsletter{max-width:980px;margin-top:70px;padding-top:25px;border-top:1px solid #11120f}
.scale-rework .project-newsletter>.mono{margin:0 0 12px}
.scale-rework .project-newsletter>h3{font-size:clamp(32px,4vw,52px);letter-spacing:-.04em;margin:0 0 28px}
.scale-rework .feed-status{font-family:'Courier New',monospace;font-size:12px;letter-spacing:.05em;margin:0 0 20px}
.scale-rework .feed-status:empty{display:none}
.scale-rework .feed-list{list-style:none;margin:0 0 30px;padding:0;display:grid;gap:20px;max-width:640px}
.scale-rework .feed-list li{border-top:1px solid #11120f33;padding-top:16px}
.scale-rework .feed-list h3{margin:0 0 6px;font-size:20px;font-weight:600}
.scale-rework .feed-list a{color:#11120f;border-bottom:1px solid transparent}
.scale-rework .feed-list a:hover{border-bottom-color:#11120f}
.scale-rework .feed-list time{display:block;font-family:'Courier New',monospace;font-size:11px;color:#3a3d2f}
.scale-rework .feed-fallback{display:inline-block;font-size:13px;border:1px solid #11120f;padding:14px 20px}

/* A — faithful original composition, longer copy fitted */
.scale-a .scale-chapter h1,.scale-a .scale-chapter h2{font-size:clamp(40px,5.3vw,76px)}
.scale-a .scale-chapter>p:not(.mono){max-width:360px}

/* B — project names prominent above headline */
.scale-rework.scale-b{--chapter-size:max(95svh,680px)}
.scale-rework.scale-b .scale-chapter>p.project-name{font-family:'Courier New',monospace;font-size:clamp(13px,1.4vw,16px);letter-spacing:.14em;color:var(--lime);margin:0 0 8px;text-transform:uppercase;display:block;background:none;padding:0}
.scale-b .project-kind{display:block;font-size:11px;letter-spacing:.08em;color:#9ba078;text-transform:none;margin-top:4px}
.scale-b .scale-chapter h1,.scale-b .scale-chapter h2{font-size:clamp(38px,5vw,72px);margin-bottom:18px}
.scale-b .scale-chapter>p:not(.mono){max-width:360px}
.scale-rework.scale-b .scale-chapter>p.what-it-is{font-size:13px;color:#9ba078;max-width:340px;margin:0 0 20px;background:none;padding:0;display:block}
.scale-rework.scale-b .scale-chapter>p.status-label{display:inline-block;width:auto;font-family:'Courier New',monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--lime);border:1px solid var(--lime);padding:6px 12px;margin:0;background:#11120fcc}

/* C — persistent named chapter navigation */
.scale-c .scale-chapter h1,.scale-c .scale-chapter h2{font-size:clamp(38px,5vw,70px)}
.scale-c .scale-chapter>p:not(.mono){max-width:340px}
.scale-c .chapter-nav a{width:auto;height:auto;border-radius:20px;padding:8px 16px 8px 10px;display:flex;align-items:center;gap:10px}
.scale-c .chapter-nav .nav-label{font-family:'Courier New',monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase}

@media(max-width:700px){
  .scale-rework{--chapter-size:max(110svh,980px)}
  .scale-rework.scale-b{--chapter-size:max(100svh,740px)}
  .scale-rework .scale-chapter{padding-top:150px}
  .scale-rework .scale-chapter h1,.scale-rework .scale-chapter h2{font-size:clamp(36px,9vw,44px)}
  .scale-rework .scale-chapter>p:not(.mono){max-width:230px;background:#11120fe6;padding:3px 6px 3px 0;display:inline-block}
  .scale-rework .studybar>span{display:none}
  .scale-rework.scale-b .scale-chapter>p.project-name{display:block;background:none;padding:0}
  .scale-rework.scale-b .scale-chapter>p.what-it-is{display:block;background:#11120fe6;max-width:230px;padding:3px 6px 3px 0}
  .scale-c .chapter-nav a{width:29px;height:29px;padding:0;border-radius:50%;display:grid;place-items:center}
  .scale-c .chapter-nav .nav-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .identity{top:14px;left:5%}
  .identity canvas{height:60px;width:calc(100vw - 10%)}
  .scale-rework .scale-projects{padding:45px 5% 90px}
  .scale-rework .project-index{grid-template-columns:1fr}
  .scale-rework .project-index>a,.scale-rework .project-index>a:nth-child(odd),.scale-rework .project-index>a:nth-child(even){min-height:120px;padding:18px 0;border-right:0}
  .scale-rework .project-index strong{margin-top:12px}
  .scale-rework .project-newsletter{margin-top:50px}
  .portrait-badge{top:44px;left:5%}
  .portrait-badge canvas,.portrait-badge img{width:56px;height:56px}
  .portrait-badge span{font-size:9px}
}
@media(max-width:360px){
  .scale-rework .scale-chapter>p:not(.mono){max-width:200px;font-size:14px}
}

@media(min-width:701px){.scale-b .scale-chapter{padding-bottom:160px}}

/* Homepage polish (design review 2026-09-28). Scoped to the production homepage; exploration pages are unchanged. */
.scale-production .scale-chapter h1,.scale-production .scale-chapter h2{letter-spacing:-.045em;line-height:.9}
.scale-production .scale-chapter em{letter-spacing:-.03em}
@media(min-width:701px){.scale-production .scale-chapter h2{font-size:clamp(38px,4.6vw,66px);max-width:58%}}
.scale-rework.scale-b.scale-production .scale-chapter>p.what-it-is{font-size:17px;line-height:1.55;color:#cfd0be;max-width:400px}
.scale-rework.scale-b.scale-production .scale-chapter>p:not(.what-it-is):not(.project-name){font-size:15px;line-height:1.6;color:#9ba078;max-width:380px}
@media(max-width:700px){.scale-rework.scale-b.scale-production .scale-chapter>p.what-it-is,.scale-rework.scale-b.scale-production .scale-chapter>p:not(.what-it-is):not(.project-name){font-size:16px;max-width:260px;background:none;padding:0;text-shadow:0 0 4px #11120f,0 0 12px #11120f,0 0 18px #11120f}}
.scale-production .chapter-next{display:inline-flex;align-items:flex-end;min-height:44px;font-size:13px;letter-spacing:.06em;padding-bottom:8px}
@media(max-width:700px){.scale-production .chapter-next{background:none;text-shadow:0 0 4px #11120f,0 0 12px #11120f}}
.scale-production .project-index{max-width:none}
.scale-production .project-index small{padding-top:16px}
.scale-production .project-index>a:hover strong,.scale-production .project-index>a:focus-visible strong{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
/* Instrument buttons on the production homepage (buttons.css) */
.scale-production .chapter-cta{margin-top:14px}
.scale-production .ab-secondary{--ab-bg:#11120fb8;--ab-hover-bg:#1c1e14}
.scale-rework.scale-production .scale-main>.motion-toggle.ab-util{border-radius:0;background:#11120fcc;border-color:#3a3d2f;color:#a6aa95;padding:0 12px;font-size:11px}
@media(hover:hover){.scale-rework.scale-production .scale-main>.motion-toggle.ab-util:hover{color:#eae9d9;border-color:#a6aa95}}
