/* ==========================================================================
   Team Rise · teamrise.win
   Shared stylesheet — 五行属金 / metal theme
   ========================================================================== */

/* --- 1. Design tokens --------------------------------------------------- */
/*
   五行属金 —— 这不是换个色号那么简单，它决定了全站的色、形、质：

   色：金的正色是「白」，其次金、银。所以底色走珍珠白与珠灰，
       不再用暖米黄（那是土色）。橙红属火，火克金，全站不再出现。
       土生金，所以金色里保留一点暖意是对的，但必须是金属的暖，
       不是火焰的暖。
   形：金曰「从革」，其形为圆。所以用圆、环、弧，
       不用尖芒、三角（那是火的形）。
   质：真金属的光泽来自明暗交替 —— 高光→亮面→本色→暗面→再高光。
       所以金属渐变是「亮—暗—亮」，而不是「黄—橙」。
       这一点是整套视觉高级感的来源，改色时请守住。
*/
:root {
  /* 金 · 金属色阶 / Metal ramp */
  --gold-50:  #FBF9F3;
  --gold-100: #F5EFE0;
  --gold-200: #E9DDBC;
  --gold-300: #D9C793;   /* 香槟金 champagne */
  --gold-400: #C9A961;   /* 标准金 signature */
  --gold-500: #B08F3C;   /* 亮金 */
  --gold-600: #8F7229;   /* 沉金 burnished */
  --gold-700: #6B551C;   /* 古金 antique */

  /* 金属高光与暗部 / Specular + shadow */
  --metal-hi: #FFF8E4;   /* 镜面高光 */
  --metal-sh: #6A5119;   /* 金属暗部 —— 有暗部才像金属 */
  /* 铂银 #C6CAD2 只在首页 canvas 里用到（约四分之一的微尘走冷色），
     写在 assets/js/hero.js 里，这里不再重复定义一个没人 var() 的变量。 */

  /* Ink ramp — 石墨灰，比原来的暖黑更冷，衬得出金属 */
  --ink-900: #101216;
  --ink-850: #15181E;
  --ink-800: #1B1F27;
  --ink-700: #252A35;
  --ink-600: #333947;
  --ink-500: #454C5E;

  /* Neutrals — 珍珠白 / 珠灰，取代原来的暖米黄（土色） */
  --cream:   #FAF9F6;
  --paper:   #FFFFFF;
  --sand:    #F1F1ED;
  --line:    #E2E2DC;
  --body:    #3A3D44;
  --muted:   #6B6F78;
  --muted-d: #9AA0AC;

  /* Semantic */
  --bg:        var(--cream);
  --fg:        var(--ink-900);
  --accent:    var(--gold-600);
  --accent-on-dark: var(--gold-300);

  /* Type */
  --font-display: 'Playfair Display', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
               'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --nav-h: 72px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(16, 18, 26, .06), 0 2px 8px rgba(16, 18, 26, .04);
  --sh-md: 0 4px 12px rgba(16, 18, 26, .07), 0 12px 32px rgba(16, 18, 26, .07);
  --sh-lg: 0 8px 24px rgba(16, 18, 26, .09), 0 24px 64px rgba(16, 18, 26, .10);
  --sh-gold: 0 10px 30px rgba(176, 143, 60, .24);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-800); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* --- 3. Bilingual switching -------------------------------------------- */
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none !important; }
/* Before JS sets data-lang, avoid a flash of both languages. */
html:not([data-lang]) [lang="en"] { display: none !important; }

/* --- 4. Layout helpers -------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink-900); color: #C9CEDC; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFF; }
.section--dark strong { color: var(--gold-200); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .6rem; }

/* --- 5. Section headers ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
}
.section--dark .eyebrow { color: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p { color: var(--muted-d); }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink-700); }
.section--dark .lead { color: #D6DAE6; }

/* --- 6. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .97rem; font-weight: 650;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 38%,
              var(--gold-500) 62%, var(--gold-300) 88%, var(--gold-400) 100%);
  color: #1A1305; box-shadow: var(--sh-gold);
}
.btn-primary:hover { color: #241902; box-shadow: 0 14px 38px rgba(176, 143, 60, .34); }
.btn-ghost { border-color: rgba(176, 143, 60, .45); color: var(--gold-700); background: transparent; }
.btn-ghost:hover { background: rgba(176, 143, 60, .09); color: var(--gold-700); }
.section--dark .btn-ghost,
.hero .btn-ghost { border-color: rgba(255, 255, 255, .3); color: #FFF; }
.section--dark .btn-ghost:hover,
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #FFF; }
.btn-sm { padding: .58rem 1.2rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* --- 7. Site header ----------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header__inner {
  width: min(100% - 2.5rem, 1320px); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem;
}
.site-header.is-solid {
  background: rgba(255, 252, 243, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 6px 24px rgba(0, 0, 0, .05);
}

.brand { display: flex; align-items: center; gap: .68rem; margin-right: auto; flex-shrink: 0; }

/* 品牌标记 —— 内联 SVG，形与质见 assets/js/site.js 里的注释。
   这里只管三件事：尺寸、那道扫过的高光、以及 hover 时的反应。 */
.brand-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand__mark {
  width: 36px; height: 36px; flex-shrink: 0; overflow: visible;
  filter: drop-shadow(0 1px 5px rgba(107, 85, 28, .3));
}
.brand__mark-art { transition: transform 1.1s var(--ease); transform-origin: 32px 32px; }

/* 高光每 7 秒扫过一次，其中只有约 1.4 秒在动，其余时间是静止的。
   停顿远长于动作 —— 这是这个标记"贵"而不"闹"的关键，别把间隔调短。 */
.brand__sheen { animation: mark-sheen 7s var(--ease) infinite; }
@keyframes mark-sheen {
  0%          { transform: translateX(0); }
  20%, 100%   { transform: translateX(132px); }
}

/* 鼠标移上去：环轻轻转一点，像把一枚金属徽章转了个角度。 */
.brand:hover .brand__mark-art { transform: rotate(14deg); }
.brand:hover .brand__mark { filter: drop-shadow(0 2px 10px rgba(176, 143, 60, .5)); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  color: var(--ink-900); letter-spacing: -.01em;
}
.brand__tag { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.site-header:not(.is-solid) .brand__name { color: #FFF; }
.site-header:not(.is-solid) .brand__tag { color: var(--gold-300); }
.site-header.on-light .brand__name { color: var(--ink-900); }
.site-header.on-light .brand__tag { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .78rem; border-radius: 999px;
  font-size: .93rem; font-weight: 550; color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(176, 143, 60, .12); color: var(--gold-700); }
.nav__link.is-active { color: var(--gold-700); background: rgba(176, 143, 60, .13); }
.site-header:not(.is-solid):not(.on-light) .nav__link { color: rgba(255, 255, 255, .88); }
.site-header:not(.is-solid):not(.on-light) .nav__link:hover,
.site-header:not(.is-solid):not(.on-light) .nav__link.is-active {
  background: rgba(255, 255, 255, .15); color: #FFF;
}
.nav__caret { width: 9px; height: 9px; opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 254px; padding: .5rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: block; padding: .52rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-700); line-height: 1.45;
}
.nav__menu a:hover { background: var(--gold-50); color: var(--gold-700); }
.nav__menu a small { display: block; font-size: .76rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(120, 120, 130, .13); border: 1px solid transparent;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle { background: rgba(255, 255, 255, .16); }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .3rem .64rem; font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s;
}
.site-header:not(.is-solid):not(.on-light) .lang-toggle button { color: rgba(255, 255, 255, .75); }
/* The selected language must stay gold-on-white in every header state. The
   dark-header rule above is more specific than a bare [aria-pressed] selector,
   so match its specificity here. */
.lang-toggle button[aria-pressed="true"],
.site-header:not(.is-solid):not(.on-light) .lang-toggle button[aria-pressed="true"] {
  background: var(--paper); color: var(--gold-700); box-shadow: var(--sh-sm);
}

.nav-burger {
  display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  border-radius: 50%; align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; position: relative; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink-800); transition: background .2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
  background: inherit; transition: transform .28s var(--ease);
}
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.site-header:not(.is-solid):not(.on-light) .nav-burger span { background: #FFF; }
body.nav-open .nav-burger span { background: transparent !important; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); background: var(--ink-800); }
body.nav-open .nav-burger span::after  { transform: translateY(-6px) rotate(-45deg); background: var(--ink-800); }

@media (max-width: 1024px) {
  .nav-burger { display: flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 1.5rem 3rem; overflow-y: auto;
    background: var(--cream);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--cream); box-shadow: none; }
  .nav__link { color: var(--ink-800) !important; font-size: 1.05rem; padding: .8rem .6rem; border-radius: var(--r-sm); }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 .5rem .7rem; padding: 0 0 0 .6rem; min-width: 0;
  }
  .nav__caret { display: none; }
  .header-actions .btn { display: none; }
}

/* --- 8. Hero ------------------------------------------------------------ */
/* 垂直居中用 auto 外边距，不用 align-items:center。
   空间够的时候两者效果完全一样；空间不够时 align-items:center 会让内容
   同时溢出上下两边再被 overflow:hidden 切掉，auto 外边距则自动归零、
   容器跟着长高。属于防御性写法：目前的内容高度还不会触发，
   但以后往开场加内容时不会突然被切字。 */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-start;
  overflow: hidden; background: var(--ink-900); isolation: isolate;
}
/*
  首页开场 —— 这里原来是「太阳圆盘 + 尖芒 + 山形剪影」层层堆叠，
  看起来就是一堆图形拼在一起，而且尖芒属火、山形属土，跟金相冲。
  现在只剩四件事，每一件都有明确的职责，没有一件是装饰：

    hero__photo   真实影像打底（金属色调）
    hero__sky     石墨 → 香槟的天光渐变，不含一点橙
    hero__rings   同心细圆环 —— 金的形，也是唯一的主体动作
    hero__sheen   一道极慢的斜向高光，像光扫过金属表面

  高级感来自克制：底色安静、动作只有一个、线是发丝级的细。
  想再加层的时候，先问它替代了哪一层。
*/
/* 天光层现在是「底色」，垫在影像下面（z-index 比 photo 更低）。
   这一点跟旧版正好相反：旧版的天空是橙色日出，是画面主体，所以压在影像上；
   现在主体是那张金属影像，天空只负责在影像透不到的地方托一层石墨。
   如果把它调回影像上方，整屏会重新变成一块黑板 —— 这正是改版前踩过的坑。 */
.hero__sky {
  position: absolute; inset: 0; z-index: -6;
  background:
    radial-gradient(135% 85% at 50% 110%,
      #2E2F31 0%, #24262B 26%, #1B1E24 52%, #15181D 76%, var(--ink-900) 100%);
}

/* 同心圆环：金曰从革，其形为圆。发丝级的细线，
   靠 mask 从中心向外淡出，慢慢地呼吸。 */
.hero__rings {
  position: absolute; left: 68%; bottom: -34vmin; z-index: -4;
  width: 148vmin; aspect-ratio: 1; transform: translateX(-50%);
  background: repeating-radial-gradient(circle,
    transparent 0 3.55%,
    rgba(217, 199, 147, .16) 3.55% 3.72%,
    transparent 3.72% 7.3%);
  mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .5) 33%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .5) 33%, transparent 66%);
  animation: rings-breathe 26s ease-in-out infinite;
}

/* 斜向高光：14 秒扫一趟，几乎察觉不到在动，
   但它是整屏"金属感"的来源。透明度别往上调。 */
.hero__sheen {
  position: absolute; inset: -25% -45%; z-index: -3; pointer-events: none;
  background: linear-gradient(104deg,
    transparent 40%, rgba(255, 248, 228, .05) 47%, rgba(255, 248, 228, .1) 50%,
    rgba(255, 248, 228, .05) 53%, transparent 60%);
  animation: hero-sheen 14s linear infinite;
}

#hero-canvas { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
/* 底部压暗层。注意它收在 --ink-900（开场自身的底色），不是收到米白 ——
   原来渐变到米白，结果统计数字下面那行说明文字正好落在这段淡出里，
   白字压在近乎米白的背景上，直接看不见了。
   现在开场与下一屏之间是一条干净的硬边，这在"金"的语境里也更对：
   金主肃杀分明，边界清楚比糊成一片更合适。 */
.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 26vh; min-height: 140px;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 22, .55) 52%, var(--ink-900) 100%);
}

.hero__inner {
  position: relative; padding: calc(var(--nav-h) + 4rem) 0 6rem; width: 100%;
  margin-block: auto;   /* 见上方 .hero 的说明 */
}
.hero__content { max-width: 840px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .42rem 1rem;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FFF0CC;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(217, 199, 147, .7); animation: pulse 2.4s infinite;
}
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 1.04; color: #FFF;
  margin: 1.4rem 0 .5rem; letter-spacing: -.025em; text-wrap: balance;
}
/* 「Rise and Shine」走抛光金属：亮—暗—亮交替才像金，
   单纯的黄→橙只会像塑料。暗部用 --gold-700 而不是黑，
   保证在深色背景上依然是金属而不是脏。 */
.hero__shine {
  background: linear-gradient(100deg,
    var(--gold-400) 4%, var(--gold-200) 14%, var(--metal-hi) 24%,
    var(--gold-300) 34%, var(--gold-700) 46%, var(--gold-300) 58%,
    var(--metal-hi) 70%, var(--gold-200) 80%, var(--gold-400) 92%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 7s linear infinite;
}
.hero__sub {
  font-size: clamp(1.02rem, 2.1vw, 1.32rem); line-height: 1.68; color: rgba(255, 255, 255, .84);
  max-width: 620px; margin: 0 0 2.2rem; text-wrap: pretty;
}
.hero .btn-row { margin-bottom: 3.2rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1rem 1.6rem; max-width: 760px;
  padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .18);
  /* The rising sun sits directly behind this row — keep the text readable
     against the brightest part of the gradient. */
  text-shadow: 0 1px 12px rgba(10, 12, 17, .75), 0 1px 3px rgba(10, 12, 17, .6);
}
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 2.25rem);
  font-weight: 800; color: var(--gold-200); line-height: 1.1;
  white-space: nowrap;
}
/* Spans *inside* <b> are part of the number and must inherit its size — only
   direct children of .hero__stat are captions. */
.hero__stat > span { font-size: .83rem; color: rgba(255, 255, 255, .66); line-height: 1.45; display: block; }
.hero__stat b span { font-size: inherit; color: inherit; }
.hero__stat b sup { font-size: .55em; }

.hero__scroll {
  position: absolute; right: 2.5rem; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.7));
  animation: scrollHint 2.2s ease-in-out infinite;
}
@media (max-width: 720px) {
  .hero__scroll { display: none; }
  .hero__inner { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 4rem; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 4.5rem) 0 3.6rem;
  background: linear-gradient(165deg, var(--ink-900) 0%, #2A1B2E 46%, #6B3524 78%, #B2591F 100%);
  overflow: hidden; isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -12vw; bottom: -46vh;
  width: min(85vw, 820px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,243,196,.8) 0%, rgba(201, 169, 97,.45) 28%, rgba(255,154,60,.18) 52%, transparent 72%);
  filter: blur(8px); animation: breathe 11s ease-in-out infinite;
}
.page-hero h1 { color: #FFF; margin-bottom: .7rem; max-width: 900px; text-wrap: balance; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 680px; font-size: 1.08rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-300); }

.crumbs { font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 1.3rem; }
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--gold-300); }
.crumbs span { margin: 0 .45rem; opacity: .5; }

/* --- 9. Cards ----------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.8rem; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300) 55%, var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--gold-200); }
a.card:hover::before, .card--hover:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.15rem;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold-100), var(--gold-200));
  color: var(--gold-700); font-size: 1.35rem;
}
.card__meta {
  margin-top: auto; padding-top: 1.2rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 650; color: var(--gold-600);
}
.card__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  line-height: 1; color: var(--gold-200); margin-bottom: .7rem;
}
.card--dark {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: rgba(255, 255, 255, .09); color: #B9BFD0;
}
.card--dark h3 { color: #FFF; } .card--dark p { color: var(--muted-d); }
.card--flat { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card--flat::before { display: none; }

.tag {
  display: inline-block; padding: .22rem .68rem; border-radius: 999px;
  font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-200);
  margin-bottom: .9rem; align-self: flex-start;
}
.tag--lock { background: #F2F3F7; color: var(--ink-600); border-color: #DFE2EA; }

/* --- 10. Stats / numbers ------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem; }
.stat {
  padding: 1.7rem 1.4rem; border-radius: var(--r-lg); text-align: center;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.section--dark .stat { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .1); }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1;
  background: linear-gradient(135deg, var(--gold-700), var(--gold-500) 52%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.section--dark .stat b { background: linear-gradient(135deg, var(--gold-200), var(--metal-hi) 46%, var(--gold-300)); -webkit-background-clip: text; background-clip: text; }
.stat span { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.section--dark .stat span { color: var(--muted-d); }

/* --- 11. Timeline ------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600), transparent);
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -2.2rem; top: .45rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201, 169, 97, .16);
}
.section--dark .timeline__item::before { background: var(--ink-900); }
.timeline__year {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--gold-600); display: block; margin-bottom: .2rem;
}
.section--dark .timeline__year { color: var(--gold-300); }
.timeline__item h4 { margin-bottom: .3rem; }
.timeline__item p { margin-bottom: 0; font-size: .95rem; color: var(--muted); }
.section--dark .timeline__item p { color: var(--muted-d); }

/* --- 12. Tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--sh-sm); margin: 0 0 1.6rem;
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
thead th {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  color: var(--gold-700); font-weight: 700; text-align: left;
  padding: .85rem 1rem; white-space: nowrap; border-bottom: 1px solid var(--gold-200);
}
tbody td { padding: .82rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--gold-50); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-hl { color: var(--gold-700); font-weight: 700; }

/* --- 13. Article -------------------------------------------------------- */
.article { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.article__body { font-size: 1.06rem; line-height: 1.85; }
.article__body h2 {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}
.article__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article__body h3 { margin-top: 2rem; color: var(--ink-800); }
.article__body ul { padding-left: 1.2em; }
.article__body li::marker { color: var(--gold-500); }
.article__body img { border-radius: var(--r-md); margin: 1.6rem 0; }

.callout {
  position: relative; padding: 1.3rem 1.5rem 1.3rem 1.65rem; margin: 1.8rem 0;
  border-radius: var(--r-md); background: var(--gold-50);
  border: 1px solid var(--gold-200); border-left: 4px solid var(--gold-400);
  font-size: .98rem; line-height: 1.72;
}
.callout > *:last-child { margin-bottom: 0; }
.callout__title {
  display: flex; align-items: center; gap: .5rem; font-weight: 700;
  color: var(--gold-700); margin-bottom: .5rem; font-size: .95rem;
}
.callout--note { background: #F4F6FA; border-color: #DEE3EC; border-left-color: #9AA6BE; }
.callout--note .callout__title { color: var(--ink-600); }
.callout--warn { background: #F2F4F7; border-color: #DDE1E8; border-left-color: #5B6473; }
.callout--warn .callout__title { color: #434C5C; }

.keyline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin: 1.8rem 0;
}
.keyline > div {
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
}
.keyline b { display: block; color: var(--gold-700); font-size: 1.28rem; font-family: var(--font-display); margin-bottom: .2rem; }
.keyline span { font-size: .87rem; color: var(--muted); line-height: 1.5; }

.pro-con { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.pro-con > div { padding: 1.3rem 1.45rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.pro-con h4 { display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; font-size: 1rem; }
.pro-con ul { margin-bottom: 0; padding-left: 1.15em; font-size: .94rem; }
.pro-con .pros { border-left: 4px solid #2F7D57; }
.pro-con .pros h4 { color: #276848; }
.pro-con .cons { border-left: 4px solid #5B6473; }
.pro-con .cons h4 { color: #434C5C; }

.toc {
  padding: 1.35rem 1.5rem; border-radius: var(--r-md);
  background: var(--sand); border: 1px solid var(--line); margin-bottom: 2.4rem;
}
.toc strong { display: block; margin-bottom: .6rem; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--ink-700); } .toc a:hover { color: var(--gold-700); }

.article-nav {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.article-nav a { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; max-width: 46%; }
.article-nav a span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 620px) { .article-nav a { max-width: 100%; } }

.disclaimer {
  margin-top: 3rem; padding: 1.2rem 1.4rem; border-radius: var(--r-md);
  background: #F4F5F8; border: 1px solid #E3E6EC;
  font-size: .82rem; line-height: 1.68; color: var(--muted);
}
.disclaimer > *:last-child { margin-bottom: 0; }

/* --- 14. Feature rows --------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-row--flip > *:first-child { order: 2; }
@media (max-width: 760px) { .feature-row--flip > *:first-child { order: 0; } }

.visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--ink-800), #46261F 55%, var(--gold-600));
  display: grid; place-items: center; box-shadow: var(--sh-lg);
}
.visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 82%, rgba(255, 214, 138, .5), transparent 58%);
}
.visual__label {
  position: relative; z-index: 1; text-align: center; padding: 1.5rem;
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); color: #FFF6DC;
}
.visual__label small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-top: .6rem; }

/* Photo placeholder tiles (team events) */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center;
  background: linear-gradient(145deg, var(--gold-100), var(--sand) 55%, var(--gold-200));
  border: 1px dashed var(--gold-300); color: var(--gold-700);
  font-size: .85rem; padding: 1rem; line-height: 1.5;
}
.photo--tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 15. Steps ---------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.25rem 1.4rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: #2C1F02;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500));
}
.step h4 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; font-size: .94rem; color: var(--muted); }
.section--dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.section--dark .step p { color: var(--muted-d); }

/* --- 16. Password gate -------------------------------------------------- */
html.gated body > *:not(.gate):not(.site-header) { display: none !important; }
html.gated .site-header { display: none !important; }
.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(120% 90% at 50% 112%, #FFC46A 0%, #E4702E 22%, #7A3340 45%, #1A1C2B 72%, #0A0C11 100%);
}
.gate__card {
  width: min(100%, 430px); padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--r-xl); text-align: center;
  background: rgba(255, 252, 243, .97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  animation: fadeUp .6s var(--ease) both;
}
.gate__mark {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold-600), var(--gold-300) 18%,
              var(--metal-hi) 30%, var(--gold-400) 46%, var(--metal-sh) 62%,
              var(--gold-300) 78%, var(--metal-hi) 88%, var(--gold-600));
  box-shadow: 0 0 34px rgba(201, 169, 97, .45), inset 0 0 0 1px rgba(255, 248, 228, .5);
}
.gate__card h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.gate__card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.5rem; }
.gate__form { display: flex; flex-direction: column; gap: .7rem; }
.gate__form input {
  width: 100%; padding: .85rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: 1rem; text-align: center; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.gate__form input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .2); }
.gate__err { font-size: .87rem; color: #C1481C; min-height: 1.3em; margin: 0; }
.gate__foot { margin-top: 1.3rem; font-size: .8rem; color: var(--muted); }
.gate.shake .gate__card { animation: shake .45s; }

/* --- 17. Library / training ------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.chip {
  padding: .45rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .86rem; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--gold-300); color: var(--gold-700); }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent; color: #2C1F02; box-shadow: var(--sh-gold);
}
.search-box { position: relative; margin-bottom: 1.2rem; max-width: 420px; }
.search-box input {
  width: 100%; padding: .78rem 1.1rem .78rem 2.7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink-800);
}
.search-box input:focus { outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .18); }
.search-box::before {
  content: "⌕"; position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: var(--muted); pointer-events: none;
}

.file-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.file-row + .file-row { margin-top: .6rem; }
.file-row:hover { border-color: var(--gold-300); box-shadow: var(--sh-md); transform: translateX(3px); }
.file-row__ext {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em; color: #FFF;
  background: var(--ink-600);
}
.file-row__ext[data-ext="PDF"] { background: #C0392B; }
.file-row__ext[data-ext="XLSX"], .file-row__ext[data-ext="CSV"] { background: #217346; }
.file-row__ext[data-ext="DOCX"] { background: #2B5797; }
.file-row__ext[data-ext="PPTX"] { background: #C55A11; }
.file-row__ext[data-ext="LINK"] { background: var(--gold-600); }
.file-row__name { font-weight: 600; color: var(--ink-800); font-size: .97rem; line-height: 1.4; }
.file-row__meta { font-size: .8rem; color: var(--muted); }
.file-row__cta { font-size: .85rem; font-weight: 650; color: var(--gold-600); white-space: nowrap; }
.file-row.is-todo { border-style: dashed; opacity: .82; }
@media (max-width: 560px) {
  .file-row { grid-template-columns: 40px 1fr; }
  .file-row__cta { grid-column: 2; }
}

.video-card { padding: 0; overflow: hidden; }
.video-card__thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ink-800), #4A2A20 60%, var(--gold-600));
}
.video-card__thumb::after {
  content: ""; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 252, 243, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B87C12'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3); transition: transform .3s var(--ease);
}
.video-card:hover .video-card__thumb::after { transform: scale(1.12); }
.video-card__dur {
  position: absolute; right: .6rem; bottom: .6rem; padding: .12rem .5rem; border-radius: 5px;
  background: rgba(10, 12, 17, .78); color: #FFF; font-size: .74rem; font-variant-numeric: tabular-nums;
}
.video-card__body { padding: 1.1rem 1.3rem 1.3rem; }
.video-card__body h4 { margin-bottom: .3rem; font-size: 1rem; }
.video-card__body p { font-size: .84rem; color: var(--muted); margin-bottom: 0; }

.empty-note {
  padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-md);
  border: 1px dashed var(--line); color: var(--muted); font-size: .92rem;
}

/* --- 18. Forms ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink-700); }
.field input, .field select, .field textarea {
  padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--paper); font-family: var(--font-body); font-size: .97rem; color: var(--ink-800);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 169, 97, .18);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* --- 19. CTA band ------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0; text-align: center;
  background: linear-gradient(140deg, var(--ink-900) 0%, #33203A 42%, #8A4322 74%, var(--gold-600) 100%);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 120%;
  width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 176, .55), transparent 62%);
  animation: breathe 10s ease-in-out infinite;
}
.cta-band h2 { color: #FFF; margin-bottom: .8rem; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 2rem; }

/* --- 20. Footer --------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--muted-d); padding: 3.6rem 0 2rem; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .76); }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); gap: 2.2rem; }
.footer-brand .brand__name { color: #FFF; }
.footer-brand p { margin: 1rem 0 0; font-size: .9rem; max-width: 320px; color: var(--muted-d); line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-300); margin: 0 0 .9rem; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between;
  font-size: .82rem; color: #6E7383;
}
.footer-legal { max-width: 900px; margin-top: 1.4rem; font-size: .76rem; line-height: 1.7; color: #5D6272; }

/* --- 21. Reveal animations ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .09s; } .reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; } .reveal-d4 { transition-delay: .36s; }
.reveal-d5 { transition-delay: .45s; } .reveal-d6 { transition-delay: .54s; }

.anim-up { animation: fadeUp .9s var(--ease) both; }
.a-d1 { animation-delay: .15s; } .a-d2 { animation-delay: .3s; }
.a-d3 { animation-delay: .45s; } .a-d4 { animation-delay: .6s; } .a-d5 { animation-delay: .78s; }

/* --- 22. Keyframes ------------------------------------------------------ */
@keyframes rings-breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .82; }
  50%      { transform: translateX(-50%) scale(1.055); opacity: 1; }
}
@keyframes hero-sheen {
  from { transform: translateX(-36%); }
  to   { transform: translateX(36%); }
}
@keyframes breathe { 0%, 100% { opacity: .78; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 199, 147, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(217, 199, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 199, 147, 0); }
}
@keyframes scrollHint { 0%, 100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}

/* The breathe keyframes bake in translateX(-50%); the cta variant is centred on
   both axes, so it needs its own to keep the Y offset. */
.cta-band::after { animation-name: breatheCta; }
@keyframes breatheCta {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.08); }
}

/* --- 23. Motion / print ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* 圆环和高光停在看得见的位置，而不是停在动画终点（会跑到屏幕外）。 */
  .hero__rings { transform: translateX(-50%) scale(1); opacity: .9; }
  .hero__sheen { transform: none; }
  .brand__sheen { transform: translateX(46px); }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero__scroll, .gate { display: none !important; }
  body { background: #FFF; color: #000; font-size: 11pt; }
  .page-hero { background: none !important; padding: 0 0 1rem; }
  .page-hero h1, .page-hero p { color: #000 !important; }
  .card, .table-wrap, .callout { break-inside: avoid; }
}

/* ==========================================================================
   24. 图像层 / Imagery
   生成的图片都放在 assets/img/ 下，按用途分目录：
     brand/     logo、社交分享图、英雄区背景
     articles/  文章头图（每篇一张）
     visual/    装饰方块
     events/    活动氛围图
   ========================================================================== */

/* --- 文章头图：图片垫在渐变遮罩下面，保证标题始终可读 --------------------
   用法：<section class="page-hero page-hero--img"
              style="--hero-img:url(/assets/img/articles/xxx.webp)">
   遮罩从左到右由浓到淡：左边压住文字区，右边把图露出来。
------------------------------------------------------------------------- */
.page-hero--img {
  background-image:
    linear-gradient(100deg,
      rgba(10, 12, 17, .94) 0%,
      rgba(10, 12, 17, .88) 38%,
      rgba(10, 12, 17, .58) 68%,
      rgba(10, 12, 17, .34) 100%),
    var(--hero-img);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
@media (max-width: 860px) {
  /* 窄屏文字会占满整宽，遮罩要整体加深 */
  .page-hero--img {
    background-image:
      linear-gradient(170deg, rgba(10, 12, 17, .93), rgba(10, 12, 17, .8)),
      var(--hero-img);
  }
}

/* --- 首页英雄区影像层 ----------------------------------------------------
   这是开场画面的主体：一张拉丝金属的影像。它压在天光层之上、
   圆环与高光之下，所以那两层读起来像是"光落在金属上"，而不是浮在黑底上。
------------------------------------------------------------------------- */
.hero__photo {
  position: absolute; inset: 0; z-index: -5;
  background-image: url("/assets/img/brand/hero-bg.webp");
  background-size: cover; background-position: center;
  opacity: .92;
}
/* 文字压在左侧，所以只压暗左边，右边把金属完整露出来。
   没有这道遮罩，图会把正文那一段的背景提亮，白字对比度明显变差。 */
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(16, 18, 22, .95) 0%,
    rgba(16, 18, 22, .9) 28%,
    rgba(16, 18, 22, .62) 54%,
    rgba(16, 18, 22, .22) 80%,
    rgba(16, 18, 22, 0) 100%);
}
@media (max-width: 860px) {
  /* 窄屏文字占满整宽，改成整体压暗，并换成小图省流量 */
  .hero__photo {
    opacity: .72; background-image: url("/assets/img/brand/hero-bg-sm.webp");
    background-position: 68% center;
  }
  .hero__photo::after { background: rgba(16, 18, 22, .72); }
}

/* --- .visual 装饰块改为图片承载 ------------------------------------------ */
.visual--img { background: var(--ink-900); }
.visual--img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .72;
}
.visual--img::after {
  background: linear-gradient(160deg, rgba(10,12,17,.35), rgba(10,12,17,.75));
}
.visual--img .visual__label { text-shadow: 0 2px 16px rgba(10, 12, 17, .85); }

/* --- .photo 放真实图片时（已在 §14 定义 .photo img，这里补占位态区分）---- */
.photo--filled { border-style: solid; border-color: var(--line); padding: 0; }
.photo--filled span { display: none; }
