/* HENG / 衡记 — local-first iOS product case study.
   Palette and type follow the shipped app: Forest Paper, 衡 seal, Instrument Sans. */

.heng-case {
  --hg-paper: #f4f3ee;
  --hg-paper-deep: #eae8e0;
  --hg-ink: #0b1f1a;
  --hg-muted: #57655d;
  --hg-forest: #0b5b47;
  --hg-forest-soft: #dcebe3;
  --hg-mint: #cdeee1;
  --hg-copper: #8a5a32;
  --hg-copper-bright: #d9a97c;
  --hg-rule: rgba(11, 31, 26, 0.16);
  --hg-rule-strong: rgba(11, 31, 26, 0.4);
  --hg-on-dark: #f4f3ee;
  --hg-dark-surface: #0b1f1a;
  --hg-dark-raised: #102a22;
  --hg-display: 'Instrument Sans', 'Noto Sans SC', var(--font-cjk);
  --hg-serif: 'Playfair Display', Georgia, 'Songti SC', var(--font-cjk);
  --hg-mono: 'JetBrains Mono', 'SF Mono', var(--font-cjk);
  background: var(--hg-paper);
  color: var(--hg-ink);
  font-family: var(--hg-display);
}

.heng-case [data-lang="zh"] { display: none; }
[data-case-lang="zh"] .heng-case [data-lang="en"] { display: none; }
[data-case-lang="zh"] .heng-case [data-lang="zh"] { display: inline; }
[data-case-lang="zh"] .heng-case h1,
[data-case-lang="zh"] .heng-case h2,
[data-case-lang="zh"] .heng-case h3,
[data-case-lang="zh"] .heng-case p,
[data-case-lang="zh"] .heng-case li { text-wrap: pretty; }

.heng-case main { overflow: clip; }
.heng-case .altn-project-nav-shell {
  --text: var(--hg-ink);
  --muted: var(--hg-muted);
  --surface: var(--hg-paper);
  --border: var(--hg-rule);
  --accent: var(--hg-forest);
  --accent-strong: var(--hg-forest);
}

/* ── Header on paper ── */
.heng-case nav {
  min-height: 64px;
  padding: 0 clamp(24px, 3.5vw, 56px);
  border-bottom: 1px solid rgba(11, 31, 26, 0.12);
  background: rgba(244, 243, 238, 0.93);
  color: var(--hg-ink);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.heng-case nav .logo,
.heng-case nav .nav-links a,
.heng-case nav .nav-links a.active { color: var(--hg-ink); }
.heng-case nav .logo .logo-dot { background: var(--hg-forest); }
.heng-case nav .nav-links a::after { background: var(--hg-forest); }
.heng-case nav .site-language-select,
.heng-case nav .mode-toggle,
.heng-case nav .mobile-menu-btn { color: var(--hg-ink); }
.heng-case nav .language-toggle:hover,
.heng-case nav .mode-toggle:hover { color: var(--hg-forest); }
.heng-case .mobile-menu-overlay {
  background: var(--hg-paper);
  color: var(--hg-ink);
}
.heng-case .mobile-menu-overlay .mm-link { color: var(--hg-ink); }
.heng-case .mobile-menu-overlay .mm-link.active { color: var(--hg-forest); }
.heng-case .mobile-menu-overlay .mm-num { color: var(--hg-copper); }
.heng-case .mobile-menu-overlay .mm-link.active .logo-dot { background: var(--hg-forest); }
.heng-case .mobile-menu-overlay .site-language-select {
  color: var(--hg-ink);
  border-color: rgba(11, 31, 26, 0.3);
  background: transparent;
}

.heng-case .skip-link {
  border-color: var(--hg-forest);
  background: var(--hg-paper);
  color: var(--hg-ink);
}

/* ── Reading aids ── */
.hg-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 220;
  height: 3px;
  pointer-events: none;
}
.hg-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hg-copper);
  transform: scaleX(0);
  transform-origin: left;
}

.hg-rail {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 7px;
  border: 1px solid rgba(11, 31, 26, 0.16);
  border-radius: var(--radius-control);
  background: rgba(244, 243, 238, 0.94);
  color: var(--hg-muted);
  font: 13px var(--hg-mono);
  pointer-events: none;
}
.hg-rail-line { width: 1px; height: 80px; background: currentColor; opacity: 0.45; }
.hg-rail-current { color: var(--hg-copper); }

.hg-shell {
  width: min(1520px, 100%);
  margin-inline: auto;
  padding-inline: clamp(32px, 6vw, 96px);
}
.hg-eyebrow {
  color: var(--hg-mint);
  font: 13px var(--hg-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hg-body {
  max-width: 62ch;
  color: var(--hg-muted);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.8;
}

/* ── Hero ── */
.hg-hero {
  padding: 118px 0 clamp(72px, 8vw, 112px);
  color: var(--hg-on-dark);
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(31, 122, 96, 0.34), transparent 62%),
    linear-gradient(162deg, #0b1f1a 0%, #091813 58%, #0c2a21 100%);
}
.hg-hero-meta {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  color: rgba(244, 243, 238, 0.55);
  font: 13px var(--hg-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hg-hero-meta span:nth-child(2) { text-align: center; }
.hg-hero-meta span:last-child { text-align: right; }

.hg-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 24px;
  padding-top: clamp(72px, 8vw, 124px);
}
.hg-hero-copy { grid-column: 1 / 7; }
.hg-hero-copy .hg-eyebrow { margin-bottom: 34px; }
.hg-hero h1 {
  margin: 0;
  color: var(--hg-on-dark);
  font: 620 clamp(58px, 7.1vw, 116px)/0.94 var(--hg-display);
  letter-spacing: -0.055em;
}
.hg-hero h1 em {
  color: var(--hg-mint);
  font-family: var(--hg-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hg-deck {
  max-width: 43ch;
  margin-top: 44px;
  color: rgba(244, 243, 238, 0.72);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
}
.hg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}
.hg-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: var(--radius-control);
  color: inherit;
  font: 13px var(--hg-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.hg-actions a:hover { background: var(--hg-paper); color: var(--hg-ink); }
.hg-actions .hg-primary {
  border-color: var(--hg-mint);
  background: var(--hg-mint);
  color: var(--hg-dark-surface);
}
.hg-actions .hg-primary:hover { background: transparent; color: var(--hg-mint); }

.hg-hero-media {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  padding-top: 12px;
}
.hg-hero-phone { margin: 0; }
.hg-hero-phone--b { margin-top: 74px; }
.hg-hero-phone figcaption,
.hg-capture-phone figcaption,
.hg-receipt figcaption {
  padding-top: 14px;
  color: rgba(244, 243, 238, 0.5);
  font: 11px/1.6 var(--hg-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hg-device {
  position: relative;
  width: 100%;
  padding: 9px;
  border-radius: 44px;
  background: #07110e;
  box-shadow:
    0 42px 80px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(205, 238, 225, 0.14);
}
.hg-device img { display: block; width: 100%; height: auto; border-radius: 36px; }
.hg-device::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 27%;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hg-hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 243, 238, 0.18);
  color: rgba(244, 243, 238, 0.48);
  font: 12px var(--hg-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hg-facts {
  display: grid;
  grid-template-columns: 3fr 3fr 4fr 3fr;
  margin-top: clamp(72px, 8vw, 120px);
}
.hg-facts > div { padding: 20px 28px 0 0; border-top: 1px solid rgba(244, 243, 238, 0.24); }
.hg-facts > div + div { padding-left: 28px; border-left: 1px solid rgba(244, 243, 238, 0.12); }
.hg-facts dt {
  margin-bottom: 12px;
  color: rgba(244, 243, 238, 0.45);
  font: 11px var(--hg-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hg-facts dd { color: rgba(244, 243, 238, 0.86); font-size: 14px; line-height: 1.6; }

/* ── Section frame ── */
.hg-section { padding: clamp(112px, 12vw, 184px) 0; scroll-margin-top: 72px; }
.hg-section-label {
  display: grid;
  grid-template-columns: 1fr 11fr;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hg-rule);
  font: 12px var(--hg-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hg-section-label > span:first-child { color: var(--hg-copper); }
.hg-section-label > span:last-child { color: var(--hg-muted); }

.hg-split-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  padding-top: clamp(72px, 8vw, 128px);
}
.hg-split-head > div { grid-column: 1 / 10; }
.hg-split-head h2 {
  max-width: 18ch;
  font: 620 clamp(44px, 5.6vw, 82px)/0.98 var(--hg-display);
  letter-spacing: -0.055em;
}
.hg-split-head h2 em,
.hg-craft-copy h2 em,
.hg-reflection-copy h2 em {
  font-family: var(--hg-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hg-split-head .hg-body { margin-top: 40px; }
[data-case-lang="zh"] .hg-eyebrow { text-transform: none; letter-spacing: 0.05em; }
[data-case-lang="zh"] .hg-hero-meta { text-transform: none; letter-spacing: 0.08em; }
[data-case-lang="zh"] .hg-actions a { text-transform: none; letter-spacing: 0.04em; }
[data-case-lang="zh"] .hg-split-head h2,
[data-case-lang="zh"] .hg-craft-copy h2,
[data-case-lang="zh"] .hg-reflection-copy h2,
[data-case-lang="zh"] .hg-hero h1 { letter-spacing: -0.015em; }

/* ── 01 capture gap ── */
.hg-gap-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(96px, 11vw, 168px);
}
.hg-gap-notes article { min-height: 216px; padding: 24px 32px 0 0; border-top: 1px solid var(--hg-ink); }
.hg-gap-notes article + article { padding-left: 32px; border-left: 1px solid var(--hg-rule); }
.hg-gap-notes article > span { color: var(--hg-copper); font: 12px var(--hg-mono); }
.hg-gap-notes h3 {
  margin-top: 64px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hg-gap-notes p { max-width: 34ch; margin-top: 14px; color: var(--hg-muted); font-size: 14px; line-height: 1.7; }

.hg-origin {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  margin-top: clamp(88px, 10vw, 152px);
  padding-top: 24px;
  border-top: 1px solid var(--hg-rule);
}
.hg-origin > div:last-child { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.hg-origin-label { color: var(--hg-copper); font: 12px var(--hg-mono); letter-spacing: 0.1em; }
.hg-origin h3 {
  max-width: 16ch;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hg-origin p { max-width: 56ch; color: var(--hg-muted); font-size: 15px; line-height: 1.8; }

/* ── Proposition band ── */
.hg-proposition {
  padding: clamp(96px, 11vw, 168px) 0;
  background: var(--hg-ink);
  color: var(--hg-paper);
}
.hg-proposition .hg-shell > span {
  color: var(--hg-copper-bright);
  font: 12px var(--hg-mono);
  letter-spacing: 0.13em;
}
.hg-proposition blockquote {
  max-width: 24ch;
  margin-top: 36px;
  font: 400 clamp(36px, 4.6vw, 68px)/1.06 var(--hg-serif);
  letter-spacing: -0.025em;
}
[data-case-lang="zh"] .hg-proposition blockquote { max-width: 20ch; line-height: 1.22; }

/* ── 02 architecture ── */
.hg-constraint { background: var(--hg-paper-deep); }
.hg-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(72px, 9vw, 128px);
}
.hg-pipeline-node {
  position: relative;
  padding: 24px 28px 0 0;
  border-top: 1px solid var(--hg-ink);
}
.hg-pipeline-node + .hg-pipeline-node { padding-left: 28px; border-left: 1px solid var(--hg-rule); }
.hg-pipeline-node::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hg-forest);
}
.hg-pipeline-node > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.08em; }
.hg-pipeline-node h3 { margin-top: 42px; font-size: clamp(20px, 1.9vw, 27px); font-weight: 600; letter-spacing: -0.03em; }
.hg-pipeline-node p { max-width: 26ch; margin-top: 10px; color: var(--hg-muted); font-size: 13px; line-height: 1.65; }
.hg-pipeline-node--optional { border-top-style: dashed; }
.hg-pipeline-node--optional::before { background: transparent; border: 1px solid var(--hg-forest); }

.hg-pipeline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 26px;
  color: var(--hg-forest);
  font: 11px var(--hg-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hg-pipeline-foot span { display: inline-flex; align-items: center; gap: 8px; }
.hg-pipeline-foot span::before { content: '·'; color: var(--hg-copper); }

.hg-tradeoffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(88px, 10vw, 152px);
}
.hg-tradeoffs article { padding: 24px 32px 0 0; border-top: 1px solid var(--hg-rule-strong); }
.hg-tradeoffs article + article { padding-left: 32px; border-left: 1px solid var(--hg-rule); }
.hg-tradeoffs article > span { color: var(--hg-copper); font: 12px var(--hg-mono); }
.hg-tradeoffs h3 {
  max-width: 20ch;
  margin-top: 44px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hg-tradeoffs p { max-width: 36ch; margin-top: 14px; color: var(--hg-muted); font-size: 14px; line-height: 1.75; }

.hg-note {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 20px;
  border-top: 1px solid var(--hg-rule);
}
.hg-note > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.12em; }
.hg-note p { max-width: 70ch; color: var(--hg-muted); font-size: 14px; line-height: 1.8; }

/* ── 03 interaction ── */
.hg-capture-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 32px;
  margin-top: clamp(72px, 9vw, 128px);
}
.hg-receipt { grid-column: 2 / 6; margin: 0; }
.hg-receipt img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(11, 31, 26, 0.1);
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(11, 31, 26, 0.14);
}
.hg-receipt figcaption,
.hg-capture-phone figcaption { color: var(--hg-muted); }
.hg-capture-phone { grid-column: 8 / 12; margin: 0; }
.hg-capture-phone .hg-device { max-width: 360px; }

.hg-capture-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 8vw, 112px);
}
.hg-capture-notes article { padding: 24px 32px 0 0; border-top: 1px solid var(--hg-rule-strong); }
.hg-capture-notes article + article { padding-left: 32px; border-left: 1px solid var(--hg-rule); }
.hg-capture-notes article > span { color: var(--hg-copper); font: 12px var(--hg-mono); }
.hg-capture-notes h3 { margin-top: 40px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.hg-capture-notes p { max-width: 36ch; margin-top: 14px; color: var(--hg-muted); font-size: 14px; line-height: 1.75; }

/* ── 04 judgment ── */
.hg-judgment { background: var(--hg-ink); color: var(--hg-paper); }
.hg-judgment .hg-section-label { border-color: rgba(244, 243, 238, 0.22); }
.hg-judgment .hg-section-label > span:last-child { color: rgba(244, 243, 238, 0.55); }
.hg-judgment .hg-section-label > span:first-child { color: var(--hg-copper-bright); }
.hg-judgment .hg-body { color: rgba(244, 243, 238, 0.7); }
.hg-judgment h2 em { color: var(--hg-mint); }

.hg-diagnostic { margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid rgba(244, 243, 238, 0.3); }
.hg-diagnostic-row {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(244, 243, 238, 0.16);
}
.hg-diagnostic-row > span { color: rgba(244, 243, 238, 0.45); font: 11px var(--hg-mono); letter-spacing: 0.12em; }
.hg-diagnostic-row p { max-width: 74ch; color: rgba(244, 243, 238, 0.82); font-size: 15px; line-height: 1.75; }
.hg-diagnostic-row b { color: var(--hg-paper); font-weight: 600; }
.hg-diagnostic-row.is-wrong b { color: var(--hg-copper-bright); }
.hg-diagnostic-row.is-right { border-bottom-color: var(--hg-mint); }
.hg-diagnostic-row.is-right b { color: var(--hg-mint); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.hg-diagnostic-row.is-right > span { color: var(--hg-mint); }

.hg-judgment-note {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  margin-top: 40px;
}
.hg-judgment-note p { grid-column: 2 / -1; max-width: 78ch; color: rgba(244, 243, 238, 0.66); font-size: 14px; line-height: 1.85; }

/* ── 05 craft ── */
.hg-craft { background: var(--hg-forest-soft); }
.hg-craft-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 32px;
  padding-top: clamp(72px, 8vw, 128px);
}
.hg-craft-mark { grid-column: 1 / 5; }
.hg-craft-mark img {
  width: clamp(136px, 14vw, 196px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 24px 48px rgba(11, 31, 26, 0.22);
}
.hg-craft-mark > div { margin-top: 28px; }
.hg-craft-mark strong {
  display: block;
  font: 620 30px/1 var(--hg-display);
  letter-spacing: -0.05em;
}
.hg-craft-mark span {
  display: block;
  margin-top: 12px;
  color: var(--hg-muted);
  font: 11px var(--hg-mono);
  letter-spacing: 0.12em;
}
.hg-craft-mark small {
  display: block;
  margin-top: 6px;
  color: var(--hg-copper);
  font: 10px var(--hg-mono);
  letter-spacing: 0.1em;
}
.hg-craft-copy { grid-column: 6 / 13; }
.hg-craft-copy h2 {
  max-width: 14ch;
  font: 620 clamp(44px, 5.6vw, 82px)/0.98 var(--hg-display);
  letter-spacing: -0.055em;
}
.hg-craft-copy .hg-body { margin-top: 40px; }

.hg-palette { margin-top: clamp(80px, 9vw, 136px); }
.hg-palette-head {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hg-rule);
}
.hg-palette-head > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.12em; }
.hg-palette-head p { max-width: 62ch; color: var(--hg-muted); font-size: 14px; line-height: 1.75; }
.hg-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 28px;
  list-style: none;
  background: var(--hg-rule);
  border: 1px solid var(--hg-rule);
}
.hg-swatches li { padding: 12px 12px 16px; background: var(--hg-paper); }
.hg-swatches i { display: block; height: 88px; border: 1px solid rgba(11, 31, 26, 0.08); }
.hg-swatches span { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; }
.hg-swatches code { display: block; margin-top: 4px; color: var(--hg-muted); font: 11px var(--hg-mono); }

.hg-craft-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 8vw, 112px);
}
.hg-craft-notes article { padding: 24px 32px 0 0; border-top: 1px solid var(--hg-rule-strong); }
.hg-craft-notes article + article { padding-left: 32px; border-left: 1px solid var(--hg-rule); }
.hg-craft-notes article > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.1em; }
.hg-craft-notes h3 { margin-top: 40px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.hg-craft-notes p { max-width: 38ch; margin-top: 14px; color: var(--hg-muted); font-size: 14px; line-height: 1.75; }

.hg-a11y {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 8vw, 112px);
}
.hg-a11y > div { padding: 20px 24px 0 0; border-top: 1px solid var(--hg-ink); }
.hg-a11y > div + div { padding-left: 24px; border-left: 1px solid var(--hg-rule); }
.hg-a11y strong {
  display: block;
  color: var(--hg-forest);
  font: 620 clamp(38px, 4.2vw, 60px)/0.95 var(--hg-display);
  letter-spacing: -0.05em;
}
.hg-a11y span { display: block; margin-top: 16px; color: var(--hg-muted); font-size: 13px; line-height: 1.55; }

/* ── 06 release ── */
.hg-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 8vw, 120px);
}
.hg-metrics > div { padding: 22px 26px 0 0; border-top: 1px solid var(--hg-ink); }
.hg-metrics > div + div { padding-left: 26px; border-left: 1px solid var(--hg-rule); }
.hg-metrics strong {
  display: block;
  color: var(--hg-forest);
  font: 620 clamp(56px, 6.4vw, 94px)/0.85 var(--hg-display);
  letter-spacing: -0.06em;
}
.hg-metrics span { display: block; margin-top: 22px; color: var(--hg-muted); font-size: 13px; letter-spacing: 0.02em; }

.hg-timeline { margin-top: clamp(80px, 9vw, 136px); border-top: 1px solid var(--hg-ink); }
.hg-timeline article {
  display: grid;
  grid-template-columns: 2fr 4fr 6fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hg-rule);
}
.hg-timeline article > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.1em; }
.hg-timeline h3 { font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.hg-timeline p { max-width: 58ch; color: var(--hg-muted); font-size: 14px; line-height: 1.75; }

.hg-release-note {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hg-rule);
}
.hg-release-note > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.12em; }
.hg-release-note p { max-width: 70ch; color: var(--hg-muted); font-size: 14px; line-height: 1.8; }


/* ── Sticky product stage (desktop) ── */
.hg-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(72px, 8vw, 112px);
  padding-top: 18px;
  border-top: 1px solid var(--hg-rule);
  color: var(--hg-copper);
  font: 11px var(--hg-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hg-stage-head span:last-child { color: var(--hg-muted); }

.hg-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 40px;
}
.hg-stage-steps {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
}
.hg-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82vh;
  padding: 8px 0 48px 28px;
  border-left: 1px solid var(--hg-rule);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.hg-js .hg-step { opacity: 0.45; }
.hg-js .hg-step.is-active { opacity: 1; }
.hg-step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -1px;
  width: 2px;
  height: 0;
  background: var(--hg-forest);
  transform: translateY(-50%);
  transition: height 0.4s ease;
}
.hg-step.is-active::before { height: 48px; }
.hg-step-num {
  color: var(--hg-copper);
  font: 11px var(--hg-mono);
  letter-spacing: 0.1em;
}
.hg-step h3 {
  max-width: 24ch;
  margin-top: 12px;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hg-step p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--hg-muted);
  font-size: 15px;
  line-height: 1.7;
}
.hg-stage-device {
  grid-column: 7 / 13;
  position: sticky;
  top: 96px;
  align-self: start;
}
.hg-stage-stack {
  position: relative;
  width: min(100%, 360px, calc((100vh - 140px) * 0.46));
  margin-inline: auto;
}
.hg-stage-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s step-end;
}
.hg-stage-frame .hg-device { width: 100%; }
.hg-frame-caption {
  display: none;
  margin: 0;
  padding-top: 12px;
  color: var(--hg-muted);
  font: 10px var(--hg-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hg-stage-frame.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s;
}
.hg-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 360px, calc((100vh - 140px) * 0.46));
  margin: 18px auto 0;
  color: var(--hg-muted);
  font: 10px var(--hg-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hg-stage { display: block; }
  .hg-stage-steps,
  .hg-stage-meta { display: none; }
  .hg-stage-device { position: static; }
  .hg-stage-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .hg-stage-frame {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
  }
  .hg-frame-caption { display: block; }
  .hg-stage-frame .hg-device { padding: 6px; border-radius: 30px; }
  .hg-stage-frame .hg-device img { border-radius: 25px; }
  .hg-stage-frame .hg-device::after { top: 11px; height: 13px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-step,
  .hg-step::before,
  .hg-stage-frame { transition: none; }
}

/* ── 07 reflection ── */
.hg-reflection { background: var(--hg-paper-deep); padding-bottom: 72px; }
.hg-reflection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 32px;
  padding-top: clamp(72px, 8vw, 128px);
  padding-bottom: clamp(72px, 8vw, 112px);
}
.hg-reflection-icon { grid-column: 1 / 4; }
.hg-reflection-icon img {
  width: clamp(112px, 12vw, 168px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 22px 44px rgba(11, 31, 26, 0.2);
}
.hg-reflection-copy { grid-column: 5 / 13; }
.hg-reflection-copy h2 {
  max-width: 14ch;
  font: 620 clamp(44px, 5.6vw, 82px)/0.98 var(--hg-display);
  letter-spacing: -0.055em;
}
.hg-reflection-copy .hg-body { margin-top: 40px; }
.hg-reflection-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hg-rule-strong);
}
.hg-reflection-columns > div > span { color: var(--hg-copper); font: 11px var(--hg-mono); letter-spacing: 0.12em; }
.hg-reflection-columns ul { margin-top: 20px; padding-left: 0; list-style: none; }
.hg-reflection-columns li {
  position: relative;
  max-width: 40ch;
  padding-left: 18px;
  color: var(--hg-muted);
  font-size: 14px;
  line-height: 1.7;
}
.hg-reflection-columns li + li { margin-top: 10px; }
.hg-reflection-columns li::before { content: '—'; position: absolute; left: 0; color: var(--hg-forest); }

.hg-credit {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hg-rule);
  color: var(--hg-muted);
  font: 11px var(--hg-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hg-credit span:nth-child(2) { text-align: center; }
.hg-credit span:last-child { text-align: right; }

.heng-case > footer {
  border-top: 0;
  background: var(--hg-ink);
  color: rgba(244, 243, 238, 0.6);
}
.heng-case > footer .ft-content { max-width: 1520px; }
.heng-case > footer .ft-location,
.heng-case > footer .ft-copy { color: rgba(244, 243, 238, 0.6); }


/* ── Dark mode (site default) ── */
body.heng-case:not(.mode-arch) {
  --hg-paper: #0b1f1a;
  --hg-paper-deep: #0e2620;
  --hg-ink: #f1f3ee;
  --hg-muted: #a5b4aa;
  --hg-forest: #8fddc1;
  --hg-forest-soft: #16382d;
  --hg-mint: #cdeee1;
  --hg-copper: #d9a97c;
  --hg-copper-bright: #e7c09a;
  --hg-rule: rgba(241, 243, 238, 0.16);
  --hg-rule-strong: rgba(241, 243, 238, 0.38);
}
body.heng-case:not(.mode-arch) nav {
  background: rgba(9, 24, 19, 0.92);
  border-bottom-color: rgba(241, 243, 238, 0.14);
}
body.heng-case:not(.mode-arch) .mobile-menu-overlay .site-language-select {
  border-color: rgba(241, 243, 238, 0.26);
}
body.heng-case:not(.mode-arch) .hg-rail {
  background: rgba(14, 38, 32, 0.94);
  border-color: rgba(241, 243, 238, 0.18);
  color: var(--hg-muted);
}
body.heng-case:not(.mode-arch) .hg-progress span { background: var(--hg-copper-bright); }
body.heng-case:not(.mode-arch) .hg-proposition { background: var(--hg-on-dark); }
body.heng-case:not(.mode-arch) .hg-proposition .hg-shell > span { color: #8a5a32; }
body.heng-case:not(.mode-arch) .hg-judgment {
  background: var(--hg-dark-raised);
  color: var(--hg-on-dark);
}
body.heng-case:not(.mode-arch) .hg-judgment .hg-diagnostic-row b { color: var(--hg-on-dark); }
body.heng-case:not(.mode-arch) .hg-capture {
  background: var(--hg-on-dark);
  color: var(--hg-dark-surface);
}
body.heng-case:not(.mode-arch) .hg-capture .hg-body,
body.heng-case:not(.mode-arch) .hg-capture .hg-capture-notes p,
body.heng-case:not(.mode-arch) .hg-capture figcaption { color: #57655d; }
body.heng-case:not(.mode-arch) .hg-capture .hg-section-label { border-color: rgba(11, 31, 26, 0.16); }
body.heng-case:not(.mode-arch) .hg-capture .hg-section-label > span:first-child,
body.heng-case:not(.mode-arch) .hg-capture .hg-capture-notes article > span { color: #8a5a32; }
body.heng-case:not(.mode-arch) .hg-capture .hg-section-label > span:last-child { color: #57655d; }
body.heng-case:not(.mode-arch) .hg-capture .hg-capture-notes article { border-color: rgba(11, 31, 26, 0.4); }
body.heng-case:not(.mode-arch) .hg-capture .hg-capture-notes article + article { border-left-color: rgba(11, 31, 26, 0.16); }
body.heng-case:not(.mode-arch) .hg-swatches i { border-color: rgba(241, 243, 238, 0.22); }
body.heng-case:not(.mode-arch) .hg-actions a:hover {
  background: var(--hg-on-dark);
  color: var(--hg-dark-surface);
}
body.heng-case:not(.mode-arch) > footer {
  background: var(--hg-dark-surface);
  border-top: 1px solid rgba(241, 243, 238, 0.12);
}

/* ── Reveal ── */
.hg-js .hg-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hg-js .hg-reveal.is-visible { opacity: 1; transform: translateY(0); }
.hg-actions a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hg-hero-phone a:focus-visible { outline: 2px solid var(--hg-mint); outline-offset: 4px; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .hg-rail { display: none; }
  .hg-hero-copy { grid-column: 1 / 8; }
  .hg-hero-media { grid-column: 8 / 13; }
  .hg-craft-mark { grid-column: 1 / 5; }
  .hg-craft-copy { grid-column: 6 / 13; }
}

@media (max-width: 980px) {
  .hg-hero-grid { gap: 16px; }
  .hg-hero h1 { font-size: clamp(52px, 8vw, 80px); }
  .hg-hero-media { grid-template-columns: 1fr; max-width: 330px; justify-self: end; }
  .hg-hero-phone--b { display: none; }
  .hg-facts { grid-template-columns: 1fr 1fr; }
  .hg-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hg-facts > div:nth-child(n + 3) { margin-top: 20px; }
  .hg-pipeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .hg-pipeline-node:nth-child(3) { padding-left: 0; border-left: 0; }
  .hg-gap-notes,
  .hg-tradeoffs,
  .hg-capture-notes,
  .hg-craft-notes { grid-template-columns: 1fr; }
  .hg-gap-notes article,
  .hg-tradeoffs article,
  .hg-capture-notes article,
  .hg-craft-notes article { min-height: auto; padding: 24px 0 48px; }
  .hg-gap-notes article + article,
  .hg-tradeoffs article + article,
  .hg-capture-notes article + article,
  .hg-craft-notes article + article { padding-left: 0; border-left: 0; }
  .hg-gap-notes h3,
  .hg-tradeoffs h3,
  .hg-capture-notes h3,
  .hg-craft-notes h3 { margin-top: 24px; }
  .hg-origin { grid-template-columns: 1fr; gap: 16px; }
  .hg-origin > div:last-child { grid-template-columns: 1fr; gap: 12px; }
  .hg-capture-grid { grid-template-columns: 1fr 1fr; }
  .hg-receipt { grid-column: 1; }
  .hg-capture-phone { grid-column: 2; }
  .hg-a11y { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hg-a11y > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hg-metrics { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .hg-metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hg-timeline article { grid-template-columns: 2fr 4fr; }
  .hg-timeline p { grid-column: 2; }
  .hg-reflection-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hg-shell { padding-inline: 24px; }
  .hg-hero { padding-top: 104px; }
  .hg-hero-meta { grid-template-columns: 1fr 1fr; }
  .hg-hero-meta span:nth-child(2) { display: none; }
  .hg-hero-meta span:last-child { text-align: right; }
  .hg-hero-grid { display: block; padding-top: 64px; }
  .hg-hero h1 { font-size: clamp(48px, 14vw, 82px); }
  .hg-deck { margin-top: 32px; }
  .hg-hero-media { max-width: 280px; margin: 56px 0 0 auto; }
  .hg-hero-caption { flex-direction: column; gap: 6px; }
  .hg-facts { grid-template-columns: 1fr; margin-top: 64px; }
  .hg-facts > div { padding: 16px 0 18px; }
  .hg-facts > div + div { padding-left: 0; border-left: 0; }
  .hg-facts > div:nth-child(n + 3) { margin-top: 0; }
  .hg-section { padding: 104px 0; }
  .hg-section-label { grid-template-columns: 48px 1fr; }
  .hg-split-head { display: block; padding-top: 56px; }
  .hg-split-head h2 { font-size: clamp(40px, 11vw, 58px); }
  .hg-split-head .hg-body { margin-top: 32px; }
  .hg-gap-notes { margin-top: 72px; }
  .hg-origin { margin-top: 64px; }
  .hg-proposition blockquote { font-size: clamp(32px, 9.5vw, 46px); }
  .hg-pipeline { grid-template-columns: 1fr; row-gap: 0; margin-top: 64px; }
  .hg-pipeline-node { padding: 22px 0 26px; }
  .hg-pipeline-node + .hg-pipeline-node { padding-left: 0; border-left: 0; }
  .hg-pipeline-node h3 { margin-top: 18px; }
  .hg-note,
  .hg-palette-head,
  .hg-release-note,
  .hg-judgment-note { grid-template-columns: 1fr; gap: 12px; }
  .hg-capture-grid { display: block; margin-top: 56px; }
  .hg-receipt { max-width: 300px; }
  .hg-capture-phone { max-width: 300px; margin: 56px 0 0 auto; }
  .hg-capture-phone .hg-device { max-width: 100%; }
  .hg-craft-grid { display: block; padding-top: 56px; }
  .hg-craft-mark { display: flex; align-items: center; gap: 24px; }
  .hg-craft-mark > div { margin-top: 0; }
  .hg-craft-mark img { width: 96px; }
  .hg-craft-copy { margin-top: 56px; }
  .hg-craft-copy h2,
  .hg-reflection-copy h2 { font-size: clamp(40px, 11vw, 58px); }
  .hg-palette { margin-top: 72px; }
  .hg-swatches {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border: 1px solid var(--hg-rule);
    border-bottom: 0;
  }
  .hg-swatches li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--hg-rule);
  }
  .hg-swatches li:last-child { grid-column: auto; }
  .hg-swatches i { grid-row: 1 / 3; width: 56px; height: 56px; }
  .hg-swatches span { margin-top: 0; align-self: end; }
  .hg-swatches code { margin-top: 2px; align-self: start; }
  .hg-a11y strong { font-size: 44px; }
  .hg-metrics > div { padding: 18px 16px 0 0; }
  .hg-metrics strong { font-size: 58px; }
  .hg-timeline article { display: block; }
  .hg-timeline h3 { margin-top: 12px; }
  .hg-timeline p { margin-top: 10px; }
  .hg-reflection-grid { display: block; padding-top: 56px; }
  .hg-reflection-icon { margin-bottom: 48px; }
  .hg-reflection-icon img { width: 96px; }
  .hg-credit { grid-template-columns: 1fr; gap: 8px; }
  .hg-credit span:nth-child(2),
  .hg-credit span:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .heng-case nav { min-height: 58px; padding-inline: 16px; }
  .hg-shell { padding-inline: 16px; }
  .hg-hero { padding-top: 96px; }
  .hg-hero-copy .hg-eyebrow { margin-bottom: 24px; }
  .hg-hero h1 { font-size: clamp(44px, 13.5vw, 64px); }
  .hg-actions { margin-top: 32px; }
  .hg-actions a { padding: 0 14px; }
  .hg-hero-media { max-width: 240px; margin-top: 40px; }
  .hg-section { padding: 88px 0; }
  .hg-section-label { font-size: 11px; }
  .hg-gap-notes h3,
  .hg-capture-notes h3,
  .hg-craft-notes h3 { font-size: 24px; }
  .hg-diagnostic-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .hg-diagnostic-row p { font-size: 14px; }
  .hg-a11y { grid-template-columns: 1fr; }
  .hg-a11y > div + div { padding-left: 0; border-left: 0; }
  .hg-metrics { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-js .hg-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
