:root {
  --wine: #641e32;
  --wine-deep: #32131d;
  --wine-bright: #8a2948;
  --brass: #c9a96b;
  --ink: #201a1c;
  --muted: #6f6769;
  --paper: #f4f0e9;
  --paper-deep: #e8e1d7;
  --line: #d4cbc0;
  --white: #fffdf9;
  --success: #3f765b;
  --danger: #a14848;
  --sans: "Aptos", "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #170f12 0, #170f12 520px, var(--paper) 520px),
    var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(100, 30, 50, .18); color: #1c1014; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #1a0008;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 3;
  min-height: 76px;
  padding: env(safe-area-inset-top) clamp(22px, 4vw, 64px) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  background: #170f12;
  color: #fff;
}
.wordmark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: -.02em;
}
.wordmark strong { font-weight: 800; }
.wordmark-mark { width: 40px; height: 29px; flex: 0 0 auto; }
.wordmark-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-header nav { min-height: 48px; display: flex; align-items: center; gap: 22px; font-size: 11px; font-weight: 680; letter-spacing: .025em; }
.site-header nav a { color: rgba(255, 255, 255, .68); transition: color 150ms ease; }
.site-header nav a:hover { color: #fff; }
.site-header nav span { color: var(--brass); }

main { overflow: clip; }
.pulse-hero {
  position: relative;
  min-height: 440px;
  padding: clamp(68px, 9vw, 118px) clamp(22px, 4vw, 64px) clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  align-items: end;
  gap: clamp(42px, 8vw, 120px);
  isolation: isolate;
  color: #fff;
}
.pulse-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/cre/assets/cre/markets-hong-kong.webp") center 46% / cover no-repeat;
  filter: saturate(.72);
}
.pulse-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(19, 11, 14, .95) 0%, rgba(19, 11, 14, .72) 43%, rgba(19, 11, 14, .52) 100%),
    linear-gradient(0deg, rgba(19, 11, 14, .94), transparent 68%);
}
.eyebrow, .section-kicker {
  margin: 0 0 13px;
  color: var(--brass);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { margin-inline: 8px; color: rgba(255, 255, 255, .44); }
h1 {
  margin: 0;
  font-size: clamp(58px, 8.3vw, 124px);
  font-weight: 780;
  line-height: .84;
  letter-spacing: -.075em;
}
h1 em { color: var(--brass); font-style: normal; font-weight: 260; }
.lede {
  max-width: 760px;
  margin: 30px 0 0;
  padding-left: 18px;
  border-left: 1px solid rgba(201, 169, 107, .7);
  color: rgba(255, 255, 255, .8);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: -.015em;
}
.hero-utility {
  align-self: end;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.feed-status { display: grid; grid-template-columns: 10px 1fr; gap: 3px 9px; align-items: center; font-size: 12px; }
.feed-status time { grid-column: 2; color: rgba(255, 255, 255, .56); font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9e8e93; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.status-dot.is-live { background: #68ae85; box-shadow: 0 0 0 4px rgba(104, 174, 133, .13); }
.status-dot.is-error { background: #d26d6d; box-shadow: 0 0 0 4px rgba(210, 109, 109, .13); }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions button, .hero-actions a {
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 11px;
  font-weight: 720;
  transition: background 150ms ease, border-color 150ms ease;
}
.hero-actions button:hover, .hero-actions a:hover { border-color: var(--brass); background: rgba(100, 30, 50, .58); }
.hero-actions button:disabled { cursor: wait; opacity: .55; }

.candidate-notice {
  margin: 0 clamp(22px, 4vw, 64px);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  transform: translateY(-1px);
  border-top: 3px solid var(--brass);
  background: var(--wine-deep);
  color: #fff;
  box-shadow: 0 16px 40px rgba(30, 16, 21, .16);
}
.candidate-notice strong { color: var(--brass); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.candidate-notice p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 12px; }

.brief-section, .signals-section {
  width: min(1500px, calc(100% - clamp(44px, 8vw, 128px)));
  margin-inline: auto;
}
.brief-section { padding: clamp(64px, 8vw, 104px) 0 clamp(66px, 8vw, 106px); }
.signals-section { padding: clamp(62px, 7vw, 92px) 0 110px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-kicker { margin-bottom: 7px; color: var(--wine-bright); }
h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 650; line-height: 1; letter-spacing: -.055em; }
.section-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; }
.ai-label { padding: 5px 8px; border: 1px solid rgba(100, 30, 50, .3); color: var(--wine); font-size: 8px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.brief-grid {
  min-height: 166px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.brief-lens { min-width: 0; background: var(--paper); }
.brief-lens > h3 {
  margin: 0;
  padding: 15px clamp(18px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  color: var(--wine);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.brief-lens-list { min-width: 0; }
.brief-item { position: relative; min-width: 0; padding: 24px clamp(18px, 2vw, 28px) 25px; }
.brief-item + .brief-item { border-top: 1px solid var(--line); }
.brief-item h4 { margin: 0 0 10px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 680; line-height: 1.16; letter-spacing: -.03em; }
.brief-summary { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.brief-links { margin: 17px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.brief-links a { display: block; padding: 4px 7px; border: 1px solid rgba(100, 30, 50, .25); color: var(--wine); font-size: 8px; font-weight: 740; letter-spacing: .035em; text-transform: uppercase; }
.brief-links a:hover { border-color: var(--wine); background: rgba(100, 30, 50, .05); }
.brief-item::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 3px; background: var(--wine); }
.loading-state, .empty-state, .error-state { grid-column: 1 / -1; margin: 0; padding: 34px 0; color: var(--muted); font-size: 13px; }
.brief-grid > .loading-state, .brief-grid > .empty-state, .brief-grid > .error-state { padding-inline: 22px; background: var(--paper); }
.error-state { color: var(--danger); }

.signal-total { margin: 0; color: var(--muted); font-size: 11px; }
.signal-workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(34px, 5vw, 76px); align-items: start; }
.filters { position: sticky; top: 24px; min-width: 0; }
.filter-block { margin: 0 0 25px; padding: 0; border: 0; }
.filter-block label, .filter-block legend { display: block; margin: 0 0 9px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.filter-block input, .filter-block select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}
.filter-block input::placeholder { color: #988f91; }
.asset-filter { display: grid; gap: 2px; }
.asset-filter legend { margin-bottom: 8px; }
.asset-filter button {
  position: relative;
  min-height: 42px;
  padding: 8px 28px 8px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  transition: background 140ms ease, color 140ms ease;
}
.asset-filter button::after { content: "+"; position: absolute; right: 10px; color: #9b8f91; }
.asset-filter button:hover { background: rgba(100, 30, 50, .05); color: var(--wine); }
.asset-filter button.is-active { background: var(--wine); color: #fff; font-weight: 680; }
.asset-filter button.is-active::after { content: "—"; color: var(--brass); }
.methodology { padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.methodology summary { min-height: 40px; display: flex; align-items: center; color: var(--wine); cursor: pointer; font-weight: 680; }
.methodology p { margin: 8px 0 0; line-height: 1.55; }

.signal-results { min-width: 0; }
.results-toolbar { min-height: 45px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ink); }
.results-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.results-toolbar button { min-height: 40px; padding: 8px 10px; border: 0; background: transparent; color: var(--wine); font-size: 10px; font-weight: 720; }
.signal-list { min-height: 240px; }
.signal-item {
  position: relative;
  padding: 23px 6px 24px;
  display: grid;
  grid-template-columns: minmax(110px, .2fr) minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.signal-item::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--wine); transition: width 180ms ease; }
.signal-item:hover::before { width: 100%; }
.signal-meta { min-width: 0; display: grid; gap: 5px; }
.signal-meta time { color: var(--muted); font-size: 10px; }
.signal-source { overflow: hidden; color: var(--wine-bright); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.signal-copy { min-width: 0; }
.signal-copy h3 { margin: 0; font-size: clamp(16px, 1.45vw, 21px); font-weight: 620; line-height: 1.3; letter-spacing: -.025em; }
.signal-copy h3 a { background-image: linear-gradient(var(--wine), var(--wine)); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: color 150ms ease, background-size 180ms ease; }
.signal-copy h3 a:hover { color: var(--wine); background-size: 100% 1px; }
.signal-summary { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.signal-tags { width: min(220px, 22vw); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.tag.is-event { border-color: rgba(100, 30, 50, .25); color: var(--wine); }
.load-more {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.load-more:hover { background: var(--wine); color: #fff; }
.load-more:disabled { cursor: wait; opacity: .58; }
.load-more[hidden] { display: none; }
.scroll-status { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

footer {
  min-height: 100px;
  padding: 24px clamp(22px, 4vw, 64px) calc(24px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  background: #170f12;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
}
footer p { max-width: 720px; margin: 0; }
footer div { display: flex; gap: 18px; }
footer a { color: rgba(255, 255, 255, .84); font-weight: 700; }
.noscript-note { position: fixed; right: 14px; bottom: 14px; z-index: 10; max-width: 420px; padding: 16px; border: 1px solid var(--brass); background: #fff; color: var(--ink); font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.noscript-note a { color: var(--wine); text-decoration: underline; }

@media (max-width: 1100px) {
  .pulse-hero { grid-template-columns: 1fr; gap: 42px; }
  .hero-utility { max-width: 560px; }
  .signal-item { grid-template-columns: minmax(90px, .18fr) minmax(0, 1fr); }
  .signal-tags { grid-column: 2; width: auto; justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { background: linear-gradient(180deg, #170f12 0, #170f12 620px, var(--paper) 620px); }
  .site-header { min-height: 62px; padding-inline: 15px; gap: 12px; }
  .wordmark { gap: 8px; font-size: 13px; }
  .wordmark-mark { width: 35px; height: 25px; }
  .site-header nav { gap: 13px; font-size: 9px; }
  .pulse-hero { min-height: 490px; padding: 72px 15px 48px; }
  .pulse-hero::before { background-position: 60% 48%; }
  .pulse-hero::after { background: linear-gradient(90deg, rgba(19, 11, 14, .94), rgba(19, 11, 14, .62)), linear-gradient(0deg, rgba(19, 11, 14, .96), transparent 72%); }
  h1 { font-size: clamp(54px, 19vw, 82px); }
  h1 em { display: block; }
  .lede { margin-top: 24px; font-size: 16px; }
  .candidate-notice { margin-inline: 15px; padding: 16px; grid-template-columns: 1fr; gap: 6px; }
  .brief-section, .signals-section { width: calc(100% - 30px); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .signal-total { text-align: left; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-lens + .brief-lens { border-top: 1px solid var(--ink); }
  .signal-workspace { grid-template-columns: 1fr; gap: 38px; }
  .filters { position: static; }
  .asset-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .asset-filter legend { grid-column: 1 / -1; }
  .asset-filter button { border: 1px solid var(--line); }
  .signal-item { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; }
  .signal-meta { display: flex; align-items: center; gap: 8px; }
  .signal-source { max-width: 62vw; }
  .signal-tags { grid-column: 1; }
  footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 430px) {
  .site-header nav a { display: none; }
  .asset-filter { grid-template-columns: 1fr; }
  .asset-filter legend { grid-column: 1; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions button, .hero-actions a { padding-inline: 10px; text-align: center; }
}

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