/* =========================================================================
   Hero variants — three completely different directions.
   ========================================================================= */

/* --- Variant styling shared --- */
.heroes { position: relative; }
.hero__page {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--site-gutter) 120px;
  display: none;
}
.hero__page.is-active { display: block; }

/* =========================================================================
   HERO A — "Quiet returns in loud markets"
   Editorial kinetic. Giant Fraunces italic. Hex field in background.
   ========================================================================= */
.heroA {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  min-height: calc(100vh - 140px);
  position: relative;
}
/* ZH text block is shorter than EN — bottom-aligning leaves a visible gap under
   the nav. Shift the inner columns up without resizing .heroA itself, so the
   hex-field canvas (which is absolutely-positioned to this box) stays the same
   size and cursor mapping remains correct. */
html[data-lang="zh"] .heroA__left,
html[data-lang="zh"] .heroA__right {
  transform: translateY(-80px);
}
.heroA__hex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.heroA__hex canvas { width: 100%; height: 100%; display: block; }

.heroA__left { position: relative; z-index: 2; }
.heroA__right { position: relative; z-index: 2; }

.heroA__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ember-500);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.heroA__eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--ember-500);
}

.heroA__line {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(60px, 10vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  display: block;
  margin: 0;
  text-wrap: balance;
}
.heroA__line--italic {
  font-style: italic;
  color: var(--ember-500);
}
html[data-lang="zh"] .heroA__line {
  font-family: var(--font-display-zh);
  font-weight: 700;
  font-size: clamp(54px, 8vw, 140px);
  letter-spacing: 0.01em;
  line-height: 1.05;
}
html[data-lang="zh"] .heroA__line--italic {
  font-style: normal;
  color: var(--ember-500);
}

.heroA__lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ink-700);
  max-width: 32em;
  margin-top: 40px;
  text-wrap: pretty;
}
html[data-lang="zh"] .heroA__lede { font-family: var(--font-body-zh); }

.heroA__actions {
  margin-top: 40px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* floating data card on the right */
.heroA__card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(51,51,51,0.1);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(28,28,30,0.08), 0 4px 12px rgba(28,28,30,0.04);
  position: relative;
  overflow: hidden;
}
.heroA__card::before {
  content: ''; position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(85,214,194,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.heroA__cardLabel {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.heroA__cardValue {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 112px);
  font-weight: 400;
  line-height: 0.9;
  color: var(--mint-600);
  letter-spacing: -0.03em;
}
.heroA__cardCaption {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 14px;
  line-height: 1.55;
}

/* small stat strip below the card */
.heroA__strip {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(51,51,51,0.14);
  border-top: 1px solid rgba(51,51,51,0.14);
  border-bottom: 1px solid rgba(51,51,51,0.14);
}
.heroA__stripItem {
  padding: 20px 16px;
  background: var(--cream-200);
  text-align: left;
}
.heroA__stripValue {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1;
}
.heroA__stripLabel {
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Kinetic reveal for the lines */
.heroA__line .kinetic__char {
  opacity: 0;
  transform: translateY(1.2em) rotateX(-80deg);
  transform-origin: 50% 100%;
  transition: transform 1s var(--ease-out), opacity 0.8s var(--ease-out);
}
.heroA__line.is-in .kinetic__char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}


/* =========================================================================
   HERO B — "A compass, not a forecast"
   Minimal. Massive type. Interactive compass that follows cursor.
   ========================================================================= */
.heroB {
  min-height: calc(100vh - 140px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.heroB__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.heroB__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ember-500);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.heroB__eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 1px; background: var(--ember-500);
}
.heroB__title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin: 0;
  text-wrap: balance;
}
.heroB__title em {
  font-style: italic;
  color: var(--ember-500);
}
html[data-lang="zh"] .heroB__title {
  font-family: var(--font-display-zh);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 132px);
  letter-spacing: 0.01em;
  line-height: 1.08;
}
.heroB__lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ink-700);
  max-width: 30em;
  margin-top: 36px;
}
html[data-lang="zh"] .heroB__lede { font-family: var(--font-body-zh); }

.heroB__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* The compass — SVG we'll animate via JS */
.heroB__compass {
  aspect-ratio: 1 / 1;
  position: relative;
}
.heroB__compass svg {
  width: 100%; height: 100%;
  overflow: visible;
}

/* =========================================================================
   HERO C — "23%"
   Data-first. The number IS the hero.
   ========================================================================= */
.heroC {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 40px;
}
.heroC__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(51,51,51,0.14);
}
.heroC__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ember-500);
}
.heroC__date {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-500);
}

.heroC__stage {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 40px 0;
}
.heroC__stat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(200px, 38vw, 600px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--ink-900);
  position: relative;
  z-index: 2;
  user-select: none;
}
.heroC__stat .heroC__sign {
  color: var(--mint-600);
  display: inline-block;
}
.heroC__stat .heroC__pct {
  font-size: 0.55em;
  color: var(--ink-500);
  vertical-align: 0.22em;
  margin-left: 0.02em;
}
.heroC__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.heroC__orbit svg { width: 100%; height: 100%; overflow: visible; }

.heroC__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(51,51,51,0.14);
  align-items: start;
}
.heroC__caption {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 30em;
}
html[data-lang="zh"] .heroC__caption { font-family: var(--font-body-zh); }

.heroC__side {
  text-align: right;
}
.heroC__sideLabel {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
}
.heroC__sideVal {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.heroC__sideVal--ember { color: var(--ember-500); }

@media (max-width: 900px) {
  .heroA { grid-template-columns: 1fr; gap: 48px; }
  .heroB__layout { grid-template-columns: 1fr; gap: 48px; }
  .heroB__compass { max-width: 320px; margin: 0 auto; }
  .heroC__bottom { grid-template-columns: 1fr; gap: 32px; }
  .heroC__side { text-align: left; }
}
