/* ═══════════════════════════════════════════════════════════════════════════
   Rise — internal research dossier
   Design system per AimShreem standards:
     Display  Outfit          Body  Manrope        Mono  JetBrains Mono
     Weights  300/400/500 only — hierarchy via size, spacing, colour
     Light + dark, system default, manual override, persisted
     WCAG 2.2 AA · honours prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Zone palette — the emotional spectrum. Reads contracted → open.
     Never the sole carrier of meaning: always paired with icon + label. */
  --zone-heavy:    #5b6398;
  --zone-churning: #c9663f;
  --zone-steady:   #3e8e7e;
  --zone-open:     #d9a441;

  /* Semantic — matches the house RBAC/diagram convention */
  --sem-fact:      #4a90d9;  /* blue   — neutral fact          */
  --sem-good:      #3fa66a;  /* green  — supported by evidence */
  --sem-warn:      #d99a2b;  /* amber  — contested / thin      */
  --sem-bad:       #d1495b;  /* red    — failed / risk         */
  --sem-ours:      #8b7cf6;  /* purple — our proposal / AI     */

  --radius:   14px;
  --radius-s: 9px;
  --maxw:     1180px;

  --ease: cubic-bezier(.4, 0, .2, 1);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

/* Dark is the default face of this document. */
:root, :root[data-theme='dark'] {
  --bg:          #0c0c12;
  --bg-1:        #12121b;
  --bg-2:        #191924;
  --bg-3:        #22222f;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --ink:         #ecedf5;
  --ink-2:       #a8aabf;
  --ink-3:       #74768d;
  --shadow:      0 18px 50px rgba(0, 0, 0, .5);
  --glow:        0 0 60px rgba(139, 124, 246, .16);
}

:root[data-theme='light'] {
  --bg:          #faf9f7;
  --bg-1:        #ffffff;
  --bg-2:        #f3f2ef;
  --bg-3:        #e9e8e3;
  --surface:     rgba(20, 20, 40, .028);
  --surface-2:   rgba(20, 20, 40, .05);
  --line:        rgba(20, 20, 40, .11);
  --line-strong: rgba(20, 20, 40, .2);
  --ink:         #1a1a22;
  --ink-2:       #55566a;
  --ink-3:       #86889c;
  --shadow:      0 14px 40px rgba(30, 30, 60, .1);
  --glow:        0 0 60px rgba(139, 124, 246, .09);

  --zone-heavy:    #4a5285;
  --zone-churning: #b5502c;
  --zone-steady:   #2f7566;
  --zone-open:     #a97b1e;
  --sem-fact:      #2f6fb5;
  --sem-good:      #2d7d4e;
  --sem-warn:      #9c6d12;
  --sem-bad:       #b03547;
  --sem-ours:      #6a55d8;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #faf9f7; --bg-1: #ffffff; --bg-2: #f3f2ef; --bg-3: #e9e8e3;
    --surface: rgba(20,20,40,.028); --surface-2: rgba(20,20,40,.05);
    --line: rgba(20,20,40,.11); --line-strong: rgba(20,20,40,.2);
    --ink: #1a1a22; --ink-2: #55566a; --ink-3: #86889c;
    --shadow: 0 14px 40px rgba(30,30,60,.1); --glow: 0 0 60px rgba(139,124,246,.09);
    --zone-heavy:#4a5285; --zone-churning:#b5502c; --zone-steady:#2f7566; --zone-open:#a97b1e;
    --sem-fact:#2f6fb5; --sem-good:#2d7d4e; --sem-warn:#9c6d12; --sem-bad:#b03547; --sem-ours:#6a55d8;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 82px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.18; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p  { margin: 0 0 1.05em; }
a  { color: var(--sem-ours); text-decoration-color: color-mix(in srgb, var(--sem-ours) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sem-ours); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 500; }
code { font-family: var(--font-mono); font-size: .87em; background: var(--surface-2);
       padding: .12em .42em; border-radius: 5px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--sem-ours); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip:focus { left: 16px; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 11px 24px;
          display: flex; align-items: center; gap: 18px; }
.brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
         letter-spacing: .01em; display: flex; align-items: center; gap: 9px; flex: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--zone-heavy), var(--sem-ours) 55%, var(--zone-open));
  box-shadow: var(--glow);
}
.brand .mark svg { width: 15px; height: 15px; color: #fff; }
.brand .tag { font-family: var(--font-body); font-size: .64rem; font-weight: 500;
              letter-spacing: .1em; text-transform: uppercase; color: var(--sem-bad);
              border: 1px solid color-mix(in srgb, var(--sem-bad) 45%, transparent);
              padding: 2px 7px; border-radius: 999px; }

.nav-links { display: flex; gap: 2px; margin-left: auto; overflow-x: auto;
             scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: .8rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 7px 10px; border-radius: 7px; font-weight: 400; transition: all .18s var(--ease);
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a.on { color: var(--ink); background: color-mix(in srgb, var(--sem-ours) 18%, transparent); }
.nav-links a .n { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-right: 4px; }

.theme-btn {
  flex: none; width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; transition: all .18s var(--ease);
}
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }
:root[data-theme='light'] .theme-btn .moon,
:root:not([data-theme]) .theme-btn .moon { display: none; }
:root[data-theme='dark'] .theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme-btn .moon { display: block; }
                                      :root:not([data-theme]) .theme-btn .sun  { display: none; } }

@media (max-width: 900px) { .nav-links { display: none; } }

/* Progress bar — scaleX so we never animate a layout property */
.prog { position: fixed; top: 0; left: 0; height: 2px; z-index: 60; width: 100%;
        background: linear-gradient(90deg, var(--zone-heavy), var(--zone-churning), var(--zone-steady), var(--zone-open));
        transform: scaleX(0); transform-origin: 0 50%; transition: transform .1s linear; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 76px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -50% -20% auto; height: 640px;
  background: radial-gradient(ellipse at 50% 0%,
    color-mix(in srgb, var(--sem-ours) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
           text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--zone-open); }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink-2); max-width: 62ch; font-weight: 300; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pill {
  font-size: .74rem; font-weight: 400; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface);
  display: inline-flex; align-items: center; gap: 6px;
}
.pill b { font-weight: 500; color: var(--ink); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.sec { padding: 76px 0; border-top: 1px solid var(--line); }
.sec-hd { margin-bottom: 40px; }
.sec-n {
  font-family: var(--font-mono); font-size: .78rem; color: var(--sem-ours);
  letter-spacing: .08em; display: block; margin-bottom: 10px;
}
.sec-hd p { color: var(--ink-2); max-width: 68ch; margin-top: 12px; margin-bottom: 0; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.card p:last-child { margin-bottom: 0; }
.card .sub { font-size: .84rem; color: var(--ink-3); }

/* Accent carried by a soft tint + the icon, not a side tab. */
.card.accent { background: linear-gradient(180deg,
                 color-mix(in srgb, var(--accent, var(--sem-ours)) 7%, var(--bg-1)), var(--bg-1) 60%); }

.ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent, var(--sem-ours)) 16%, transparent);
  color: var(--accent, var(--sem-ours));
}
.ico svg { width: 17px; height: 17px; }

/* Stat */
.stat { text-align: left; }
.stat .v { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
           font-weight: 300; line-height: 1; color: var(--accent, var(--ink)); letter-spacing: -.02em; }
.stat .k { font-size: .78rem; color: var(--ink-3); margin-top: 9px; line-height: 1.45; }

/* Verdict banner */
.verdict {
  border-radius: var(--radius); padding: 26px 28px; margin: 26px 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, var(--sem-ours)) 13%, var(--bg-1)),
    var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--accent, var(--sem-ours)) 32%, transparent);
}
.verdict h3 { color: var(--accent, var(--sem-ours)); margin-bottom: 10px;
              font-size: .8rem; letter-spacing: .11em; text-transform: uppercase;
              font-family: var(--font-body); font-weight: 500; }
.verdict p { font-size: 1.06rem; margin-bottom: 0; color: var(--ink); }
.verdict p + p { margin-top: .8em; }

/* ── Tables / matrices ──────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
            background: var(--bg-1); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 540px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
     color: var(--ink-3); background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td.num { font-family: var(--font-mono); font-size: .82rem; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 500;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--c, var(--ink-3)) 16%, transparent);
  color: var(--c, var(--ink-2));
  border: 1px solid color-mix(in srgb, var(--c, var(--ink-3)) 35%, transparent);
}
.badge.good { --c: var(--sem-good); } .badge.bad  { --c: var(--sem-bad); }
.badge.warn { --c: var(--sem-warn); } .badge.fact { --c: var(--sem-fact); }
.badge.ours { --c: var(--sem-ours); }

/* ── Legend ─────────────────────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 13px 16px; margin-bottom: 16px;
          background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
          font-size: .76rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }

/* ── Citations ──────────────────────────────────────────────────────────── */
.cite {
  font-family: var(--font-mono); font-size: .62rem; vertical-align: super;
  color: var(--sem-ours); text-decoration: none; padding: 0 1px;
}
.cite:hover { text-decoration: underline; }

.src-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.src-list li {
  counter-increment: s; position: relative; padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--ink-2);
}
.src-list li::before {
  content: '[' counter(s) ']'; position: absolute; left: 0; top: 12px;
  font-family: var(--font-mono); font-size: .7rem; color: var(--sem-ours);
}
.src-list li:last-child { border-bottom: none; }
.src-list b { color: var(--ink); font-weight: 500; }
.src-list .pub { color: var(--ink-3); }

/* ── Quote ──────────────────────────────────────────────────────────────── */
/* Thin neutral rule — the long-standing typographic convention for a pull
   quote, deliberately not an accent-coloured tab. */
blockquote {
  margin: 22px 0; padding: 16px 22px; border-left: 2px solid var(--line-strong);
  background: var(--surface); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-2); font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: 9px; font-size: .77rem; color: var(--ink-3); font-style: normal; }

/* ── Charts ─────────────────────────────────────────────────────────────── */
.chart-box { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
             padding: 20px; }
.chart-box h3 { font-size: .95rem; margin-bottom: 4px; }
.chart-box .sub { font-size: .77rem; color: var(--ink-3); margin-bottom: 16px; }
.chart-c { position: relative; height: 290px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px;
        color: var(--ink-3); font-size: .8rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.wm { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
      color: var(--sem-bad); border: 1px solid color-mix(in srgb, var(--sem-bad) 32%, transparent);
      padding: 5px 11px; border-radius: 6px; }

/* ── Check-in demo (§07) ────────────────────────────────────────────────── */
.ci {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; min-height: 430px;
}
.ci-q { font-family: var(--font-display); font-size: 1.45rem; font-weight: 300;
        margin-bottom: 6px; letter-spacing: -.01em; }
.ci-hint { font-size: .84rem; color: var(--ink-3); margin-bottom: 22px; }

.ci-grid { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.ci-grid-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.ci-btn {
  /* Deliberately oversized: the low-energy user is the design constraint. */
  min-height: 108px; padding: 18px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  background: color-mix(in srgb, var(--z) 9%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--z) 34%, transparent);
  border-radius: var(--radius-s); color: var(--ink);
  font-family: var(--font-body); transition: transform .18s var(--ease), background .18s var(--ease);
}
.ci-btn:hover { background: color-mix(in srgb, var(--z) 19%, var(--bg-2)); transform: translateY(-2px); }
.ci-btn:focus-visible { outline: 3px solid var(--z); outline-offset: 2px; }
.ci-emoji { font-size: 1.6rem; line-height: 1; }
.ci-label { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.ci-blurb { font-size: .8rem; color: var(--ink-2); font-weight: 300; line-height: 1.4; }

.ci-line {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  margin: 5px 0; color: var(--ink-3); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono);
}
.ci-line::before, .ci-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.ci-back { background: none; border: none; color: var(--ink-3); cursor: pointer;
           font-family: var(--font-body); font-size: .82rem; padding: 0 0 14px; }
.ci-back:hover { color: var(--ink); }

.ci-result { animation: ciIn .3s var(--ease); }
@keyframes ciIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ci-crown { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ci-emoji-lg { font-size: 3rem; line-height: 1; }
.ci-state { font-family: var(--font-display); font-size: 2rem; font-weight: 300;
            color: var(--z); letter-spacing: -.02em; line-height: 1.1; }
.ci-zone { font-size: .82rem; color: var(--ink-3); margin-top: 2px; }

.ci-note { background: color-mix(in srgb, var(--z) 10%, transparent);
           border: 1px solid color-mix(in srgb, var(--z) 26%, transparent);
           border-radius: var(--radius-s); padding: 14px 16px; font-size: .9rem;
           color: var(--ink-2); margin-bottom: 16px; }
.ci-note strong { color: var(--ink); }

.ci-practice { background: var(--surface); border: 1px solid var(--line);
               border-radius: var(--radius-s); padding: 16px 18px; }
.ci-practice-hd { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
                  color: var(--ink-3); margin-bottom: 7px; font-weight: 500; }
.ci-practice p { margin: 0; font-size: 1.02rem; color: var(--ink); }

.ci-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.ci-again { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink);
            border-radius: var(--radius-s); padding: 9px 16px; cursor: pointer;
            font-family: var(--font-body); font-size: .84rem; min-height: 40px; }
.ci-again:hover { background: var(--surface); }
.ci-nonum { font-size: .76rem; color: var(--ink-3); }


/* ── §02 the claimed scale ──────────────────────────────────────────────── */
.sc {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.sc-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
             font-size: .76rem; color: var(--ink-2); margin-bottom: 20px; }
.sc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sc-sw { width: 22px; height: 9px; border-radius: 2px; flex: none; }
.sc-sw-power { background: linear-gradient(90deg, var(--zone-steady), var(--sem-ours)); }
.sc-sw-force { background: linear-gradient(90deg, var(--zone-heavy), var(--zone-churning)); }
.sc-legend-hint { margin-left: auto; color: var(--ink-3); font-family: var(--font-mono);
                  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.sc-wrap { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 780px) { .sc-wrap { grid-template-columns: 1fr; } .sc-axis { display: none; } }

/* axis */
.sc-axis { display: flex; flex-direction: column; height: 100%; gap: 0; }
.sc-axis-label { flex: 1; display: flex; flex-direction: column; align-items: center;
                 justify-content: center; gap: 8px; }
.sc-axis-label span { font-family: var(--font-display); font-size: 1rem; font-weight: 500;
                      writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .06em; }
.sc-axis-label i { flex: 1; width: 1px; background: currentColor; opacity: .3; }
.sc-axis-power { color: var(--zone-steady); }
.sc-axis-force { color: var(--zone-churning); }

/* bars */
.sc-bars { display: flex; flex-direction: column; gap: 3px; }
.sc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; min-height: 40px; cursor: pointer; text-align: left;
  border: 1px solid transparent; border-radius: 6px; color: #fff;
  font-family: var(--font-body); transition: transform .16s var(--ease), filter .16s var(--ease);
}
.sc-bar:hover { transform: translateX(4px); filter: brightness(1.15); }
.sc-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sc-bar.on { transform: translateX(8px); box-shadow: 0 0 0 2px var(--ink); }
.sc-name { font-size: .95rem; font-weight: 500; }
.sc-cal { font-family: var(--font-mono); font-size: .74rem; opacity: .85; }

/* Power: cool, ascending toward light. Force: warm, descending toward heat.
   Our own ramp — deliberately not the source chart's colours. */
.sc-power { background: color-mix(in srgb, var(--sem-ours) calc(28% + var(--i) * 4%), var(--zone-steady)); }
.sc-force { background: color-mix(in srgb, var(--zone-churning) calc(90% - (var(--i) - 9) * 9%), var(--zone-heavy)); }
.sc-line  { background: linear-gradient(90deg, var(--zone-open), var(--zone-steady));
            color: #17170f; font-weight: 600; }
.sc-line .sc-cal { opacity: 1; }

.sc-threshold {
  display: flex; align-items: center; gap: 10px; margin: 8px 0 5px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--zone-open);
}
.sc-threshold::before, .sc-threshold::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--zone-open), transparent);
}

/* readout */
.sc-read { position: sticky; top: 96px; }
@media (max-width: 780px) { .sc-read { position: static; margin-top: 16px; } }
.sc-read-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-s);
                 padding: 30px 22px; text-align: center; color: var(--ink-3); }
.sc-read-empty-i { font-size: 1.8rem; margin-bottom: 10px; }
.sc-read-empty p { margin: 0; font-size: .86rem; }

.sc-card { border: 1px solid var(--line-strong); border-radius: var(--radius-s);
           padding: 20px; background: var(--bg-2); animation: ciIn .22s var(--ease); }
.sc-card-hd { display: flex; align-items: baseline; justify-content: space-between;
              gap: 12px; margin-bottom: 14px; padding-bottom: 12px;
              border-bottom: 1px solid var(--line); }
.sc-card-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
                letter-spacing: -.02em; }
.sc-card-cal { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink-3); }
.sc-card-power .sc-card-name { color: var(--zone-steady); }
.sc-card-force .sc-card-name { color: var(--zone-churning); }
.sc-card-line  .sc-card-name { color: var(--zone-open); }

.sc-dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0 0 14px; }
.sc-dl dt { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
            color: var(--ink-3); font-weight: 500; padding-top: 2px; }
.sc-dl dd { margin: 0; font-size: .88rem; }
.sc-bad { color: var(--sem-bad); }

.sc-note { margin: 0; font-size: .85rem; color: var(--ink-2); padding-top: 12px;
           border-top: 1px solid var(--line); line-height: 1.55; }
.sc-foot { margin: 20px 0 0; font-size: .78rem; color: var(--ink-3); line-height: 1.6; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
