@font-face { font-family: 'NotoSerifTC'; src: url(fonts/NotoSerifTC-VF.ttf) format('truetype'); font-weight: 200 900; }
@font-face { font-family: 'NotoSansTC'; src: url(fonts/NotoSansTC-Bold.otf) format('opentype'); font-weight: 100 900; }
@font-face { font-family: 'Inter'; src: url(fonts/Inter.ttf) format('truetype'); font-weight: 100 900; }
@font-face { font-family: 'Baskerville'; src: url(fonts/LibreBaskerville-Bold.ttf) format('truetype'); font-weight: 100 900; }
@font-face { font-family: 'Instrument'; src: url(fonts/InstrumentSerif-Regular.ttf) format('truetype'); font-weight: 100 900; }
@font-face { font-family: 'JBMono'; src: url(fonts/JetBrainsMono-Bold.ttf) format('truetype'); font-weight: 100 900; }

:root {
  --cream: #F4EDE0;
  --cream-2: #EFE6D6;
  --ink: #1E1B16;
  --ink-soft: #544D43;
  --ink-mute: #8F877B;
  --green: #2F7A4E;
  --red: #E2483A;
  --yellow: #F3B630;
  --blue: #2F5BD3;
  --paper: #FFFDF8;
  --hair: rgba(30,27,22,.09);
  --pill: rgba(244,237,224,.94);
  --pill-border: rgba(30,27,22,.12);
  --tag-border: rgba(30,27,22,.75);
  --dial-track: rgba(30,27,22,.2);
  --knob: #1E1B16;
  --knob-icon: #F4EDE0;
  --st: 1;
  --sans: 'Inter', 'NotoSansTC', sans-serif;
  --serif: 'NotoSerifTC', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--cream); }
body { color: var(--ink); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
a { color: inherit; text-decoration: none; }

#stage { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; overflow: hidden; background: var(--cream); transform-origin: 0 0; }
#scene { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; z-index: 2; }
.shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; left: 0; top: 0; will-change: transform; }

/* the only CJK sans file is Bold: small body text is thinned with a light cream text-stroke */

/* ---------- nav ---------- */
.nav { position: absolute; z-index: 5; left: 40px; right: 40px; top: 0; height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 26px; height: 26px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 15px; display: grid; place-items: center; line-height: 1; padding-bottom: 1px; }
.name { font-family: 'Baskerville', serif; font-size: 18px; letter-spacing: -.01em; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; font-size: 12.5px; letter-spacing: .06em; -webkit-text-stroke: calc(.3px * var(--st)) var(--cream); color: var(--ink); }
.links a { display: flex; align-items: baseline; gap: 6px; }
.links i { font-style: normal; font-family: 'JBMono', monospace; font-size: 9.5px; color: var(--ink-mute); -webkit-text-stroke: 0; letter-spacing: 0; }
.links a:hover { color: var(--red); }
.right { display: flex; align-items: center; gap: 14px; }
.mode { position: relative; width: 44px; height: 24px; padding: 0; border-radius: 999px; border: 1px solid var(--pill-border); background: var(--paper); cursor: pointer; flex: none; }
.mode .knob { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); display: grid; place-items: center; }
.mode svg { display: block; }
.status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); -webkit-text-stroke: calc(.3px * var(--st)) var(--cream); letter-spacing: .04em; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; position: relative; }
.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); opacity: var(--pulse, .3); transform: scale(var(--pulse-s, 1)); }
.chat { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--cream); font-size: 13px; letter-spacing: .06em; height: 36px; padding: 0 5px 0 16px; border-radius: 999px; }
.chat .arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #1E1B16; display: grid; place-items: center; font-family: 'Inter'; font-weight: 700; font-size: 13px; letter-spacing: 0; }

/* ---------- hero copy ---------- */
.hero { position: absolute; z-index: 4; left: 0; right: 0; top: 96px; text-align: center; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border: 1px solid var(--tag-border); border-radius: 999px; font-family: 'Inter'; font-weight: 600; font-size: 10.5px; letter-spacing: .2em; }
.tag .yr { font-family: 'Instrument', serif; font-weight: 400; font-size: 14px; letter-spacing: .02em; color: var(--red); }
.intro { margin-top: 18px; font-size: 16px; letter-spacing: .05em; color: var(--ink-soft); -webkit-text-stroke: calc(.38px * var(--st)) var(--cream); }
h1 { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 70px; line-height: 1.2; letter-spacing: .005em; color: var(--ink); }
h1 span.l1, h1 span.l2 { display: block; }
h1 .gap { display: inline-block; width: .32em; }
.accent { position: relative; display: inline-block; font-style: normal; font-weight: 700; color: var(--red); transform: skewX(-11deg); transform-origin: 50% 80%; }
.swash { position: absolute; left: 2%; width: 96%; bottom: -4px; height: 14px; overflow: visible; }
.lede { margin: 22px auto 0; font-size: 15.5px; line-height: 1.8; letter-spacing: .05em; color: var(--ink-soft); -webkit-text-stroke: calc(.38px * var(--st)) var(--cream); }
.lede strong { color: var(--ink); -webkit-text-stroke: 0; font-weight: 700; }

/* ---------- bottom ---------- */
.cta { position: absolute; z-index: 5; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; gap: 12px; }
.btn { height: 50px; padding: 0 26px; border-radius: 999px; display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .08em; }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 0 8px 22px -10px rgba(30,27,22,.55); }
.btn-dark .ydot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.btn-light { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }

.gauge, .hint { position: absolute; z-index: 5; bottom: 30px; height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--pill); border: 1px solid var(--pill-border); font-size: 11.5px; letter-spacing: .05em; color: var(--ink-soft); }
.gauge { left: 36px; }
.gauge .gtxt { -webkit-text-stroke: calc(.3px * var(--st)) var(--cream); }
.gauge b { display: inline-block; min-width: 2.1em; text-align: right; font-family: 'JBMono', monospace; font-size: 12px; color: var(--ink); -webkit-text-stroke: 0; letter-spacing: 0; }
.hint { right: 36px; padding: 0 14px; -webkit-text-stroke: calc(.3px * var(--st)) var(--cream); }
.mouse { width: 9px; height: 13px; border: 1.3px solid var(--ink-soft); border-radius: 5px; position: relative; }
.mouse::after { content: ''; position: absolute; left: 50%; top: 2px; width: 1.3px; height: 3px; margin-left: -.65px; background: var(--ink-soft); }
