/* =========================================================
   Tyler Tik Man Cheng — personal site
   ========================================================= */
:root {
  --navy-950: #071322;
  --navy-900: #0b1d33;
  --navy-800: #11294a;
  --navy-700: #1a3a63;
  --gold: #c9a35b;
  --gold-soft: #e2c88f;
  --gold-ink: #8d6a28;

  --ink: #14202e;
  --ink-2: #3a4757;
  --muted: #66758a;
  --bg: #fbfaf7;
  --bg-alt: #f3f0e8;
  --surface: #ffffff;
  --line: #e6e1d5;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 51, .06);
  --shadow: 0 1px 2px rgba(11, 29, 51, .05), 0 12px 32px -12px rgba(11, 29, 51, .14);
  --shadow-lg: 0 30px 60px -20px rgba(4, 12, 24, .5);

  --sans: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", Georgia, serif;
  --serif-zh: "Noto Serif TC", "Songti TC", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf3;
    --ink-2: #c2ccd8;
    --muted: #93a2b5;
    --bg: #08121f;
    --bg-alt: #0c1a2c;
    --surface: #10223a;
    --line: #1f3550;
    --gold-ink: #dcbd7c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--navy-950); }

/* Language switching */
html[data-lang="en"] body [lang="zh-Hant"]:not(iframe):not([data-tv] *),
html[data-lang="zh"] body [lang="en"]:not(iframe):not([data-tv] *) { display: none !important; }
/* the fallback note inside a widget host still switches language */
html[data-lang="en"] .mk-fail [lang="zh-Hant"],
html[data-lang="zh"] .mk-fail [lang="en"] { display: none !important; }
html[data-lang="zh"] .section-title,
html[data-lang="zh"] .contact-title { font-family: var(--serif-zh); letter-spacing: .02em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--gold); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* =================== Header =================== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.topbar.scrolled {
  background: rgba(7, 19, 34, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: var(--navy-950); font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif-zh); font-weight: 700; font-size: 16px; letter-spacing: .08em; }
.brand-sub { font-size: 12px; color: rgba(255, 255, 255, .65); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500;
  color: rgba(255, 255, 255, .72); padding: 8px 12px; border-radius: 8px; transition: color .2s;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav a.nav-cta {
  margin-left: 8px; color: var(--navy-950); background: var(--gold); font-weight: 600; padding: 8px 16px;
}
.nav a.nav-cta:hover { background: var(--gold-soft); }
.nav a.nav-cta::after { display: none; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
}
.lang-toggle button {
  font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .7); padding: 5px 12px; min-width: 40px; border-radius: 999px; transition: .2s;
}
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--navy-900); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  margin: 0 auto; transition: transform .25s var(--ease), opacity .2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 10px 30px -10px rgba(201, 163, 91, .6); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: rgba(15, 23, 42, .04); }
.btn-outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* =================== Hero =================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(120% 90% at 0% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow-1 {
  width: 560px; height: 560px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(201, 163, 91, .55), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-2 {
  width: 520px; height: 520px; left: -180px; bottom: -220px;
  background: radial-gradient(circle, rgba(64, 122, 196, .5), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }

.hero-inner {
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 64px; align-items: center;
  padding-top: 132px; padding-bottom: 112px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(201, 163, 91, .35); background: rgba(201, 163, 91, .08);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 163, 91, .25); }
.hero-name { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.name-zh {
  font-family: var(--serif-zh); font-weight: 700; letter-spacing: .1em;
  font-size: clamp(52px, 8.4vw, 96px); line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, #d8dfe9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.name-en {
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(26px, 3.8vw, 42px); color: var(--gold-soft); letter-spacing: .01em;
}
/* English view: the English name is the headline, the Chinese name sits below it */
html[data-lang="en"] .name-zh { font-family: var(--serif); font-weight: 700; letter-spacing: .01em; font-size: clamp(42px, 6.6vw, 80px); text-wrap: balance; }
html[data-lang="en"] .name-en { font-family: var(--serif-zh); font-style: normal; font-weight: 700; letter-spacing: .12em; font-size: clamp(22px, 2.8vw, 32px); }
.tagline { margin-top: 22px; font-size: clamp(15px, 1.8vw, 18px); font-weight: 500; letter-spacing: .06em; color: rgba(255, 255, 255, .88); }
.tagline i { font-style: normal; color: var(--gold); margin: 0 .35em; }
.hero-intro { margin-top: 18px; max-width: 560px; text-wrap: pretty; font-size: 17px; color: rgba(255, 255, 255, .66); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-card {
  position: relative; padding: 30px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(226, 200, 143, .7), transparent 40%, transparent 70%, rgba(226, 200, 143, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hc-top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hc-mark {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; flex: none;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold)); color: var(--navy-950);
  font-family: var(--serif); font-weight: 700; font-size: 24px;
}
.hc-name { font-family: var(--serif-zh); font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.hc-sub { font-size: 14px; color: rgba(255, 255, 255, .6); }
.hc-list { margin: 0; padding: 8px 0; }
.hc-list > div { padding: 14px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.hc-list dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hc-list dd { margin: 4px 0 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hc-org { color: rgba(255, 255, 255, .58); }
.hc-foot { padding-top: 16px; font-size: 12px; letter-spacing: .22em; color: rgba(255, 255, 255, .45); text-align: right; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .35);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =================== Highlights =================== */
.highlights { position: relative; z-index: 2; margin-top: -1px; background: var(--navy-950); color: #fff; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hl { padding: 34px 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.hl:first-child { border-left: 0; padding-left: 0; }
.hl-big { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--gold-soft); }
html[data-lang="zh"] .hl-big { font-family: var(--serif-zh); font-size: 28px; }
.hl-big .amp { font-style: italic; color: var(--gold); }
.hl-small { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* =================== Sections =================== */
.section { padding: 120px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.kicker.light { color: var(--gold); }
.section-title {
  margin-top: 14px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.01em; color: var(--ink);
}
.section-title.light { color: #fff; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.about-body > * + * { margin-top: 22px; }
.about-body p { color: var(--ink-2); font-size: 17px; }
.about-body .lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink); line-height: 1.65; }

/* Expertise pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  position: relative; padding: 36px 32px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar:hover::after { transform: scaleX(1); }
.pillar-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy-900); color: var(--gold-soft);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-top: 24px; font-size: 21px; font-weight: 600; }
.pillar > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ticks { list-style: none; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.ticks li + li { margin-top: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Experience timeline */
.xp { list-style: none; position: relative; }
.xp::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--gold), var(--line) 85%);
}
.xp-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; }
.xp-item + .xp-item { margin-top: 28px; }
.xp-badge {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-soft); font-family: var(--serif-zh); font-weight: 700; font-size: 20px;
  box-shadow: 0 0 0 6px var(--bg);
}
.xp-body {
  padding: 28px 32px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease);
}
.xp-body:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.xp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.xp-head h3 { font-size: 22px; font-weight: 600; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px;
  color: var(--gold-ink); background: rgba(201, 163, 91, .14); border: 1px solid rgba(201, 163, 91, .3);
}
.xp-org { margin-top: 4px; font-weight: 600; color: var(--gold-ink); font-size: 15px; }
.xp-body > p:not(.xp-org) { margin-top: 12px; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
}

/* Venture spotlight */
.spotlight {
  position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; color: #fff;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-950));
}
.spotlight-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(201, 163, 91, .22), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.spotlight-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.spotlight-zh { margin-top: 8px; font-family: var(--serif-zh); font-size: 20px; letter-spacing: .1em; color: var(--gold-soft); }
.spotlight-text { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, .75); }
.spotlight-role {
  display: inline-block; margin-top: 28px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(201, 163, 91, .4); color: var(--gold-soft);
}
.spotlight-cards { display: grid; gap: 16px; }
.s-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline;
  padding: 24px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.s-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(201, 163, 91, .45); transform: translateX(-4px); }
.s-num { grid-row: span 2; font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; }
.s-card h3 { font-size: 19px; font-weight: 600; }
.s-card p { margin-top: 4px; color: rgba(255, 255, 255, .62); font-size: 15px; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.edu:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.edu-abbr {
  font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--gold-ink), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edu h3 { margin-top: 22px; font-size: 18px; font-weight: 600; min-height: 2.4em; }
.edu-status {
  display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
}

/* Engage */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.engage {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.engage:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.engage h3 { font-size: 20px; font-weight: 600; }
.engage p { margin-top: 10px; color: var(--muted); flex: 1; }
.engage-link { margin-top: 24px; font-weight: 600; font-size: 14px; color: var(--gold-ink); }

/* Contact */
.contact {
  position: relative; overflow: hidden; padding: 128px 0; text-align: center; color: #fff;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(201, 163, 91, .25), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.contact-title { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 80px); line-height: 1.05; }
.contact-text { margin: 20px auto 0; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .7); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* Footer */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 36px 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { color: #fff; font-weight: 600; }
.footer-tag { font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { width: 100%; font-size: 13px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy-950);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =================== Responsive =================== */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 520px; }
  .about-grid, .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .section-head { position: static; }
  .pillars, .edu-grid, .engage-grid { grid-template-columns: 1fr 1fr; }
  .hl-grid { grid-template-columns: 1fr 1fr; }
  .hl:nth-child(3) { border-left: 0; padding-left: 0; }
  .hl:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: rgba(7, 19, 34, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .topbar { background: rgba(7, 19, 34, .97); }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav a.active::after { display: none; }
  .nav a.nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .topbar-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar-inner { height: 64px; gap: 12px; }
  .nav { inset: 64px 0 auto 0; }
  .brand { gap: 10px; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-sub { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
  .hero-inner { padding-top: 112px; padding-bottom: 96px; }
  .hero-intro { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-card { padding: 24px; }
  .section, .spotlight { padding: 84px 0; }
  .contact { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .pillars, .edu-grid, .engage-grid { grid-template-columns: 1fr; }
  .edu h3 { min-height: 0; }
  .hl { padding: 26px 16px; }
  .hl:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hl-big { font-size: 26px; }
  html[data-lang="zh"] .hl-big { font-size: 22px; }
  .xp::before { left: 19px; }
  .xp-item { grid-template-columns: 40px 1fr; gap: 16px; }
  .xp-badge { width: 40px; height: 40px; font-size: 16px; box-shadow: 0 0 0 5px var(--bg); }
  .xp-body { padding: 22px; }
  .xp-head h3 { font-size: 19px; }
  .s-card { padding: 20px; column-gap: 16px; }
  .contact-actions .btn { width: 100%; }
  .footer-inner { padding: 32px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .scroll-cue, .to-top, .hero-bg, .contact-actions button { display: none !important; }
  .hero, .highlights, .spotlight, .contact, .footer { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =================== Illustrations =================== */
.pillar-media {
  margin: -36px -32px 0; aspect-ratio: 800 / 520; overflow: hidden; background: var(--navy-900);
}
.pillar-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar:hover .pillar-media img { transform: scale(1.05); }
.pillar .pillar-icon { position: relative; margin-top: -27px; box-shadow: 0 0 0 5px var(--surface); }

.spotlight-side { display: grid; gap: 16px; }
.spotlight-visual {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg);
}
.spotlight-visual img { display: block; width: 100%; height: auto; }
.spotlight-visual figcaption {
  position: absolute; left: 14px; bottom: 12px; font-size: 12px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: rgba(7, 19, 34, .65); color: rgba(255, 255, 255, .75);
}
@media (max-width: 640px) {
  .pillar-media { margin: -36px -32px 0; }
}

/* =================== Entrepreneurship =================== */
.ventures { margin-top: 64px; }
.ventures-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
html[data-lang="zh"] .ventures-title { font-family: var(--serif-zh); }
.venture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.venture { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); transition: transform .3s var(--ease), box-shadow .3s; }
.venture:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.venture-role { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.venture h4 { margin: 8px 0 0; font-size: 20px; font-weight: 600; }
.venture p:last-child { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* =================== Contact cards =================== */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 920px; margin: 40px auto 0; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; text-decoration: none; text-align: left;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.contact-card:hover { border-color: var(--gold); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.contact-card:first-child { border-color: rgba(201, 163, 91, .55); }
.cc-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.cc-value { font-size: 16px; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.contact-actions { margin-top: 24px; }
@media (max-width: 1020px) { .venture-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .venture-grid { grid-template-columns: 1fr; } }

/* =================== Projects page =================== */
.p-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 150px 0 72px;
  background: radial-gradient(120% 90% at 0% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%); }
.p-hero .hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.p-title { margin-top: 24px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; }
html[data-lang="zh"] .p-title { font-family: var(--serif-zh); letter-spacing: .04em; }
.p-lede { margin-top: 18px; max-width: 720px; font-size: 18px; color: rgba(255, 255, 255, .72); }
.p-lede b { color: var(--gold-soft); font-weight: 600; }
.p-lede.dark { color: var(--ink-2); font-size: 16px; margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, color .2s, border-color .2s; }
.filters button b { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.filters button:hover { border-color: var(--gold); }
.filters button.on { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.filters button.on b { background: rgba(7, 19, 34, .15); }
.p-group.hidden { display: none; }

.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.p-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.p-media { display: block; background: var(--navy-950); overflow: hidden; }
.p-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.p-card.featured .p-media img { aspect-ratio: auto; min-height: 100%; object-fit: contain; background: var(--navy-950); }
.p-card:hover .p-media img { transform: scale(1.03); }
.p-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; }
.p-body > p:not(.p-meta):not(.p-sub):not(.p-note) { color: var(--ink-2); font-size: 15px; }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.p-role { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.p-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.p-status.live { color: #2e7d4f; border-color: rgba(46, 125, 79, .35); background: rgba(46, 125, 79, .08); }
.p-status.dev { color: var(--gold-ink); border-color: rgba(201, 163, 91, .4); background: rgba(201, 163, 91, .1); }
.p-status.early { color: #3b6ea8; border-color: rgba(59, 110, 168, .35); background: rgba(59, 110, 168, .08); }
.p-body h3 { font-size: 23px; font-weight: 600; }
.p-sub { margin-top: -4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.p-body .chips { margin-top: 4px; }
.p-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 8px; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.p-link { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.p-link:hover { color: var(--gold-ink); border-color: var(--gold); }
.p-note { font-size: 12px; color: var(--muted); }
.text-card { flex-direction: row; grid-column: 1 / -1; }
.p-icon { flex: none; display: grid; place-items: center; width: 140px; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--gold-soft); }
.p-icon svg { width: 54px; height: 54px; }
.p-grid.two .p-card { height: 100%; }
.p-contact { padding: 96px 0; }

/* homepage projects teaser */
.teaser-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.teaser { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy-950); }
.teaser div { padding: 16px 18px 18px; }
.teaser small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.teaser b { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; }
.teaser-cta { margin-top: 28px; text-align: center; }

@media (max-width: 1020px) {
  .p-card.featured { grid-template-columns: 1fr; }
  .p-card.featured .p-media img { aspect-ratio: 16 / 7; min-height: 0; }
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .text-card { flex-direction: column; }
  .p-icon { width: auto; height: 110px; }
  .p-hero { padding: 120px 0 56px; }
  .p-lede { font-size: 16px; }
}
@media (max-width: 520px) { .teaser-grid { grid-template-columns: minmax(0, 1fr); } .p-body { padding: 20px; } }

/* =================== US equities page =================== */
.us-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 760px; margin-top: 34px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.us-strip div { padding: 16px 18px; background: rgba(7, 19, 34, .55); }
.us-strip b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--gold-soft); }
.us-strip span { font-size: 13px; color: rgba(255, 255, 255, .62); }

.path-ui { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.path-top { display: flex; align-items: flex-start; gap: 18px; }
.path-track { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86px, 1fr); gap: 6px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.path-track button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; font: inherit; cursor: pointer; background: transparent; border: 0; border-radius: 12px; color: var(--muted); transition: background .25s, color .25s; }
.path-track button:hover { background: var(--bg-alt); color: var(--ink); }
.path-track .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; font-size: 14px; border: 2px solid var(--line); background: var(--surface); transition: all .3s var(--ease); }
.path-track .l { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.path-track li.done .n { background: rgba(201, 163, 91, .18); border-color: var(--gold); color: var(--gold-ink); }
.path-track li.cur .n { background: var(--gold); border-color: var(--gold); color: var(--navy-950); box-shadow: 0 0 0 6px rgba(201, 163, 91, .22); transform: scale(1.08); }
.path-track li.cur button { color: var(--ink); }
.path-play { flex: none; border: 0; cursor: pointer; font-family: inherit; }
.path-play .pl-off { display: none; }
.path-ui.playing .path-play .pl-on { display: none; }
.path-ui.playing .path-play .pl-off { display: inline; }
.path-progress { height: 4px; margin: 10px 0 24px; border-radius: 2px; background: var(--bg-alt); overflow: hidden; }
.path-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .6s var(--ease); }
.path-detail { opacity: 0; transform: translateY(10px); }
.path-detail.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pd-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.path-detail h3 { margin-top: 6px; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
html[data-lang="zh"] .path-detail h3 { font-family: var(--serif-zh); }
.pd-d { margin-top: 10px; max-width: 860px; font-size: 16.5px; color: var(--ink-2); }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.pd-grid div { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }
.pd-grid div.help { background: rgba(201, 163, 91, .1); border-color: rgba(201, 163, 91, .4); }
.pd-grid dt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-grid div.help dt { color: var(--gold-ink); }
.pd-grid dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; }

.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.route { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.route:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route-k { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); color: var(--gold-soft); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.route h3 { margin-top: 16px; font-size: 19px; font-weight: 600; }
.route > p:not(.route-k) { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.route-pc { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.route-pc li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); }
.route-pc li + li { margin-top: 6px; }
.route-pc li::before { position: absolute; left: 0; font-weight: 700; }
.route-pc .pro::before { content: "+"; color: #2e7d4f; }
.route-pc .con::before { content: "–"; color: #b4532a; }
.center-note { margin-top: 20px; text-align: center; }

.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.case.placeholder { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 22px; border-style: dashed; }
.case.placeholder h3 { font-size: 19px; font-weight: 600; }
.case.placeholder p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.case.placeholder .btn { grid-column: 3; grid-row: 1 / span 2; }
.case-lock { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy-900); color: var(--gold-soft); }
.case-lock svg { width: 26px; height: 26px; }
.us-disclaimer { margin: 28px auto 0; max-width: 760px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }

@media (max-width: 1020px) { .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .path-ui { padding: 18px; }
  .path-top { flex-direction: column; align-items: stretch; }
  .path-play { align-self: flex-start; }
  .pd-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .us-strip { grid-template-columns: minmax(0, 1fr); }
  .case.placeholder { grid-template-columns: auto 1fr; }
  .case.placeholder .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (max-width: 520px) { .route-grid { grid-template-columns: minmax(0, 1fr); } }
.xp-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid rgba(201, 163, 91, .45); }
.xp-link:hover { border-color: var(--gold); }
.learn-card .p-icon { background: linear-gradient(160deg, #1d3d36, var(--navy-950)); color: #7fd1a3; }

/* =================== Photo =================== */
.hc-photo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; border: 2px solid rgba(226, 200, 143, .6); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.about-photo { margin: 28px 0 0; max-width: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #2a2f36; }
.about-photo img { display: block; width: 100%; height: auto; }

/* =================== Patents =================== */
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.pt-stats div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pt-stats b { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 700; color: var(--gold-ink); }
.pt-stats span { font-size: 14px; color: var(--ink-2); }
.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pt-filters button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: all .2s; }
.pt-filters button.on { background: var(--navy-900); color: var(--gold-soft); border-color: var(--navy-900); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pt-card { position: relative; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, opacity .3s; }
.pt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pt-card.hide { display: none; }
.pt-top { display: flex; justify-content: space-between; align-items: center; }
.pt-st { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.pt-st.granted { color: #2e7d4f; border-color: rgba(46, 125, 79, .4); background: rgba(46, 125, 79, .08); }
.pt-st.filed { color: var(--gold-ink); border-color: rgba(201, 163, 91, .45); background: rgba(201, 163, 91, .1); }
.pt-j { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--muted); }
.pt-zh { margin-top: 14px; font-family: var(--serif-zh); font-size: 18px; font-weight: 700; line-height: 1.4; }
.pt-en { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.pt-meta { margin-top: 12px; font-size: 13px; color: var(--ink); }
.pt-meta .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.pt-date { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.pt-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.pt-note a { color: var(--gold-ink); }

/* =================== Media =================== */
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.media-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.media-cover { position: relative; display: block; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-950); border: 0; padding: 0; cursor: pointer; width: 100%; }
.media-cover img, .media-cover iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-cover.photo { cursor: default; }
.media-cover.photo img { object-position: 50% 40%; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .2s; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.media-cover.hkyba { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; text-decoration: none; color: #fff;
  background: radial-gradient(400px 220px at 80% 10%, rgba(201, 163, 91, .35), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.cover-k { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.cover-t { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.cover-s { font-size: 13px; color: rgba(255, 255, 255, .7); }
.media-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.media-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.media-body h3 { font-size: 19px; font-weight: 600; }
.media-body p:not(.media-k) { font-size: 14.5px; color: var(--ink-2); }
.media-body .xp-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pt-stats, .media-grid { grid-template-columns: minmax(0, 1fr); } .about-photo { max-width: 280px; } }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags > span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; color: var(--gold-ink); background: rgba(201, 163, 91, .1); border: 1px solid rgba(201, 163, 91, .4); }
.case h3 { margin-top: 12px; font-size: 21px; font-weight: 600; }
.case dl { margin: 14px 0 0; }
.case dt { margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.case-metric { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.case-metric div { padding: 14px 16px; background: var(--navy-900); color: #fff; }
.case-metric b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold-soft); }
.case-metric span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.case-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: cs; }
.case-steps li { counter-increment: cs; position: relative; padding: 10px 4px 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border-radius: 8px; border-top: 3px solid var(--gold); }
.case-steps li::before { content: counter(cs); display: block; font-family: var(--serif); font-size: 18px; color: var(--gold-ink); }
.media-cover.yt { background: radial-gradient(400px 220px at 30% 20%, rgba(201, 163, 91, .3), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.pt-holder { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pt-st.pending { color: #3b6ea8; border-color: rgba(59, 110, 168, .35); background: rgba(59, 110, 168, .08); }
.yz-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.yz-head img { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.yz-head h4 { margin: 0; }
.yz-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.yz-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* =================== Insights / News / Markets =================== */
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.p-lede a, .ins-disclaimer a { color: inherit; }

.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ins-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; text-decoration: none; color: var(--ink);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ins-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201, 163, 91, .5); }
.ins-card.hidden { display: none; }
.ins-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.ins-card p:not(.ins-meta) { font-size: 15px; color: var(--ink-2); }
.ins-pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 28px; padding-top: 8px;
}
.ins-pager[hidden] { display: none !important; }
.ins-page-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, .14); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.ins-page-btn:hover:not(:disabled) { border-color: rgba(201, 163, 91, .65); color: #8d6a28; }
.ins-page-btn.on, .ins-page-btn[aria-current="page"] {
  background: #0b1d33; border-color: #0b1d33; color: #fff;
}
.ins-page-btn:disabled { opacity: .38; cursor: not-allowed; }
.ins-page-status {
  margin: 0 0 0 4px; font-size: 13px; color: var(--ink-2); width: 100%;
}
@media (min-width: 640px) {
  .ins-page-status { width: auto; margin-left: auto; }
}
.ins-read { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.ins-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.ins-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink);
  padding: 2px 9px; border-radius: 999px; background: rgba(201, 163, 91, .12); border: 1px solid rgba(201, 163, 91, .3); }
.ins-disclaimer { margin-top: 36px; font-size: 13px; color: var(--muted); max-width: 820px; }

.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > div > * + * { margin-top: 1.1em; }
.prose .ins-meta { margin-bottom: 28px; }
.prose h3 { margin-top: 1.9em !important; font-size: 23px; line-height: 1.3; font-weight: 600; color: var(--ink); }
html[data-lang="zh"] .prose h3 { font-family: var(--serif-zh); }
html[data-lang="zh"] .prose { font-size: 17.5px; line-height: 1.95; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--gold); }
.prose em { color: var(--muted); }
.ins-byline { margin-top: 2.2em; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.prose .ins-disclaimer { padding-top: 18px; border-top: 1px solid var(--line); }
.ins-more { max-width: 720px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 10px; }
.ins-more-link { display: block; padding: 14px 18px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.ins-more-link:hover { border-color: var(--gold); }
.ins-more .p-link { align-self: flex-start; margin-top: 8px; }

.news-updated { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-item { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; text-decoration: none; color: var(--ink);
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.news-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.news-item h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.news-item p:not(.news-meta) { font-size: 14.5px; color: var(--ink-2); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.news-src { font-weight: 600; color: var(--ink-2); }
.news-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }

/* region + theme chips on markets desk */
.mk-regions, .mk-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mk-themes { margin-top: 14px; }
.mk-chip {
  appearance: none; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .88); font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.mk-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.mk-chip.on { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.mk-chip.soft {
  border-color: var(--line); background: var(--surface); color: var(--ink-2);
}
.mk-chip.soft:hover { border-color: var(--gold); color: var(--ink); }
.mk-chip.soft.on { background: rgba(201, 163, 91, .16); border-color: var(--gold); color: var(--gold-ink); }
.p-hero .mk-regions { margin-top: 22px; }
.mk-heat-note {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 180px;
  padding: 28px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.55;
}
/* Local desks grow with content so every name stays visible (no fixed clip). */
.mk-card.mk-local {
  height: auto !important; min-height: 280px; overflow: visible; padding: 14px 16px 12px;
}
.mk-heatboard {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px;
  min-height: 0; align-content: start;
}
.mk-heat-cell {
  appearance: none; border: 0; border-radius: 10px; padding: 12px 10px; text-align: left;
  color: var(--ink); cursor: default; min-height: 84px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 4px; font: inherit;
}
.mk-heat-cell b { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.mk-heat-name {
  font-size: 11.5px; line-height: 1.3; color: var(--ink-2); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mk-heat-cell span:last-child { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
.mk-movers-local, .mk-themes-local { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.mk-themes-local { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mk-movers-local > div, .mk-theme-block, .mk-bench-local { min-width: 0; }
.mk-movers-local h3, .mk-themes-local h3, .mk-bench-local h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 6px;
}
.mk-local-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* Local ticker marquee — fallback when TradingView scrolling tape fails. */
.mk-tape.mk-local { min-height: 46px; overflow: hidden; }
.mk-tape-marquee { overflow: hidden; width: 100%; padding: 8px 0; }
.mk-tape-track {
  display: flex; flex-wrap: nowrap; width: max-content;
  animation: mk-tape-scroll 48s linear infinite;
}
.mk-tape-marquee:hover .mk-tape-track { animation-play-state: paused; }
@keyframes mk-tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-tape-track { animation: none; }
  .mk-tape-marquee { overflow-x: auto; }
}
.mk-tape-item {
  flex: 0 0 auto; display: flex; align-items: baseline; gap: 10px;
  padding: 4px 18px; border-right: 1px solid var(--line); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mk-tape-sym { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mk-tape-px { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.mk-tape-pct { font-size: 13px; font-weight: 600; }
.mk-tape-pct.up { color: #2e9d62; }
.mk-tape-pct.down { color: #d0473f; }
@media (max-width: 900px) {
  .mk-heatboard { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .mk-movers-local, .mk-themes-local { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mk-regions, .mk-themes { gap: 6px; }
  .mk-chip { font-size: 12.5px; padding: 6px 10px; }
}

.mk-tape { min-height: 46px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mk-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; padding: 6px; }
.mk-card .tradingview-widget-container { width: 100%; height: 100%; }
.mk-card .tradingview-widget-container__widget { width: 100%; height: calc(100% - 32px); }
.tradingview-widget-container iframe { display: block !important; visibility: visible !important; }
.tradingview-widget-copyright { font-size: 12px; line-height: 32px; text-align: right; padding-right: 8px; color: var(--muted); }
.tradingview-widget-copyright a { color: var(--muted); }
.mk-tape .tradingview-widget-copyright { display: none; }
.mk-card.tall { height: 460px; }
.mk-card.heat { height: 560px; }
.mk-card.mid { height: 560px; }
.mk-card.chart { height: min(72vh, 640px); min-height: 480px; }
.mk-card.mini { height: 240px; }
.mk-card.mk-card-fit { height: auto !important; min-height: 280px; }
.mk-mini-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.mk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mk-more { display: flex; gap: 24px; margin-top: 18px; }
.mk-pulse { padding: 8px 6px 4px; }
.mk-pulse-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
}
.mk-pulse-stat {
  padding: 12px 14px; border-radius: 12px; background: var(--bg-alt, #f6f4ef); border: 1px solid var(--line);
}
.mk-pulse-k { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mk-pulse-stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.mk-pulse-stat b.up, .mk-pulse-rank-pct.up, .mk-tape-pct.up { color: #2e9d62; }
.mk-pulse-stat b.down, .mk-pulse-rank-pct.down, .mk-tape-pct.down { color: #d0473f; }
.mk-pulse-ad { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.mk-pulse-ad-fill { height: 100%; transition: width .6s ease; }
.mk-pulse-ad-fill.up { background: #2e9d62; }
.mk-pulse-ad-fill.down { background: #d0473f; }
.mk-pulse-ad-label { margin: 8px 0 16px; font-size: 12.5px; color: var(--muted); }
.mk-pulse-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.mk-pulse-split h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 10px;
}
.mk-pulse-hist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 140px; }
.mk-pulse-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mk-pulse-bar {
  width: 100%; max-width: 36px; height: var(--h, 20%); min-height: 8px; border-radius: 8px 8px 4px 4px;
  background: #8a8f98; transform-origin: bottom;
  animation: mk-pulse-grow .55s ease both;
}
.mk-pulse-bar.up { background: #2e9d62; }
.mk-pulse-bar.down { background: #d0473f; }
.mk-pulse-bar-wrap span { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.mk-pulse-bar-wrap small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-pulse-ranks { display: flex; flex-direction: column; gap: 8px; }
.mk-pulse-rank { display: grid; grid-template-columns: 88px 1fr 64px; gap: 10px; align-items: center; }
.mk-pulse-rank-sym { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-pulse-rank-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mk-pulse-rank-fill {
  display: block; height: 100%; width: var(--w, 0%); border-radius: inherit;
  animation: mk-pulse-fill .55s ease both;
}
.mk-pulse-rank-fill.up { background: #2e9d62; }
.mk-pulse-rank-fill.down { background: #d0473f; }
.mk-pulse-rank-pct { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes mk-pulse-grow { from { transform: scaleY(0.15); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@keyframes mk-pulse-fill { from { width: 0; } to { width: var(--w, 0%); } }
@media (prefers-reduced-motion: reduce) {
  .mk-pulse-bar, .mk-pulse-rank-fill, .mk-pulse-ad-fill { animation: none; transition: none; }
}

/* homepage insights teaser */
.home-ins .ins-grid { margin-top: 8px; }

@media (max-width: 1020px) { .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .mk-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-pulse-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-pulse-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ins-grid, .news-list, .mk-two { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .mk-card.heat { height: 460px; }
  .mk-card.chart { height: 420px; min-height: 360px; }
  .mk-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 861px) { .nav a { padding: 8px 8px; font-size: 13.5px; } }
.mk-card, .mk-tape { position: relative; }
.mk-fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; font-size: 14px; color: var(--muted); background: var(--surface); }
.mk-tape .mk-fail { flex-direction: row; flex-wrap: wrap; font-size: 13px; padding: 8px 16px; }
/* loading shimmer for market widgets */
.mk-card::before, .mk-tape::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(201, 163, 91, .10) 50%, transparent 70%) var(--surface);
  background-size: 200% 100%; animation: mk-shimmer 1.4s linear infinite; }
.mk-card.ready::before, .mk-tape.ready::before { display: none; }
.mk-card > .tradingview-widget-container, .mk-tape > .tradingview-widget-container { position: relative; z-index: 1; }
.mk-fail { z-index: 2; }
@keyframes mk-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .mk-card::before, .mk-tape::before { animation: none; } }

/* market snapshot */
.mk-updated { margin-top: 10px; font-size: 13px; color: var(--muted); }
.snap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.snap-card { padding: 20px 22px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.snap-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 6px; }
.snap-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.snap-table col.snap-col-name { width: auto; }
.snap-table col.snap-col-chart { width: 88px; }
.snap-table col.snap-col-px { width: 78px; }
.snap-table col.snap-col-pct { width: 86px; }
.snap-table tr + tr { border-top: 1px solid var(--line); }
.snap-table th, .snap-table td { padding: 9px 6px; vertical-align: middle; }
.snap-table th { text-align: left; font-weight: 400; min-width: 0; padding-left: 0; }
.snap-table th b {
  display: block; font-size: 15px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snap-table th small {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 12px; color: var(--muted); line-height: 1.35;
  overflow: hidden; word-break: normal; overflow-wrap: anywhere;
}
.snap-chart { text-align: center; overflow: hidden; }
.snap-spark { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.snap-spark.up { color: #2e9d62; }
.snap-spark.down { color: #d0473f; }
.snap-px {
  text-align: right; font-size: 15px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snap-table td:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.snap-pct {
  display: inline-block; min-width: 72px; max-width: 100%; box-sizing: border-box;
  padding: 3px 8px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  text-align: right; color: #fff; white-space: nowrap;
}
.snap-pct.up { background: #2e9d62; }
.snap-pct.down { background: #d0473f; }
.snap-table tr.stale { opacity: .55; }
@media (max-width: 860px) { .snap-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .snap-table col.snap-col-chart { width: 0; }
  .snap-chart { display: none; }
  .snap-table col.snap-col-px { width: 68px; }
  .snap-table col.snap-col-pct { width: 78px; }
}

/* =========================================================
   Design elements carried over from tylerfuture.com
   (desert hero, curved hero edge, oversized display type)
   ========================================================= */
:root { --display: "Space Grotesk", "Inter", "Noto Sans TC", system-ui, sans-serif; }

/* Desert photo behind the hero, toned into the navy palette */
.hero-photo { position: absolute; inset: 0; display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: .62; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 34, .94) 0%, rgba(7, 19, 34, .78) 42%, rgba(7, 19, 34, .30) 100%),
    linear-gradient(180deg, rgba(7, 19, 34, .55) 0%, transparent 30%, transparent 62%, var(--navy-950) 100%);
}
.hero .grid { opacity: .55; }

/* Curved lower edge, as on the old home page */
.highlights { padding-bottom: 28px; border-radius: 0 0 50% 50% / 0 0 72px 72px; }
@media (max-width: 640px) { .highlights { padding-bottom: 40px; border-radius: 0 0 50% 50% / 0 0 36px 36px; } }

/* Vision band */
.vision {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--navy-950);
  min-height: 86vh; min-height: 86svh; display: flex; align-items: flex-end;
}
.vision-bg { position: absolute; inset: 0; z-index: -1; }
.vision-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .78; }
.vision-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 34, .55) 0%, rgba(7, 19, 34, .05) 38%, rgba(7, 19, 34, .55) 72%, rgba(7, 19, 34, .96) 100%);
}
.vision-inner { padding-top: 160px; padding-bottom: 88px; }
.vision-eyebrow {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(18px, 2vw, 22px); color: var(--gold-soft);
}
html[data-lang="zh"] .vision-eyebrow { font-family: var(--serif-zh); font-style: normal; letter-spacing: .12em; font-size: 17px; }
.vision-title {
  margin-top: 14px; font-family: var(--display); font-weight: 500;
  font-size: clamp(56px, 10.5vw, 156px); line-height: .94; letter-spacing: -.045em;
  text-wrap: balance;
}
html[data-lang="zh"] .vision-title { font-family: "Noto Sans TC", var(--sans); font-weight: 700; letter-spacing: .02em; line-height: 1.08; font-size: clamp(48px, 8.4vw, 120px); }
.vision-foot {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.vision-text { max-width: 540px; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.vision-motto {
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
@media (max-width: 760px) {
  .vision { min-height: 0; }
  .vision-inner { padding-top: 120px; padding-bottom: 64px; }
  .vision-foot { grid-template-columns: 1fr; gap: 18px; }
  .vision-text { font-size: 16px; }
}

/* "Along the way" photo strip */
.moments { margin-top: 56px; }
.moments-k { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.moments-strip {
  margin-top: 16px; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.moments-strip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.moments-strip figure { margin: 0; flex: none; scroll-snap-align: start; }
.moments-strip img {
  display: block; height: 280px; width: auto; border-radius: var(--radius-sm);
  background: var(--bg-alt); box-shadow: var(--shadow-sm);
}
.moments-strip figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .moments-strip img { height: 220px; } }
.vision-quote { margin: 30px 0 0; max-width: 860px; }
.vision-quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; color: #fff; }
html[data-lang="zh"] .vision-quote p { font-family: var(--serif-zh); font-style: normal; font-size: clamp(20px, 2.2vw, 26px); }
.vision-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }

/* =================== Grouped header menu =================== */
.nav-group { position: relative; }
.nav-top {
  appearance: none; background: none; border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .72);
  padding: 8px 12px; border-radius: 8px; transition: color .2s;
}
.nav-top:hover, .nav-group.open .nav-top, .nav-group.is-current .nav-top, .nav-group.has-active .nav-top { color: #fff; }
.nav-group.is-current .nav-top::after, .nav-group.has-active .nav-top::after {
  content: ""; position: absolute; left: 12px; right: 26px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-caret { opacity: .7; transition: transform .2s var(--ease); }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 5;
  display: flex; flex-direction: column; min-width: 220px; padding: 8px;
  background: rgba(9, 22, 40, .98); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s; }
@media (hover: hover) and (min-width: 861px) {
  .nav-group:hover .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-group:hover .nav-caret { transform: rotate(180deg); }
}
.nav .nav-menu a { padding: 9px 12px; border-radius: 8px; white-space: nowrap; color: rgba(255, 255, 255, .78); font-size: 14px; }
.nav .nav-menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav .nav-menu a[aria-current="page"], .nav .nav-menu a.active { color: var(--gold-soft); background: rgba(201, 163, 91, .1); }
.nav .nav-menu a::after, .nav .nav-menu a[aria-current="page"]::after { display: none; }
@media (max-width: 1100px) and (min-width: 861px) { .nav-top { padding: 8px 9px; font-size: 13.5px; } }

@media (max-width: 860px) {
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-group { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px; border-radius: 0; }
  .nav-group.is-current .nav-top::after, .nav-group.has-active .nav-top::after { display: none; }
  .nav-group.is-current .nav-top, .nav-group.has-active .nav-top { color: var(--gold-soft); }
  .nav-menu {
    position: static; display: none; min-width: 0; padding: 0 0 10px 12px; transform: none;
    opacity: 1; visibility: visible; background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .nav-menu::before { display: none; }
  .nav-group.open .nav-menu { display: flex; transform: none; }
  .nav .nav-menu a { padding: 11px 8px; font-size: 15px; border-bottom: 0; }
}
@media (max-width: 640px) { .nav { max-height: calc(100vh - 64px); } }
/* direct links in the grouped header menu */
.nav a.nav-link { font-size: 14px; }
.nav a.nav-link.is-current { color: #fff; }
.nav a.nav-link.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
@media (max-width: 1100px) and (min-width: 861px) { .nav a.nav-link { padding: 8px 9px; font-size: 13.5px; } }
@media (max-width: 860px) {
  .nav a.nav-link { padding: 14px 4px; font-size: 16px; }
  .nav a.nav-link.is-current { color: var(--gold-soft); }
  .nav a.nav-link.is-current::after { display: none; }
}

/* =================== Split pages (about / ventures) =================== */
.about-short .section-head { position: static; }
.about-short .about-photo { max-width: 340px; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 34px !important; }
.more-link { font-size: 15px; font-weight: 600; color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.more-link:hover { color: var(--ink); }
.ventures.ventures-page { margin-top: 0; }
@media (max-width: 760px) { .about-short .about-photo { max-width: 240px; } }

/* =================== Contact page: booking + message form =================== */
.section-sub { margin-top: 14px; max-width: 620px; font-size: 17px; color: var(--ink-2); }
.page-contact .hero-cta { margin-top: 30px; }
.cal-wrap { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.cal-inline { width: 100%; min-height: 640px; }
.cal-note { padding: 44px 40px; text-align: center; }
.cal-note h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--ink); }
html[data-lang="zh"] .cal-note h3 { font-family: var(--serif-zh); font-size: 24px; }
.cal-note p { margin: 12px auto 24px; max-width: 520px; color: var(--ink-2); }
.cal-note a:not(.btn) { color: var(--gold-ink); }
.cal-note-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.msg-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.msg-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.msg-direct { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.msg-direct a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.msg-direct a:hover { color: var(--gold-ink); }
.msg-direct .cc-label { color: var(--gold-ink); margin-bottom: 4px; }

.msg-form { display: grid; gap: 18px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-label i, .req-note i { font-style: normal; color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 91, .22); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--gold); flex: none; }
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.msg-actions .btn[disabled] { opacity: .6; cursor: progress; }
.req-note { font-size: 13px; color: var(--muted); }
.msg-status { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.6; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); }
.msg-status p + p { margin-top: 6px; }
.msg-status a { color: var(--gold-ink); }
.msg-status.ok { border-color: rgba(46, 139, 87, .45); background: rgba(46, 139, 87, .09); }
.msg-status.warn { border-color: rgba(201, 163, 91, .6); background: rgba(201, 163, 91, .1); }
.contact .contact-book { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

@media (max-width: 900px) {
  .msg-grid { grid-template-columns: 1fr; gap: 36px; }
  .msg-grid .section-head { position: static; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .msg-form { padding: 22px 18px; }
  .cal-note { padding: 32px 20px; }
  .cal-inline { min-height: 560px; }
}

/* Social IDs (WeChat / Xiaohongshu copy buttons, X link) */
.copy-id { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.copy-hint { margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gold-ink); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.msg-direct .copy-id { color: var(--ink); font-weight: 500; }
.msg-direct .copy-id:hover { color: var(--gold-ink); }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; font-size: 15px; }
.social-row a, .social-row .copy-id { color: rgba(255, 255, 255, .78); text-decoration: none; }
.social-row a:hover, .social-row .copy-id:hover { color: #fff; }
.social-row .copy-hint { color: var(--gold); }
.consent a { color: var(--gold-ink); }
.nf-links { padding-top: 72px; }
.case-src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* =================== Clocks =================== */
.tz-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.tz-card { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tz-card.is-me { border-color: rgba(201, 163, 91, .6); }
.tz-place { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tz-place em { font-style: normal; font-weight: 500; color: var(--gold-ink); }
.tz-time { margin-top: 4px; font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tz-day { font-size: 13px; color: var(--muted); }
.tz-tip { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); }
.tz-tip b { color: var(--ink); font-weight: 600; }
.tz-card[hidden] { display: none; }
.tz-strip:has(.tz-card[data-tz=""][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .tz-strip, .tz-strip:has(.tz-card[data-tz=""][hidden]) { grid-template-columns: 1fr; } .tz-time { font-size: 28px; } }

.mk-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 22px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); font-size: 14px; color: rgba(255, 255, 255, .78); }
.mk-status b { color: #fff; font-weight: 600; }
.mk-status-times { font-variant-numeric: tabular-nums; }
.mk-dot { width: 9px; height: 9px; border-radius: 50%; background: #7c8a9c; flex: none; }
.mk-status.is-open .mk-dot { background: #3fbf7f; box-shadow: 0 0 0 4px rgba(63, 191, 127, .22); animation: mkpulse 2s ease-in-out infinite; }
.mk-status.is-pre .mk-dot, .mk-status.is-post .mk-dot, .mk-status.is-lunch .mk-dot { background: var(--gold); }
@keyframes mkpulse { 50% { box-shadow: 0 0 0 7px rgba(63, 191, 127, 0); } }

/* =================== 简体中文 view =================== */
html[data-script="sc"] {
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Noto Serif TC", Georgia, serif;
  --serif-zh: "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Noto Serif TC", serif;
}
html.sc-pending body { visibility: hidden; }
.lang-toggle button { min-width: 34px; padding: 5px 10px; }
@media (max-width: 640px) { .lang-toggle button { min-width: 30px; padding: 5px 8px; font-size: 12.5px; } }

/* Page photos behind the titles (assets/hero, see credits.json) */
.p-hero .hero-photo img { opacity: .85; }
.p-hero .hero-photo::after {
  background:
    linear-gradient(90deg, rgba(7, 19, 34, .92) 0%, rgba(7, 19, 34, .72) 40%, rgba(7, 19, 34, .25) 75%, rgba(7, 19, 34, .1) 100%),
    linear-gradient(180deg, rgba(7, 19, 34, .55) 0%, transparent 30%, transparent 72%, rgba(7, 19, 34, .7) 100%);
}
@media (max-width: 760px) {
  .p-hero .hero-photo::after { background: linear-gradient(180deg, rgba(7, 19, 34, .7) 0%, rgba(7, 19, 34, .78) 55%, rgba(7, 19, 34, .9) 100%); }
}
.hero-credit {
  position: absolute; right: 16px; bottom: 10px; z-index: 1; max-width: calc(100% - 32px);
  font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .5); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-credit:hover { color: rgba(255, 255, 255, .85); text-decoration: underline; }
.pillar-media { position: relative; }
.pillar-credit {
  position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 16px); padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; line-height: 1.4; color: rgba(255, 255, 255, .85); background: rgba(7, 19, 34, .55);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pillar-credit:hover { text-decoration: underline; }

/* ---------- Game entry points (home) ---------- */
.hero-game {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 10px 16px 10px 10px;
  border-radius: 999px; border: 1px solid rgba(226, 200, 143, .45); background: rgba(7, 19, 34, .55); backdrop-filter: blur(6px);
  color: #fff; font-size: 14.5px; text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.hero-game:hover { border-color: var(--gold-soft); background: rgba(201, 163, 91, .18); transform: translateY(-1px); }
.hero-game b { color: var(--gold-soft); font-weight: 600; }
.hero-game-new { padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.game-promo { background: linear-gradient(180deg, #0b1d33, #071322); color: #fff; }
.game-promo-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.game-promo-shot { display: block; border-radius: 22px; overflow: hidden; border: 1px solid rgba(226, 200, 143, .3); box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.game-promo-shot:hover { transform: translateY(-4px) rotate(-.4deg); }
.game-promo-shot img { display: block; width: 100%; height: auto; }
.game-promo .kicker { color: var(--gold); }
.game-promo .section-title { color: #fff; }
.game-promo-text { color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.75; margin: 0 0 28px; }
@media (max-width: 860px) {
  .game-promo-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-game { font-size: 13.5px; }
}

/* ---------- Listing readiness check ---------- */
.rc-form { max-width: 820px; margin: 0 auto; }
.rc-list { list-style: decimal; padding-left: 1.4em; display: grid; gap: 18px; }
.rc-q { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rc-q::marker { color: var(--gold-ink); font-weight: 700; }
.rc-text { font-weight: 600; color: var(--ink); }
.rc-opts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.rc-opt { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px; }
.rc-opt:has(input:checked) { border-color: var(--gold); background: rgba(201, 163, 91, .12); }
.rc-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.rc-reset { border-color: var(--line); color: var(--ink); background: transparent; }
.rc-result { max-width: 820px; margin: 40px auto 0; padding: 28px; border-radius: 16px; border: 1px solid var(--gold); background: rgba(201, 163, 91, .06); }
.rc-score { font-size: 56px; font-weight: 700; color: var(--ink); line-height: 1.1; margin-top: 8px; }
.rc-score span { font-size: 22px; color: var(--muted); }
.rc-level { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.rc-miss { margin-top: 6px; color: var(--muted); font-size: 14px; }
.rc-result h3 { margin-top: 22px; font-size: 18px; }
.rc-result ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.rc-result .hero-cta { margin-top: 24px; }
.rc-note { max-width: 820px; margin: 28px auto 0; font-size: 13px; color: var(--muted); }
.app-mode .nav, .app-mode .menu-btn, .app-mode .footer-nav, .app-mode .hero-photo-credit { display: none !important; }
.app-mode .app-hero { min-height: 100svh; display: flex; align-items: center; padding-top: 90px; padding-bottom: 48px; }
.rc-profile { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 20px; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; background: #fff; }
.rc-profile legend { padding: 0 6px; font-weight: 600; color: var(--ink); font-size: 15px; }
.rc-profile label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.rc-profile input, .rc-profile select { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
@media (max-width: 720px) { .rc-profile { grid-template-columns: 1fr; } }
.rc-dims { margin-top: 20px; display: grid; gap: 8px; }
.rc-dim { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 44px; gap: 12px; align-items: center; font-size: 14px; }
.rc-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rc-bar > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.rc-dim-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-pay { margin-top: 28px; padding: 22px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.rc-pay h3 { margin-top: 0 !important; }
.rc-incl li::marker { content: "✓  "; color: var(--gold-ink); }
.rc-report h2 { font-size: 28px; margin-top: 6px; }
.rc-report > h3 { margin-top: 34px !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px !important; }
.rc-gap { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); break-inside: avoid; }
.rc-gap h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.rc-gap p { margin-top: 8px; color: var(--ink-2); }
.rc-gap ol { margin-top: 8px; padding-left: 1.3em; display: grid; gap: 4px; }
.rc-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 13px; }
.rc-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-ink); }
.rc-time { font-size: 14px; color: var(--muted) !important; }
.rc-tl { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 12px; }
.rc-tl > li { padding: 12px 16px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; break-inside: avoid; }
.rc-tl h4 { font-size: 16px; }
.rc-mine { font-weight: 600; color: var(--gold-ink); }
.rc-venue { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; break-inside: avoid; }
.rc-venue h4 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 17px; }
.rc-fit { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.rc-fit-good { background: #e3f3e8; color: #1d6b3a; }
.rc-fit-maybe { background: #fbf1dc; color: #8a5a00; }
.rc-fit-hard { background: #f6e3e3; color: #8f2a2a; }
.rc-docs { list-style: none !important; padding-left: 0 !important; }
.rc-docs label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
@media print {
  .rc-has-report .p-hero, .rc-has-report .section-head, .rc-has-report #rc-form, .rc-has-report .rc-noprint,
  .rc-has-report .footer, .rc-has-report .hero-photo-credit, .rc-has-report .rc-note:not(.rc-report .rc-note) { display: none !important; }
  .rc-has-report .section { padding: 0 !important; }
  .rc-result { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rc-has-report .rc-result { border: 0; margin: 0; padding: 0; background: #fff; }
}

/* —— Mark Six quant desk —— */
.ms-hero-note { margin-top: 18px; max-width: 46rem; font-size: 14px; color: rgba(255,255,255,.72); }
.ms-verdict { padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: #fff; border-radius: 4px 12px 12px 4px; }
.ms-verdict-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.ms-verdict p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.ms-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 28px 0 8px; }
.ms-stat { padding: 16px 18px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.ms-stat-k { margin: 0; font-size: 13px; color: var(--muted); }
.ms-stat-v { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ms-tables { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.ms-tables-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ms-desk .ms-verdict { margin-bottom: 18px; }
.ms-desk .section-sub { margin: 0 0 14px; color: var(--muted); }
.ms-table-wrap { padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ms-table-wrap h3 { margin: 0 0 12px; font-size: 16px; }
.ms-scroll { overflow-x: auto; }
.ms-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ms-table th, .ms-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ms-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.ms-lanes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ms-lane, .ms-lane-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ms-lane-k { margin: 0 0 8px; font-family: ui-monospace, Menlo, monospace; color: var(--gold-ink); }
.ms-gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, #fff 0%, #f7f4ec 100%); }
.ms-gate ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.ms-price { margin-top: 16px; font-size: 22px; font-weight: 700; color: var(--ink); }
.ms-pass-form { margin-top: 18px; display: grid; gap: 8px; }
.ms-pass-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ms-pass-row input { flex: 1 1 160px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.ms-pass-hint, .ms-pass-err, .ms-note { font-size: 13px; color: var(--muted); }
.ms-pass-err { color: #8f2a2a; }
.ms-locked { margin-top: 28px; }
.ms-blur { position: relative; padding: 40px 24px; border-radius: 16px; border: 1px dashed var(--line); text-align: center; background: repeating-linear-gradient(-45deg, #fafafa, #fafafa 8px, #f3f3f3 8px, #f3f3f3 16px); }
.ms-balls { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ms-ball { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: #5a6a78; }
.ms-ball.ms-red { background: #c0392b; }
.ms-ball.ms-blue { background: #2471a3; }
.ms-ball.ms-green { background: #1e8449; }
.ms-balls.fake .ms-ball, .ms-balls.fake > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #cfd6dc; color: #6a7782; font-weight: 700; }
.ms-desk { margin-top: 28px; display: grid; gap: 22px; }
/* Prefer attribute hide over .ms-desk { display:grid } so gated content stays invisible until unlock */
.ms-desk[hidden],
.ms-locked[hidden],
.ms-gate[hidden],
.fa-mod[hidden],
#ch-out[hidden],
.ch-loading[hidden] {
  display: none !important;
}
.ms-desk-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ch-loading {
  margin: 18px 0;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #0b1d33 0%, #1a334f 100%);
  color: #f7f4ec;
  text-align: center;
}
.ch-loading-spin {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border: 3px solid rgba(247,244,236,.25);
  border-top-color: #c9a35b;
  border-radius: 50%;
  animation: ch-spin 0.85s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }
.ch-loading-title { margin: 0 0 8px; font-size: 18px; }
.ch-loading-steps { margin: 12px auto 0; max-width: 46ch; text-align: left; font-size: 13px; color: rgba(247,244,236,.78); display: grid; gap: 6px; list-style: none; padding: 0; }
.ch-loading-steps li.is-on { color: #f7f4ec; font-weight: 600; }
.ch-years { display: grid; gap: 10px; margin-top: 10px; }
.ch-year-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ch-year-row.good { border-color: #9bbfad; background: #f3faf6; }
.ch-year-row.caution { border-color: #d4b48a; background: #fbf6ee; }
.ch-year-row.hard { border-color: #d2a0a0; background: #fbf3f3; }
.ch-celeb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ch-celeb-btn { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.ch-celeb-btn:hover { border-color: var(--gold); }
.ch-celeb-btn small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .ch-celeb-grid, .ch-year-row { grid-template-columns: 1fr; }
}
.ms-block { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ms-block h3 { margin: 0 0 14px; font-size: 18px; }
.ms-block h4 { margin: 16px 0 8px; font-size: 15px; }
.ms-pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.ms-pillars div, .ms-ziwei-grid div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }
.ms-pillars small, .ms-ziwei-grid small { display: block; color: var(--muted); font-size: 12px; }
.ms-ziwei-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.ms-live-card { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ms-live-h { font-weight: 700; margin: 0 0 8px; }
.ms-arch-btn { margin: 0 8px 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.ms-arch-btn:hover { border-color: var(--gold); }
.ms-natal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.ms-natal-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.ms-natal-form input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.ms-natal-form .ms-span-2 { grid-column: 1 / -1; }
.ms-form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ms-subh { margin-top: 22px !important; }
.ms-natal-line { margin: 0 0 8px; color: var(--ink-2); }
.ms-lane-why { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.ms-draw-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ms-draw-meta { min-width: 11rem; color: var(--ink-2); font-size: 14px; }
.ch-pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 16px; }
.ch-pillar { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }
.ch-pillar-lab { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ch-pillar-hid { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ms-method-note { font-size: 13px; color: var(--muted); max-width: 70ch; }
.ch-astro-list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.ch-read-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ch-read-card:last-child { border-bottom: 0; }
.ch-read-card h4 { margin: 0 0 6px; font-size: 16px; }
.ch-read-card p { margin: 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 900px) {
  .ms-stat-grid, .ms-tables, .ms-lanes, .ms-gate, .ms-ziwei-grid, .ms-natal-form, .ch-pillar-grid { grid-template-columns: 1fr; }
  .ms-pillars { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* —— Filings academy —— */
.fa-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.fa-toc { position: sticky; top: 88px; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f3; }
.fa-toc-title { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fa-toc-btn { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; cursor: pointer; color: var(--ink-2); }
.fa-toc-btn:hover { background: #fff; }
.fa-toc-btn.is-active { background: #0b1d33; color: #f7f4ec; }
.fa-modules { min-width: 0; }
.fa-mod h3 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); }
.fa-mod h4 { margin: 22px 0 10px; font-size: 18px; }
.fa-mod h5 { margin: 0 0 6px; font-size: 15px; }
.fa-mod > p { color: var(--ink-2); max-width: 72ch; }
.fa-list { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); max-width: 72ch; }
.fa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.fa-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fa-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.fa-figure { margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto; }
.fa-figure svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.fa-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.fa-tv { margin: 16px 0; min-height: 720px; height: min(78vh, 820px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.fa-tv .tradingview-widget-container,
.fa-tv .tradingview-widget-container__widget { height: 100% !important; min-height: 720px; }

/* —— Paper trading desk —— */
.pp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
.pp-kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pp-kpi span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pp-kpi strong { font-size: 20px; }
.pp-kpi.up strong { color: #1e7a4a; }
.pp-kpi.down strong { color: #a33; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pp-chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; }
.pp-chip:hover { border-color: var(--gold); }
.pp-trade-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pp-trade-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pp-trade-form input, .pp-trade-form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.pp-trade-form .ms-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pp-tv { margin-top: 8px; min-height: 640px; height: min(70vh, 760px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pp-tv .tradingview-widget-container,
.pp-tv .tradingview-widget-container__widget { height: 100% !important; min-height: 640px; }
.pp-table-wrap { overflow-x: auto; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table th, .pp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pp-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.pp-table .up { color: #1e7a4a; }
.pp-table .down { color: #a33; }
@media (max-width: 900px) {
  .pp-summary, .pp-trade-form { grid-template-columns: 1fr 1fr; }
  .fa-tv, .pp-tv { min-height: 520px; height: 62vh; }
  .fa-tv .tradingview-widget-container__widget,
  .pp-tv .tradingview-widget-container__widget { min-height: 520px; }
}
@media (max-width: 560px) {
  .pp-summary, .pp-trade-form { grid-template-columns: 1fr; }
}

/* —— AI desk / ask board —— */
.ai-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(201,163,91,.16), transparent 55%),
    linear-gradient(165deg, #0c1a2c 0%, #13253b 48%, #0a1524 100%);
  color: #e8eef6;
  box-shadow: 0 18px 50px rgba(11, 29, 51, .18);
}
.ai-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.ai-status { font-size: 13px; color: rgba(232,238,246,.72); }
.ai-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ai-chip {
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
  color: rgba(232,238,246,.88); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 12px; cursor: pointer;
}
.ai-chip:hover { border-color: rgba(212,175,55,.55); color: #fff; }
.ai-board {
  min-height: 420px; max-height: min(62vh, 640px); overflow-y: auto;
  padding: 18px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.55;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 100% 28px;
}
.ai-msg { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin-bottom: 14px; }
.ai-role {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-soft); padding-top: 4px;
}
.ai-msg-user .ai-role { color: #9ec3ff; }
.ai-msg-sys .ai-role { color: rgba(232,238,246,.5); }
.ai-bubble {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  white-space: normal; word-break: break-word;
}
.ai-msg-user .ai-bubble { background: rgba(158,195,255,.1); border-color: rgba(158,195,255,.22); }
.ai-composer {
  display: grid; gap: 10px; padding: 14px 16px 8px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
}
.ai-composer textarea {
  width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28); color: #fff; font: inherit; line-height: 1.45;
}
.ai-composer-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-shell .ms-note { margin: 0; padding: 0 16px 16px; color: rgba(232,238,246,.55); font-size: 12px; }
@media (max-width: 900px) {
  .ai-msg { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .ai-board { min-height: 320px; }
}

@media (max-width: 900px) {
  .fa-layout, .fa-grid-2 { grid-template-columns: 1fr; }
  .fa-toc { position: static; grid-template-columns: 1fr 1fr; }
}

/* —— Sites showcase —— */
.sites-list { display: grid; gap: 18px; margin-top: 28px; }
.site-row {
  padding: 28px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201,163,91,.06), transparent 42%);
}
.site-row:first-child { border-top: 0; }
.site-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.site-copy h3 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.site-copy > p { margin-top: 10px; max-width: 62ch; color: var(--ink-2); }
.site-url {
  margin-top: 8px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--muted) !important;
}
.site-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.site-subs {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.site-subs a {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-subs a:hover { border-color: var(--gold); color: var(--gold-ink); }
@media (max-width: 720px) {
  .site-row { padding: 22px 0; background: none; }
}
