/* Anthropic 招股书拆解：1920×1080 画面，按窗口等比缩放。点一下走一步，往回翻瞬间到位。
   颜色各管一件事：
   绿 = Anthropic 真的进账（收入、现金）
   红 = 真的要付出去的钱（成本、账单、现金亏损）
   斜纹灰 = 只在账面上的数
   实心灰 = 别的公司、对照
   黄色荧光笔 = 现在看这里
   字一律用墨色，不跟着柱子变色。 */

:root {
  --paper: #f3efe6;
  --ink: #14130f;
  --mute: #6b665c;
  --line: rgba(20, 19, 15, 0.18);
  --real: #148f6a;
  --out: #e2532a;
  --out-soft: #f0b9a6;
  --other: #b9b3a6;
  --other-dark: #7d776b;
  --hl: #ffd84a;
  --sans: "PingFang SC", "Helvetica Neue", sans-serif;
  --serif: "Songti SC", "STSong", serif;
  --num: "DIN Alternate", "Avenir Next Condensed", "Helvetica Neue", "PingFang SC", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0c0c0b; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; color: var(--ink); }
body.idle, body.idle * { cursor: none !important; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px; overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  background: var(--paper);
}
body.notes #stage { left: calc(var(--k) * 960px + 12px); }
body.capture #stage { left: 0; top: 0; transform: none; }
#stage.instant, #stage.instant * { transition: none !important; }

.slide { position: absolute; inset: 0; display: none; }
.slide.cur { display: block; }
.a { position: absolute; }

/* ---------- 每屏固定的三样：时间和出处在上，问题在下，来源在最底 ---------- */
.kicker { position: absolute; left: 110px; top: 78px; font-size: 30px; font-weight: 500; color: var(--mute); letter-spacing: 0.02em; }
.h { position: absolute; left: 110px; top: 128px; right: 110px; font-family: var(--serif); font-weight: 900; font-size: 76px; line-height: 1.2; letter-spacing: -0.01em; }
.src { position: absolute; left: 110px; bottom: 40px; font-size: 24px; color: var(--mute); }

/* ---------- 字 ---------- */
.num { font-family: var(--num); font-weight: 700; font-feature-settings: "tnum"; letter-spacing: 0; }
.t30 { font-size: 30px; } .t34 { font-size: 34px; } .t38 { font-size: 38px; } .t44 { font-size: 44px; } .t52 { font-size: 52px; } .t64 { font-size: 64px; }
.mute { color: var(--mute); }
.b { font-weight: 600; }
.serif { font-family: var(--serif); font-weight: 900; }
.r-al { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- 柱子 ---------- */
.bar { position: absolute; border-radius: 4px; }
.bar.real { background: var(--real); }
.bar.out { background: var(--out); }
.bar.outsoft { background: var(--out-soft); }
.bar.other { background: var(--other); }
.bar.otherdark { background: var(--other-dark); }
.bar.ink { background: var(--ink); }
.bar.hatch { background: repeating-linear-gradient(135deg, #c9c3b6 0 7px, #e6e1d6 7px 16px); }
.bar.frame { background: transparent; border: 3px solid var(--ink); }
.bar.dash { background: transparent; border: 3px dashed var(--ink); }
.bar .in { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); white-space: nowrap; }
.bar.real .in, .bar.out .in { color: #fff; }

/* ---------- 点一下出现 ---------- */
[data-in] { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.65s var(--ease); }
[data-in].on { opacity: 1; transform: none; }
.gx { transform-origin: left center; transform: scaleX(0); transition: transform 0.85s var(--ease); }
.gx.fromright { transform-origin: right center; }
.gy { transform-origin: center bottom; transform: scaleY(0); transition: transform 0.85s var(--ease); }
.on .gx, .on.gx { transform: scaleX(1); }
.on .gy, .on.gy { transform: scaleY(1); }
[data-in].flat { transform: none; }
[data-out] { transition: opacity 0.35s ease; }
[data-out].away { opacity: 0; }
[data-dim] { transition: opacity 0.4s ease; }
[data-dim].dim { opacity: 0.3; }
[data-lit] { transition: background-color 0.4s ease; }
.bar.outsoft[data-lit].lit { background: var(--out); }
.mark { background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 94%, transparent 94%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.55s var(--ease); padding: 0 6px; margin: 0 -6px; }
.mark.lit { background-size: 100% 100%; }

.rule { position: absolute; background: var(--ink); }
.rule.soft { background: var(--line); }
.vdash { position: absolute; width: 0; border-left: 3px dashed var(--ink); }

/* ---------- 开场的问题清单 ---------- */
.q-row { position: absolute; left: 110px; right: 110px; height: 108px; border-top: 2px solid var(--line); display: flex; align-items: center; gap: 44px; }
.q-row .num { font-size: 64px; color: var(--mute); width: 46px; }
.q-row .q { font-size: 54px; font-weight: 600; letter-spacing: 0.01em; }

/* ---------- 每个问题前的过场屏：深色底，只有一句问题 ---------- */
.slide.dark { background: var(--ink); color: var(--paper); }
.qno { position: absolute; left: 110px; top: 92px; font-size: 38px; color: #a9a394; letter-spacing: 0.06em; }
.qno .num { font-size: 56px; color: var(--paper); margin: 0 14px 0 12px; }
.qtext { position: absolute; left: 110px; right: 110px; top: 300px; font-family: var(--serif); font-weight: 900; font-size: 124px; line-height: 1.28; letter-spacing: -0.01em; }
.qbar { position: absolute; left: 110px; bottom: 96px; display: flex; gap: 14px; }
.qbar i { display: block; width: 120px; height: 8px; border-radius: 4px; background: #3d3a33; }
.qbar i.on { background: var(--paper); }

/* ---------- 讲稿栏（录屏时不录它） ---------- */
#notes { display: none; position: absolute; top: 0; bottom: 0; right: 0; left: 72%; padding: 28px 30px; color: #e9e5db; font-size: 20px; line-height: 1.55; overflow: auto; }
body.notes #notes { display: block; }
#notes .pos { color: #8f897c; font-size: 15px; letter-spacing: 0.04em; display: flex; justify-content: space-between; }
#notes .mean { margin: 18px 0 14px; font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.35; color: #fff; }
#notes ul { list-style: none; margin: 0 0 18px; }
#notes ul li { padding: 7px 0 7px 16px; border-left: 2px solid #3a3832; margin-bottom: 6px; }
#notes .cues { border-top: 1px solid #33312c; padding-top: 12px; }
#notes .cue { color: #7f796d; padding: 3px 0; font-size: 17px; }
#notes .cue.now { color: var(--hl); }
#notes .cue.done { color: #55514a; text-decoration: line-through; }
#notes .keys { margin-top: 22px; color: #6d685d; font-size: 14px; }
#notes .flag { color: #ff9c7d; font-size: 16px; margin-top: 10px; }
#toast { position: absolute; left: 20px; bottom: 16px; color: #8f897c; font-size: 14px; transition: opacity 0.6s; }
