/* ============================================================
   上海怀愚致宸管理咨询有限公司 · BINNACLE PARTNERS
   Shared brand layer — tokens, reset, logo lockup, motion
   Source: "# Binnacle Partners Logo System / Brand Guidelines"
   ============================================================ */

:root {
  /* --- Colour system (approved) --- */
  --ink:        #17233D;  /* Ink Navy       */
  --steel:      #33456A;  /* Steel Navy     */
  --gold:       #BDA06A;  /* Champagne Gold */
  --gold-lite:  #C9AC74;  /* Gold on dark   */
  --gold-deep:  #8A7038;  /* Gold shadow    */
  --warm:       #F5F2EC;  /* Warm White     */
  --white:      #FFFFFF;
  --stone:      #857C6D;  /* Body text grey */
  --fog:        #E7E1D6;  /* Hairline       */

  /* --- Type --- */
  --sans: "Jost", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia,
           "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Metrics --- */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --rule: 1px solid var(--fog);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--gold); color: var(--white); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: var(--rule); margin: 0; }

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.eyebrow--stone { color: var(--stone); }

/* ---------- Logo lockup · 一行式名牌 ----------
   设计：Mark + BINNACLE │ PARTNERS，一行锁定。
   字重与字号拉开层级（500 / 400），金线分隔；PARTNERS 用香槟金收尾。
   尺寸由变量控制，页面按语境改 --wmm / --wm / --wmp 即可。            */
.brand {
  --wm: 18px;    /* BINNACLE 字号 */
  --wmp: 13.5px; /* PARTNERS 字号 */
  --wmm: 32px;   /* 徽标尺寸     */
  display: inline-flex; align-items: center;
}
.brand__mark {
  width: var(--wmm); height: var(--wmm); flex: none;
  margin-right: calc(var(--wmm) * .44);
}
.brand__word { display: inline-flex; align-items: center; line-height: 1; }
.brand__word b {
  font-size: var(--wm); font-weight: 500; letter-spacing: .24em;
  white-space: nowrap; color: var(--ink);
}
.brand__word i {
  display: inline-flex; align-items: center; font-style: normal;
  font-size: var(--wmp); font-weight: 400; letter-spacing: .26em;
  white-space: nowrap; color: var(--gold);
}
.brand__word i::before {
  content: ""; flex: none; width: 1px; height: calc(var(--wm) * .94);
  background: rgba(189,160,106,.72);
  margin: 0 .8em 0 .6em;
}
.brand--reverse .brand__word b { color: var(--warm); }
.brand--reverse .brand__word i { color: var(--gold-lite); }
.brand--reverse .brand__word i::before { background: rgba(201,172,116,.8); }

/* 小屏自适应：名牌整体缩一档，避免把导航挤出视口；
   超窄屏退化为「标记 + 上下两行」，横向占用最小。 */
@media (max-width: 600px) {
  .brand.brand { --wmm: 28px; --wm: 15.5px; --wmp: 12px; }
}
@media (max-width: 430px) {
  .brand.brand { --wmm: 25px; --wm: 14px; --wmp: 11px; }
  .brand.brand .brand__word { flex-direction: column; align-items: flex-start; }
  .brand.brand .brand__word i { margin-top: 3px; }
  .brand.brand .brand__word i::before { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border: 1px solid var(--ink); background: none;
  font-size: 14.5px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .35s ease, color .35s ease,
  border-color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--warm); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--warm); }
.btn--solid:hover { background: var(--steel); border-color: var(--steel); }
.btn--reverse { border-color: rgba(245,242,236,.45); color: var(--warm); }
.btn--reverse:hover { background: var(--warm); color: var(--ink); border-color: var(--warm); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .9s cubic-bezier(.22,.61,.36,1),
              transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Utility ---------- */
.tnum { font-variant-numeric: tabular-nums; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
