/* ========================================================================
   Jarvis Design System v2
   Source of truth: ~/Jarvis/DESIGN.md
   Last updated: 2026-04-23
   Class-based selectors only. No id / element selectors for styling.
   ======================================================================== */

/* ------------------------------------------------------------------------
   DESIGN.md §2.1 · Universal tokens (shared by both themes)
   ------------------------------------------------------------------------ */
:root {
  /* 朱砂系 · Vermillion — warning / action / identity */
  --vermillion:          #43165E;
  --vermillion-deep:     #2D0F40;
  --vermillion-dim:      rgba(67, 22, 94, 0.12);

  /* 赤金系 · Imperial gold — CEO / highest authority */
  --imperial-gold:       #7030A0;
  --imperial-gold-dark:  #4A1F6B;
  --imperial-gold-light: #9B5FC0;
  --imperial-gold-dim:   rgba(112, 48, 160, 0.35);
  --imperial-gold-glow:  rgba(112, 48, 160, 0.55);

  /* 石青 · Scholar blue — VP tier accent */
  --scholar-blue:        #0055A4;
  --scholar-blue-dim:    rgba(0, 85, 164, 0.2);

  /* 青绿 · Mountain green — positive / safe */
  --mountain-green:      #00AE4D;
  --mountain-green-dim:  rgba(0, 174, 77, 0.2);

  /* DESIGN.md §3.1 · Font families */
  --font-cn:         Arial,"Helvetica Neue",Helvetica,"Microsoft YaHei",sans-serif;
  --font-en:         Arial,"Helvetica Neue",Helvetica,"Microsoft YaHei",sans-serif;
  --font-mono:       "SF Mono",Menlo,Consolas,monospace;
  --font-ceremonial: Arial,"Helvetica Neue",Helvetica,"Microsoft YaHei",sans-serif;

  /* DESIGN.md §3.2 · Fluid type scale (projector-first 1920x1080 @ 5m) */
  --text-xs:   clamp(12px, 0.9vw, 14px);
  --text-sm:   clamp(14px, 1vw, 16px);
  --text-base: clamp(16px, 1.25vw, 20px);
  --text-lg:   clamp(18px, 1.5vw, 24px);
  --text-xl:   clamp(24px, 2vw, 32px);
  --text-2xl:  clamp(32px, 2.75vw, 48px);
  --text-3xl:  clamp(48px, 4.5vw, 72px);
  --text-hero: clamp(72px, 6vw, 120px);

  /* DESIGN.md §4 · Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* DESIGN.md §6 · Motion */
  --ease-fast: 150ms ease;
  --ease-base: 250ms ease;
  --ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
n  /* ---- 淡马锡 Onyx-T 皮肤 · 2026-08-20 全站统一(源:/macro) ----
     两条硬规矩:① accent 只出现在状态标识,不做大块面 ② 不引入红色(那是 Onyx-G 的标识)
     数据色板已在白底做过可读性校验:色盲分辨 ΔE 14.4 / 常视 ΔE 22.8 通过;
     绿 #00AE4D 对白底 2.93:1 略低于 3:1,端点需直接标注。
     主紫 L=0.311 太深,做数据色验不过,只用于标题/表头/分节。 */
  --onyx-purple:   #43165E;
  --onyx-purple-2: #7030A0;
  --lavender:      #DDD7E7;
  --tint:          #F5F2F8;
  --s1: #0055A4;
  --s2: #EE7003;
  --s3: #BA0051;
  --s4: #00AE4D;
  --ok:    #00AE4D;
  --watch: #FAB600;
  --alert: #BA0051;
}

/* ------------------------------------------------------------------------
   DESIGN.md §2.4 · Reset
   ------------------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  font-family: var(--font-en);
  font-size: var(--text-base);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; outline: none; background: none; color: inherit; cursor: pointer; }

/* Inherit page font-family on all form elements — browser default is Times New Roman */
input, textarea, select, button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cn);
  font-weight: 700;
  line-height: 1.3;
}

/* ------------------------------------------------------------------------
   DESIGN.md §2.2 · Paper theme · 宣纸浅底
   ------------------------------------------------------------------------ */
body.theme-paper {
  --bg:            #FFFFFF;
  --bg-aged:       #F5F2F8;
  --bg-deep:       #DDD7E7;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F5F2F8;
  --bg-dim:        rgba(255, 255, 255, 0.85);

  --ink-primary:   #231F20;
  --ink-secondary: #595959;
  /* 2026-08-25 #A6A6A6 -> #666666。**对比度，不是审美。**
     实测（对比度扫描 jarvis.onetemasek.ai/login，公开页）：
       「凡我同仁 · 各司其职 · 共襄盛举」 2.20:1  低于 3:1 = 不可读
     不是登录页的 bug，是 token 的：1,530 处引用、24 个页面、227 条规则。
                白底   tint #F5F2F8   薰衣草 #DDD7E7
       #A6A6A6  2.43      2.20           1.73   旧
       #666666  5.74      5.18           4.09   新
     🔴 **改深之后没有一处会变糟**（已逐处核过，不是估的）：
       · 当背景用的 13 处里，11 处是 6-8px 状态点 —— 变深是中性或更好
       · 另两处带文字（、）
         用的是  **白字** —— 白字压 #A6A6A6 也是 2.43:1，
         **同样不可读** ⇒ 改深是**同时修好它们**，不是牺牲它们
       · 深色主题在下面 L156 有自己的 #6e7681 覆盖，不受这条影响
     ⚠️ **残留盲区照实标**：薰衣草底 4.09 **仍低于 4.5**。
        先记着，别顺手再调 —— 现在只能扫到登录页，别的页要真人会话。 */
  --ink-muted:     #666666;
  --ink-mute:      rgba(35, 31, 32, 0.55);

  --border:        #DDD7E7;
  --border-thin:   #E4DFEA;
  --border-dim:    rgba(67, 22, 94, 0.10);

  background-color: var(--bg);
  color: var(--ink-primary);
}
body.theme-paper ::selection {
  background: var(--vermillion);
  color: var(--bg);
}

/* ------------------------------------------------------------------------
   DESIGN.md §2.3 · Dark theme · 暗色工作间
   ------------------------------------------------------------------------ */
body.theme-dark {
  /* Onyx-T 主紫在暗底上对比不足,暗色工作间用提亮版;色相同源,仍是同一套皮肤。2026-08-20 */
  --vermillion:    #B98BE0;
  --imperial-gold: #C9A0E8;
  --bg:            #0d1117;
  --bg-card:       #161b22;
  --bg-elevated:   #1c2128;
  --bg-dim:        rgba(13, 17, 23, 0.85);

  --ink-primary:   #e6edf3;
  --ink-secondary: #8b949e;
  --ink-muted:     #6e7681;

  --border:        #30363d;
  --border-thin:   #21262d;
  --border-dim:    rgba(48, 54, 61, 0.5);

  background-color: var(--bg);
  color: var(--ink-primary);
}
body.theme-dark h1 {
  font-family: var(--font-ceremonial);
  font-weight: 600;
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.1 · Universal nav bar (always dark, continuity anchor)
   ------------------------------------------------------------------------ */
.nav-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  height: 64px;
  padding: 0 var(--space-6);
  background: #43165E;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: var(--font-en);
}
.nav-bar > .nav-bar__brand { justify-self: start; }
.nav-bar > .nav-bar__right { justify-self: end; }
.nav-bar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-bar__logo {
  width: 28px;
  height: 28px;
  background: #7030A0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.nav-bar__title {
  font-family: var(--font-ceremonial);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.2px;
}
.nav-bar__links {
  display: flex;
  gap: 1px;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-bar__links::-webkit-scrollbar { display: none; }
.nav-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color var(--ease-fast), background-color var(--ease-fast);
}
.nav-bar__link:hover { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.08); }
.nav-bar__link.is-active { color: #fff; background: rgba(34, 81, 255, 0.35); }
/* EN labels are 6-12ch (vs ZH 2-3ch). The default 1px gap looks fine for the
   dense ZH grid but crams English words into each other. Give EN breathing room. */
html[lang="en"] .nav-bar__links { gap: 4px; }
html[lang="en"] .nav-bar__link { padding: 12px 9px; letter-spacing: 0.2px; }
html[lang="en"] .nav-more { padding: 12px 9px; letter-spacing: 0.2px; }
@media (max-width: 1280px) {
  html[lang="en"] .nav-bar__links { gap: 2px; }
  html[lang="en"] .nav-bar__link { padding: 10px 6px; }
  html[lang="en"] .nav-more { padding: 10px 6px; }
}
.nav-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  position: relative;
}
.nav-bar__user {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  cursor: pointer;
}
.nav-bar__user:hover { background: rgba(255, 255, 255, 0.08); }
.nav-bar__avatar {
  width: 28px;
  height: 28px;
  background: #7030A0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.nav-bar__uname {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.nav-bar__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  min-width: 130px;
  z-index: 300;
}
.nav-bar__menu.is-open { display: block; }
.nav-bar__menu-btn {
  display: block;
  width: 100%;
  padding: 7px 10px;
  color: var(--vermillion);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.nav-bar__menu-btn:hover { background: #F5F2F8; }
@media (max-width: 1200px) {
  .nav-bar { padding: 0 12px; height: 56px; gap: 6px; }
  .nav-bar__link { font-size: 11px; padding: 10px 6px; letter-spacing: 0; min-height: 44px; }
  .nav-bar__title { font-size: 11px; letter-spacing: 0.5px; }
  .nav-bar__logo, .nav-bar__avatar { width: 22px; height: 22px; font-size: 8px; }
  /* 2026-08-25：名字的隐藏断点从这里（1200px）挪到下面那个 900px 那一档。
     起因：1200px 以下就藏名字，而 13 寸笔记本和任何没最大化的窗口都在这条线以下
     ⇒ 多数人从来看不到自己是谁。同日「设置」已从导航横排收进用户下拉，
     腾出的宽度正好够放名字。900px 那一档保留兜底，真窄屏仍然隐藏。 */
}
@media (max-width: 900px) {
  .nav-bar__uname { display: none; }   /* 2026-08-25：真窄屏才藏名字，见上面 1200px 那一档的注释 */
  .nav-bar { padding: 0 8px; height: 52px; gap: 4px; }
  .nav-bar__link { font-size: 10px; padding: 10px 5px; min-height: 44px; }
  .nav-bar__title { font-size: 10px; }
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.1b · Responsive "More ▾" dropdown (Tier-2 links)
   Applies across all nav variants: .nav-bar, .nav__links, .nav-center, .topnav
   Tier-1 (always visible): JARVIS · Scanner · Analysts · CEO · Flow · Earnings
                            · Consensus · Org · Dashboard
   Tier-2 (collapsible at <1600px): Shadows · Decision · Hermes · Research
                                    · Frameworks · Hub
   ------------------------------------------------------------------------ */
.nav-more-wrap {
  position: relative;
  display: none; /* hidden by default; shown at <=1600 via media query */
  align-items: center;
  flex-shrink: 0;
}
.nav-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-en, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--ease-fast, 120ms ease), background-color var(--ease-fast, 120ms ease);
}
.nav-more:hover, .nav-more:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.nav-more__caret {
  font-size: 10px;
  line-height: 1;
  transition: transform 150ms ease;
}
.nav-more-wrap.is-open .nav-more__caret { transform: rotate(180deg); }

.nav-more-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  background: #43165E;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  z-index: 300;
  flex-direction: column;
}
.nav-more-wrap.is-open .nav-more-panel { display: flex; }
.nav-more-panel a {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-en, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: color 120ms ease, background-color 120ms ease;
}
.nav-more-panel a:hover, .nav-more-panel a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.nav-more-panel a.is-active,
.nav-more-panel a.active {
  color: #fff;
  background: rgba(34, 81, 255, 0.35);
}

/* Collapse Tier-2 links below 1600px viewport: hide inline, expose More ▾ */
@media (max-width: 1600px) {
  .nav-bar__link.is-tier-2,
  .nav__links a.is-tier-2,
  .nav-center .nav-link.is-tier-2,
  .topnav a.is-tier-2 {
    display: none !important;
  }
  .nav-more-wrap { display: inline-flex; }
}

/* At >=1600px viewport, Tier-2 links show inline; More ▾ stays hidden (the
   default display:none on .nav-more-wrap). Nothing else to do. */

   Only place in design system that allows a subtle drop-shadow.
   ------------------------------------------------------------------------ */
.gold-plaque {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--imperial-gold);
  border: 2px solid var(--ink-primary);
  color: #FFFFFF;
  font-family: var(--font-cn);
  filter: drop-shadow(0 0 14px var(--imperial-gold-glow));
  transition: filter var(--ease-base);
}
body.theme-dark .gold-plaque { border-color: var(--imperial-gold-dim); }
.gold-plaque:hover { filter: brightness(1.08) drop-shadow(0 0 18px var(--imperial-gold-glow)); }
.gold-plaque__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 8px;
}
.gold-plaque__role {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  opacity: 0.6;
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.3 · Seal chop (朱砂方章)
   ------------------------------------------------------------------------ */
.seal-chop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cn);
  font-weight: 700;
  color: var(--vermillion);
  border: 2px solid var(--vermillion);
  background: transparent;
  letter-spacing: 2px;
  transition: filter var(--ease-fast), transform var(--ease-fast);
}
.seal-chop:hover { filter: brightness(1.06); }
.seal-chop:active { transform: scale(0.97); }
.seal-chop--ceo       { width: 96px; height: 96px; font-size: 36px; border-width: 3px; border-color: var(--imperial-gold); }
.seal-chop--director  { width: 76px; height: 76px; font-size: 28px; }
.seal-chop--vp        { width: 64px; height: 64px; font-size: 24px; }
.seal-chop--associate { width: 52px; height: 52px; font-size: 20px; border-color: var(--ink-primary); color: var(--ink-primary); }
.seal-chop--shadow    { width: 64px; height: 64px; font-size: 22px; border-style: dashed; opacity: 0.7; }
.seal-chop--action {
  background: var(--vermillion);
  color: var(--bg, #FFFFFF);
  padding: 10px 20px;
  font-size: var(--text-sm);
  letter-spacing: 3px;
  width: auto;
  height: auto;
}
.seal-chop--action:hover { background: var(--vermillion-deep); filter: none; }

/* ------------------------------------------------------------------------
   DESIGN.md §5.4 · Pixel portrait
   ------------------------------------------------------------------------ */
.pixel-portrait {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--bg);
  display: block;
  border: 2px solid var(--ink-primary);
}
.pixel-portrait[data-tier="ceo"]       { width: 96px; height: 96px; border: 3px solid var(--imperial-gold); }
.pixel-portrait[data-tier="director"]  { border-color: var(--imperial-gold); }
.pixel-portrait[data-tier="vp"]        { border-color: var(--vermillion); }
.pixel-portrait[data-tier="associate"] { border-color: var(--ink-primary); }
.pixel-portrait[data-tier="shadow"]    { border: 2px dashed var(--ink-primary); opacity: 0.75; }

/* ------------------------------------------------------------------------
   DESIGN.md §5.5 · Memorial card (奏折卡) · paper only
   ------------------------------------------------------------------------ */
.memorial-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-aged, #F5F2F8);
  border: 1px solid var(--border);
  border-left: 3px solid var(--vermillion);
}
.memorial-card__body { flex: 1; min-width: 0; }
.memorial-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.memorial-card__name {
  font-family: var(--font-cn);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
}
.memorial-card__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.memorial-card__content {
  font-family: var(--font-cn);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--ink-primary);
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.6 · Bamboo slip (竹简卡) · paper only
   ------------------------------------------------------------------------ */
.bamboo-slip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--vermillion);
  font-family: var(--font-cn);
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.7 · Convene CTA (召集议政)
   ------------------------------------------------------------------------ */
.convene-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-width: 440px;
  height: 120px;
  padding: 0 var(--space-7);
  background: var(--imperial-gold);
  border: 2px solid var(--ink-primary);
  color: #FFFFFF;
  font-family: var(--font-cn);
  text-decoration: none;
  transition: background-color var(--ease-base);
}
.convene-cta:hover { background: var(--imperial-gold-light); }
.convene-cta__name { font-size: 48px; font-weight: 700; letter-spacing: 6px; }
.convene-cta__sub  { font-family: var(--font-en); font-size: 13px; letter-spacing: 4px; opacity: 0.7; text-transform: uppercase; }
.convene-cta__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vermillion);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.9 · Chop stamp (红章 header) · paper only
   ------------------------------------------------------------------------ */
.chop-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--vermillion);
  color: var(--bg, #FFFFFF);
  font-family: var(--font-cn);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 3px;
}
.chop-stamp--sm {
  padding: 4px 10px;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}
.chop-stamp--outline {
  background: transparent;
  color: var(--vermillion);
  border: 2px solid var(--vermillion);
}

/* ------------------------------------------------------------------------
   DESIGN.md §5.10 · Vermillion annotation (朱砂批注) · paper only
   ------------------------------------------------------------------------ */
.vermillion-annotation {
  display: block;
  padding: 4px 0;
  font-family: var(--font-cn);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--vermillion);
  line-height: 1.5;
  border-left: 2px solid var(--vermillion);
  padding-left: var(--space-3);
}
.vermillion-annotation__date {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--vermillion-deep);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* ------------------------------------------------------------------------
   Utility containers used by paper pages
   ------------------------------------------------------------------------ */
.paper-main {
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-7) var(--space-8);
}
.paper-hero {
  text-align: center;
  padding: var(--space-7) 0 var(--space-6);
}
.paper-hero__title {
  font-family: var(--font-cn);
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 6px;
  line-height: 1.15;
}
.paper-hero__subtitle {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-secondary);
  letter-spacing: 5px;
  margin-top: var(--space-2);
  text-transform: uppercase;
}

/* Dark card used by dark theme work pages */
.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-4);
}

/* ------------------------------------------------------------------------
   DESIGN.md §6 · Animations & motion tokens
   ------------------------------------------------------------------------ */
@keyframes pulseVermillion {
  0%, 100% { box-shadow: 0 0 0 0 var(--vermillion-dim); }
  50%      { box-shadow: 0 0 0 8px rgba(193, 39, 45, 0); }
}
.pulse-vermillion { animation: pulseVermillion 1.5s infinite; }

@keyframes pulseGold {
  0%, 100% { filter: drop-shadow(0 0 6px var(--imperial-gold-dim)); }
  50%      { filter: drop-shadow(0 0 14px var(--imperial-gold-glow)); }
}
.pulse-gold { animation: pulseGold 2s infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; opacity: 0; }

/* ------------------------------------------------------------------------
   Accessibility & reduced motion
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
