/* ===========================================================
   SRD5A2 CDx · Investor Site
   Design tokens carried over from the IC pitch deck
   =========================================================== */

:root {
  --ink:        #0A1F3D;
  --ink-2:      #17376B;
  --ink-3:      #102A52;
  --gold:       #C9A24C;
  --gold-soft:  #E8CE94;
  --cream:      #F5F1E8;
  --paper:      #FAFAF7;
  --card:       #FFFFFF;
  --line:       #E2E8F0;
  --line-soft:  #EEF2F6;
  --slate:      #475569;
  --slate-2:    #64748B;
  --mute:       #94A3B8;
  --red:        #B91C3B;
  --red-soft:   #FEF2F2;
  --amber:      #D97706;
  --green:      #15803D;
  --green-soft: #DCFCE7;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: 32px;
  --radius: 0px;   /* Kept intentionally sharp — matches IC deck */
  --shadow-card: 0 2px 12px rgba(10,31,61,0.08);
  --shadow-card-hover: 0 6px 24px rgba(10,31,61,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-size: 12px; letter-spacing: 3px;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
}
.eyebrow.mute { color: var(--mute); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============ Top gold rule (matches deck's header stripe) ============ */
.top-rule {
  position: fixed; left: 0; top: 0; right: 0;
  height: 10px; z-index: 200;
  background: linear-gradient(to bottom, var(--ink) 0 8px, var(--gold) 8px 10px);
}

/* ============ NAV ============ */
.nav {
  position: fixed; left: 0; right: 0; top: 10px;
  z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; background: var(--ink); position: relative;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 6px; border: 1.5px solid var(--gold);
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  background: var(--gold); transform: translate(-50%,-50%);
}
.brand-name {
  font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
  color: var(--ink); line-height: 1.15;
}
.brand-tag {
  font-size: 11px; color: var(--mute); letter-spacing: 2px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; color: var(--slate); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav-links a.nav-active { color: var(--ink); border-bottom-color: var(--gold); }
.nav-cta {
  margin-left: 8px;
  padding: 9px 18px; background: var(--ink); color: var(--cream);
  font-size: 13px; letter-spacing: 1.5px; font-weight: 700;
  text-decoration: none; border-bottom: 2px solid var(--gold);
  transition: background .15s;
}
.nav-cta:hover { background: var(--ink-2); }

/* ============ MOBILE NAV (hamburger) ============ */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  margin-left: auto;
  color: var(--ink);
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: 0 20px 40px rgba(10,31,61,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover,
  .nav-links a.nav-active {
    border-bottom-color: var(--gold);
  }
  .nav { position: relative; }
  .lang-toggle { margin-left: 0; margin-right: 8px; }
}
@media (max-width: 720px) {
  .brand-logo { height: 48px !important; }
  .nav-inner { padding: 10px 16px; gap: 12px; }
}

/* ============ SPA-STYLE PAGES ============
   Each <section> is a self-contained "page". Only one is visible at
   a time. Navigation between pages happens via nav clicks (hashchange),
   NOT scroll. Within a page, the user can scroll normally if the
   content exceeds the viewport.

   - Hidden pages: display:none (removes from layout entirely so scroll
     doesn't jump between them).
   - Active page: fills the viewport (min-height: calc 100vh minus nav)
     and allows internal scroll for tall content (e.g. Focus).
   - Fade-in animation on activation. */

section {
  display: none;
  padding: 120px 0 80px;
  min-height: 100vh;   /* fill viewport so short pages look intentional */
  box-sizing: border-box;
  scroll-margin-top: 90px;
}
section.is-active {
  display: block;
  animation: pageFadeIn 0.35s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Body: no page-level scroll jumping. Each section scrolls its own overflow. */
html { scroll-behavior: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section-head { margin-bottom: 48px; }
.section-head .kicker {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 18px;
}
.section-head .kicker .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold);
  letter-spacing: 2px; font-weight: 700;
}
.section-head .kicker .lbl {
  font-size: 12px; letter-spacing: 4px; color: var(--mute);
  font-weight: 700; text-transform: uppercase;
}
.section-head h2 {
  font-size: 42px; line-height: 1.2; font-weight: 700;
  color: var(--ink); margin: 0 0 0 0; letter-spacing: -0.5px;
}
.section-head h2 .g { color: var(--gold); }
.section-head h2 .r { color: var(--red); }
.section-head .rule {
  width: 64px; height: 3px; background: var(--gold);
  margin-top: 22px;
}
.section-head p.lede {
  margin-top: 22px; max-width: 900px;
  font-size: 17px; line-height: 1.65; color: var(--slate);
}
.section-head p.lede strong { color: var(--ink); }

@media (max-width: 720px) {
  .section-head h2 { font-size: 30px; }
  section { padding-top: 80px; }
}

/* ============ HERO ============ */
.hero {
  padding: 160px 0 100px;
  background:
    radial-gradient(1000px 500px at 85% -20%, rgba(201,162,76,0.10), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 55%, var(--ink-2) 100%);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: 120px;
  width: 320px; height: 320px; border: 1px solid rgba(201,162,76,0.28);
}
.hero::before {
  content: ""; position: absolute; right: -30px; top: 170px;
  width: 320px; height: 320px; border: 1px solid rgba(201,162,76,0.15);
}
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: 60px; line-height: 1.12; font-weight: 700;
  margin: 20px 0 0; letter-spacing: -1px; max-width: 1100px;
  color: var(--cream);
}
.hero h1 .g { color: var(--gold); }
.hero .subtitle {
  margin-top: 26px; max-width: 780px;
  font-size: 20px; line-height: 1.55; color: rgba(245,241,232,0.82);
}
.hero .rule-gold { width: 100px; height: 4px; background: var(--gold); margin: 34px 0 0; }

.hero-chips {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(201,162,76,0.25);
  border: 1px solid rgba(201,162,76,0.25);
}
.chip {
  background: rgba(10,31,61,0.55); padding: 26px 22px;
  backdrop-filter: blur(4px);
}
.chip .k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--gold-soft); font-weight: 700; text-transform: uppercase;
}
.chip .v {
  font-size: 34px; font-weight: 800; color: var(--cream);
  margin-top: 10px; line-height: 1.05; letter-spacing: -0.5px;
}
.chip .v .u { font-size: 16px; font-weight: 400; color: var(--gold); margin-left: 4px; }
.chip .d { font-size: 12px; color: rgba(232,206,148,0.7); margin-top: 8px; line-height: 1.4; }

.hero-ctas { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 14px 26px; font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-decoration: none; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; transition: all .15s;
  border: none; cursor: pointer;
}
.btn-primary {
  background: var(--gold); color: var(--ink);
  border-bottom: 3px solid #a3801f;
}
.btn-primary:hover { background: #d8b258; }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(232,206,148,0.55);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-arrow::after { content: "→"; font-family: var(--font-mono); }

@media (max-width: 900px) {
  .hero h1 { font-size: 40px; }
  .hero-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 32px; }
  .hero-chips { grid-template-columns: 1fr; }
}

/* ============ SNAPSHOT / PILLARS ============ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: var(--card); padding: 32px 28px 28px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.pillar .num {
  font-size: 44px; font-weight: 200; color: var(--gold); line-height: 1;
}
.pillar .t {
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin: 20px 0 12px; line-height: 1.3;
}
.pillar .d { font-size: 14.5px; color: var(--slate); line-height: 1.65; }
.pillar .d strong { color: var(--ink); }
.pillar .meta {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--mute); letter-spacing: 1px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pillars { grid-template-columns: 1fr; } }

/* ============ STATS PANEL (Unmet Need) ============ */
.stats-panel {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 32px 40px;
}
.stats-panel .eyebrow { margin-bottom: 8px; }
.stat-row {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px;
  align-items: center; padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .num {
  font-size: 62px; font-weight: 800; color: var(--ink);
  line-height: 1.1; letter-spacing: -1.5px;
}
.stat-row .num .u { font-size: 28px; font-weight: 400; color: var(--gold); margin-left: 8px; }
.stat-row .lbl {
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.stat-row .src { font-size: 13px; color: var(--slate-2); margin-top: 6px; }

.split-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: stretch; }
.pain-panel {
  background: var(--ink); color: var(--cream);
  padding: 32px 36px; position: relative;
}
.pain-panel::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--red);
}
.pain-panel .eyebrow { color: var(--red); }
.pain-panel h3 {
  font-size: 26px; margin: 12px 0 20px; line-height: 1.35; color: var(--cream);
}
.pain-panel h3 .h { color: var(--gold); }
.pain-panel p { color: rgba(245,241,232,0.85); line-height: 1.65; font-size: 15px; margin: 0 0 12px; }
.pain-panel .callout {
  margin-top: 18px; padding: 14px 18px; background: rgba(201,162,76,0.14);
  border-left: 3px solid var(--gold); font-size: 14px; color: var(--gold-soft);
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; gap: 4px; }
  .split-2 { grid-template-columns: 1fr; }
}

/* ============ WORKFLOW ============ */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; align-items: stretch; }
.wf-step {
  background: var(--card); padding: 28px 26px 30px;
  border-top: 4px solid var(--ink-2); box-shadow: var(--shadow-card);
}
.wf-step .step {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--gold); letter-spacing: 2px;
}
.wf-step .t {
  font-size: 24px; font-weight: 700; color: var(--ink); margin: 8px 0 18px;
}
.wf-step .d { font-size: 15px; color: var(--slate); line-height: 1.7; }
.wf-step .d strong { color: var(--ink); }
.wf-step .m {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--mute); letter-spacing: 1px;
}
.wf-arrow {
  align-self: center; padding: 0 8px; color: var(--gold); font-size: 24px;
  font-family: var(--font-mono);
}
@media (max-width: 900px) {
  .workflow { grid-template-columns: 1fr; }
  .wf-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* ============ MECHANISM / CASCADE ============ */
.cascade {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch;
}
.cascade .node {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 20px 18px 22px; position: relative;
}
.cascade .node.c1 { border-top: 4px solid var(--red); }
.cascade .node.c2 { border-top: 4px solid var(--amber); }
.cascade .node.c3 { border-top: 4px solid var(--ink-2); }
.cascade .node.c4 { border-top: 4px solid var(--ink-2); }
.cascade .node.c5 { border-top: 4px solid var(--gold); }
.cascade .node .n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  font-weight: 700; color: var(--slate-2);
}
.cascade .node.c1 .n { color: var(--red); }
.cascade .node.c2 .n { color: var(--amber); }
.cascade .node.c3 .n, .cascade .node.c4 .n { color: var(--ink-2); }
.cascade .node.c5 .n { color: var(--gold); }
.cascade .node .h {
  font-size: 17px; font-weight: 700; color: var(--ink); margin: 8px 0 8px; line-height: 1.3;
}
.cascade .node .p { font-size: 12.5px; color: var(--slate); line-height: 1.5; }
.cascade .node .p strong { color: var(--ink); }
@media (max-width: 1100px) { .cascade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cascade { grid-template-columns: 1fr; } }

/* ============ VALIDATION TABLE ============ */
.data-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  box-shadow: var(--shadow-card); font-size: 14px;
}
.data-table thead th {
  background: var(--ink); color: var(--cream);
  padding: 14px 18px; text-align: left; font-weight: 700;
  border-bottom: 2px solid var(--gold);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.data-table tbody td {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.5;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td .lead { font-weight: 700; color: var(--ink); }
.data-table td .sub { font-size: 12px; color: var(--mute); font-weight: 400; margin-top: 2px; }
.data-table td.num { font-family: var(--font-mono); color: var(--red); font-weight: 700; }
.data-table td.num.pos { color: var(--green); }
.data-table td.num.neu { color: var(--ink); }
.badge {
  display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; background: var(--ink); color: var(--gold);
}
.badge.red   { background: var(--red);   color: #fff; }
.badge.green { background: var(--green); color: #fff; }
.badge.amber { background: var(--amber); color: #fff; }
.badge.mute  { background: var(--mute);  color: #fff; }

.table-wrap { overflow-x: auto; }

/* ============ TRIALS ============ */
.trials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trial {
  background: var(--card); box-shadow: var(--shadow-card); padding: 32px 34px;
  border-top: 5px solid var(--ink-2);
}
.trial.done { border-top-color: var(--gold); }
.trial .head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 4px;
}
.trial .id {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.5px;
}
.trial .status {
  font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  padding: 5px 10px; background: var(--green-soft); color: var(--green);
}
.trial .status.active { background: rgba(23,55,107,0.10); color: var(--ink-2); }
.trial .h {
  font-size: 22px; font-weight: 700; color: var(--ink); margin: 14px 0 12px; line-height: 1.35;
}
.trial .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 18px 0 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trial .meta .k { font-size: 11px; color: var(--mute); letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.trial .meta .v { font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 2px; }
.trial .results {
  background: var(--cream); padding: 16px 20px; border-left: 4px solid var(--gold);
  font-size: 14px; color: var(--ink); line-height: 1.6;
}
.trial .results .rlbl {
  font-size: 11px; letter-spacing: 2px; color: var(--gold); font-weight: 700;
  text-transform: uppercase; display: block; margin-bottom: 6px;
}
@media (max-width: 900px) { .trials { grid-template-columns: 1fr; } }

.funding {
  margin-top: 28px; background: var(--ink); color: var(--cream);
  padding: 26px 32px; display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 30px;
}
.funding .amt { font-family: var(--font-mono); font-size: 42px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -1px; }
.funding .desc { font-size: 15px; color: rgba(245,241,232,0.9); line-height: 1.55; }
.funding .desc strong { color: var(--cream); }
.funding .grants { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--gold-soft); letter-spacing: 1px; line-height: 1.8; }
@media (max-width: 700px) {
  .funding { grid-template-columns: 1fr; text-align: left; }
  .funding .grants { text-align: left; }
}

/* ============ IP / PATENT ============ */
.ip-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
.ip-card {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 32px 36px; position: relative;
}
.ip-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--gold);
}
.ip-card .eyebrow { margin-bottom: 12px; }
.ip-card .num {
  font-family: var(--font-mono); font-size: 40px; font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.5px;
}
.ip-card .sub { font-family: var(--font-mono); font-size: 15px; color: var(--slate); margin-top: 8px; }
.ip-facts { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.ip-facts .k { font-size: 11px; letter-spacing: 1.5px; color: var(--mute); font-weight: 700; text-transform: uppercase; }
.ip-facts .v { font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 4px; line-height: 1.35; }

.ip-alert {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 32px 36px; position: relative; border-left: 5px solid var(--red);
}
.ip-alert .eyebrow { color: var(--red); }
.ip-alert h3 { font-size: 22px; margin: 12px 0 12px; color: var(--ink); line-height: 1.35; }
.ip-alert p { font-size: 14.5px; color: var(--slate); line-height: 1.65; margin: 0 0 12px; }
.ip-alert p strong { color: var(--ink); }
.ip-alert .stamp {
  margin-top: 18px; padding: 12px 16px; background: var(--red-soft);
  font-size: 13px; color: var(--red); font-weight: 700;
  border-left: 3px solid var(--red);
}
@media (max-width: 900px) { .ip-wrap { grid-template-columns: 1fr; } }

/* ============ TEAM ============ */
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: stretch;
}
.team-card {
  background: var(--card); box-shadow: var(--shadow-card);
  overflow: hidden; display: flex; flex-direction: column;
  padding: 40px 40px 36px;
}
.team-card .photo-wrap {
  background: var(--ink); position: relative;
  width: 240px; height: 240px;
  aspect-ratio: 1 / 1;
  flex: none;
  margin-bottom: 28px;
  align-self: flex-start;
}
.team-card .photo-wrap::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--gold); z-index: 2;
}
.team-card .photo-wrap > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.team-card image-slot { width: 100%; height: 100%; min-height: 240px; }

.team-body { padding: 0; display: flex; flex-direction: column; flex: 1; }
.team-body .role {
  font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; margin-bottom: 8px;
}
.team-body .name {
  font-size: 28px; font-weight: 700; color: var(--ink);
  margin: 0 0 20px; line-height: 1.2;
}
.team-body .name .en { display: none; }
.team-body .aff { display: none; }
.team-body .rule { width: 40px; height: 2px; background: var(--gold); margin: 0 0 18px; }

.team-body ul { margin: 0; padding: 0; list-style: none; }
.team-body ul li {
  padding: 7px 0 7px 20px; position: relative; font-size: 14.5px;
  color: var(--slate); line-height: 1.6;
}
.team-body ul li::before {
  content: "●"; color: var(--gold); position: absolute; left: 0; top: 8px; font-size: 9px;
}
/* Flat text — no bold emphasis in team lists / blurbs */
.team-body ul li strong { font-weight: 400; color: inherit; }
.team-body p strong { font-weight: 400; color: inherit; }
.team-body { padding: 32px 32px 28px; display: flex; flex-direction: column; }
.team-body .role {
  font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--gold);
  text-transform: uppercase;
}
.team-body .name { font-size: 26px; font-weight: 700; color: var(--ink); margin: 8px 0 4px; line-height: 1.2; }
.team-body .name .en { font-size: 14px; color: var(--slate-2); font-weight: 400; margin-left: 6px; font-family: var(--font-mono); }
.team-body .aff { font-size: 14px; color: var(--slate); }
.team-body .rule { width: 40px; height: 2px; background: var(--gold); margin: 18px 0 16px; }
.team-body ul { margin: 0; padding: 0; list-style: none; }
.team-body ul li {
  padding: 6px 0 6px 20px; position: relative; font-size: 14px;
  color: var(--slate); line-height: 1.55;
}
.team-body ul li::before {
  content: "●"; color: var(--gold); position: absolute; left: 0; top: 6px; font-size: 10px;
}
.team-body ul li strong { color: var(--ink); }

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-card { padding: 32px 28px 28px; }
  .team-card .photo-wrap { width: 200px; height: 200px; }
}

/* ============ MARKET ============ */
.market-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: start; }
.market-panel {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 32px 34px;
}
.market-panel .eyebrow { margin-bottom: 22px; }
.mkt-row {
  display: grid; grid-template-columns: 100px 1fr 130px; gap: 16px;
  align-items: center; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mkt-row:last-of-type { border-bottom: none; }
.mkt-row .tier { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--slate-2); letter-spacing: 1px; }
.mkt-row .tier.acc { color: var(--gold); }
.mkt-row .bar { height: 32px; background: var(--line-soft); position: relative; }
.mkt-row .bar .fill {
  height: 100%; background: var(--ink-2); position: relative;
}
.mkt-row .bar .fill.gold { background: linear-gradient(90deg, var(--ink-2), var(--gold)); }
.mkt-row .amt {
  font-family: var(--font-mono); font-size: 24px; color: var(--ink);
  font-weight: 800; text-align: right; line-height: 1;
}
.mkt-row .amt .u { font-size: 12px; color: var(--slate-2); font-weight: 400; margin-left: 3px; }

.funnel-panel {
  background: var(--ink); color: var(--cream);
  padding: 32px 34px;
}
.funnel-panel .eyebrow { color: var(--gold); }
.funnel-panel h3 { font-size: 22px; margin: 12px 0 20px; color: var(--cream); line-height: 1.4; }
.funnel-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  padding: 12px 0; border-bottom: 1px dashed rgba(232,206,148,0.25);
  align-items: baseline;
}
.funnel-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.funnel-row .l { font-size: 14px; color: rgba(245,241,232,0.85); }
.funnel-row .v { font-family: var(--font-mono); font-size: 18px; font-weight: 800; color: var(--gold); }
.funnel-row.total { padding-top: 18px; margin-top: 6px; border-top: 1px solid rgba(201,162,76,0.4); border-bottom: none; }
.funnel-row.total .l { color: var(--cream); font-weight: 700; font-size: 15px; }
.funnel-row.total .v { font-size: 30px; }
@media (max-width: 900px) { .market-wrap { grid-template-columns: 1fr; } }

/* ============ INFLECTION / EXIT ============ */
.inflect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.inflect {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 32px 30px 28px; position: relative;
}
.inflect::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--gold);
}
.inflect .k { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1.5px; }
.inflect h4 { font-size: 22px; margin: 8px 0 14px; color: var(--ink); line-height: 1.3; }
.inflect p { font-size: 14px; color: var(--slate); margin: 0 0 14px; line-height: 1.65; }
.inflect .callout {
  margin-top: 16px; padding: 14px 16px; background: var(--cream);
  border-left: 4px solid var(--ink); font-size: 13.5px; color: var(--ink); line-height: 1.55;
}
.inflect .callout .h { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 900px) { .inflect-grid { grid-template-columns: 1fr; } }

.exit-refs {
  margin-top: 40px; background: var(--card); box-shadow: var(--shadow-card);
  padding: 26px 32px; border-top: 4px solid var(--gold);
}
.exit-refs .eyebrow { margin-bottom: 18px; }
.exit-refs .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exit-refs .row .item { padding: 10px 0; }
.exit-refs .row .name { font-size: 15px; font-weight: 700; color: var(--ink); }
.exit-refs .row .deal { font-size: 13px; color: var(--slate-2); margin-top: 4px; }
@media (max-width: 900px) { .exit-refs .row { grid-template-columns: 1fr; } }

/* ============ MOAT (Investment highlights) ============ */
.moat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.moat {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 30px 28px 28px; border-top: 4px solid var(--gold);
  display: flex; gap: 20px;
}
.moat .n {
  font-size: 46px; font-weight: 200; color: var(--gold); line-height: 1; flex-shrink: 0;
}
.moat .h { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.moat .p { font-size: 14px; color: var(--slate); line-height: 1.6; }
.moat .p strong { color: var(--ink); }
.moat .tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--mute);
  letter-spacing: 1px; margin-top: 12px; text-transform: uppercase;
}
@media (max-width: 900px) { .moat-grid { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact {
  background: var(--ink); color: var(--cream);
  padding: 90px 0 60px;
}
.contact .eyebrow { color: var(--gold); }
.contact h2 {
  font-size: 44px; margin: 22px 0 18px; color: var(--cream);
  line-height: 1.2; max-width: 900px; letter-spacing: -0.5px;
}
.contact h2 .g { color: var(--gold); }
.contact .rule { width: 80px; height: 3px; background: var(--gold); }
.contact-grid { margin-top: 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 15px; letter-spacing: 2.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; margin: 0 0 18px; }
.contact-info .line { padding: 10px 0; border-bottom: 1px solid rgba(232,206,148,0.2); font-size: 15px; }
.contact-info .line .k { display: block; font-size: 11px; color: var(--mute); letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.contact-info .line .v { color: var(--cream); font-family: var(--font-mono); font-size: 15px; }
.contact-info .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.checklist {
  background: rgba(201,162,76,0.06);
  border: 1px solid rgba(201,162,76,0.28);
  padding: 30px 32px;
}
.checklist h3 { font-size: 13px; letter-spacing: 2.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; margin: 0 0 14px; }
.checklist p { font-size: 14px; color: rgba(245,241,232,0.75); margin: 0 0 20px; line-height: 1.6; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist ul li {
  padding: 10px 0 10px 32px; position: relative; font-size: 14.5px; color: var(--cream); line-height: 1.5;
  border-bottom: 1px dashed rgba(232,206,148,0.15);
}
.checklist ul li:last-child { border-bottom: none; }
.checklist ul li::before {
  content: attr(data-n); font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  position: absolute; left: 0; top: 12px; font-weight: 700;
}
.checklist ul li.blocking { color: #fecaca; }
.checklist ul li.blocking::before { color: #fca5a5; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .contact h2 { font-size: 30px; } }

/* ============ FOOTER ============ */
footer {
  background: #061224; color: rgba(245,241,232,0.7);
  padding: 34px 0 40px; font-size: 12px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .rule { width: 100%; height: 1px; background: rgba(201,162,76,0.18); margin-bottom: 30px; }
footer .brand-name { color: var(--gold-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; }
footer p { margin: 6px 0 0; line-height: 1.6; }
footer .disclaimer {
  max-width: 620px; font-size: 11px; color: rgba(245,241,232,0.45); line-height: 1.7;
}

/* ============ LANDING GATE ============ */
.gate {
  position: fixed; inset: 0; z-index: 500;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201,162,76,0.10), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 55%, var(--ink-2) 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.gate.dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner {
  text-align: center;
  width: 100%;
  max-width: 960px;
  padding: 0 32px;
  margin: 0 auto;
  box-sizing: border-box;
}
.gate-logo-wrap {
  display: flex; justify-content: center;
  margin: 0 auto 60px;
}
.gate-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Reserve the FINAL plate size up-front so the browser doesn't paint
     a narrow strip first then jump-expand once the <img> loads.
     Ratio matches the logo (1024×348 ≈ 2.94:1) plus 44px h / 28px v padding. */
  width: 500px;
  height: 196px;
  padding: 28px 44px;
  box-sizing: border-box;
  background: var(--cream);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  opacity: 0;
}
.gate-logo {
  height: 140px; width: auto; display: block;
  max-width: 100%;
}
@media (max-width: 720px) {
  .gate-logo-plate { width: 340px; height: 140px; padding: 20px 32px; }
}
.gate.play .gate-logo-plate {
  animation: gateLogo 2.8s 0.3s linear forwards;
}
@keyframes gateLogo {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.gate-slogan {
  color: var(--cream);
  letter-spacing: -0.5px;
  opacity: 0; transform: translateY(14px);
  margin: 0 auto;
  max-width: 100%;
  font-weight: 700;
}
/* Two-line hero slogan · Line 1 is the main statement (big + gold),
   Line 2 is the elaboration (smaller + cream). Both centered, same axis.
   Different font sizes give them equal visual weight despite different lengths. */
.gate-slogan .line {
  display: block;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
}
.gate-slogan .line-1 { font-size: 58px; }
.gate-slogan .line-2 { font-size: 34px; margin-top: 14px; color: rgba(245,241,232,0.88); }

/* Auto-scale for narrower viewports — keep both lines on single lines */
@media (max-width: 1100px) {
  .gate-slogan .line-1 { font-size: 48px; }
  .gate-slogan .line-2 { font-size: 28px; }
}
@media (max-width: 900px) {
  .gate-slogan .line-1 { font-size: 40px; }
  .gate-slogan .line-2 { font-size: 23px; }
}
@media (max-width: 780px) {
  .gate-slogan .line-1 { font-size: 32px; }
  .gate-slogan .line-2 { font-size: 18px; }
}
@media (max-width: 620px) {
  .gate-slogan .line-1 { font-size: 26px; }
  .gate-slogan .line-2 { font-size: 15px; }
}
@media (max-width: 480px) {
  .gate-slogan .line-1 { font-size: 22px; }
  .gate-slogan .line-2 { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .gate-slogan .line-1 { font-size: 18px; }
  .gate-slogan .line-2 { font-size: 10.5px; }
}
/* Auto-scale font so the longer second line always fits without wrapping.
   Each breakpoint is tuned to the pixel width "From where it is discovered,
   to where it is needed" needs at that font size. */
@media (max-width: 1100px) { .gate-slogan { font-size: 36px; } }
@media (max-width: 900px)  { .gate-slogan { font-size: 30px; } }
@media (max-width: 780px)  { .gate-slogan { font-size: 24px; } }
@media (max-width: 620px)  { .gate-slogan { font-size: 20px; } }
@media (max-width: 500px)  { .gate-slogan { font-size: 17px; } }
@media (max-width: 400px)  { .gate-slogan { font-size: 14px; } }
.gate-slogan .g { color: var(--gold); }
.gate.play .gate-slogan {
  animation: gateFadeUp 1.6s 2.4s ease-in-out forwards;
}
.gate-tagline {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 16px;
  color: rgba(232,206,148,0.75);
  line-height: 1.7;
  opacity: 0; transform: translateY(10px);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.gate.play .gate-tagline {
  animation: gateFadeUp 1.6s 3.4s ease-in-out forwards;
}
.gate-enter {
  margin-top: 56px;
  display: inline-block;
  padding: 15px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(245,241,232,0.55);
  text-decoration: none;
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.gate-enter:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.gate.play .gate-enter {
  animation: gateFadeUp 1.6s 4.4s ease-in-out forwards;
}
@keyframes gateFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
/* Lock scroll while gate visible */
body.gate-active { overflow: hidden; }
@media (max-width: 720px) {
  .gate-logo { height: 96px; }
  .gate-slogan { font-size: 30px; }
  .gate-tagline { font-size: 14px; padding: 0 8px; }
  .gate-enter { padding: 13px 32px; font-size: 11px; letter-spacing: 3px; }
  .do-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ============ PIPELINE PAGE ============ */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}
.pipeline-card {
  background: var(--card);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-card);
  padding: 40px 36px 36px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.pipeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.pipeline-card .p-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pipeline-card .p-code {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.pipeline-card .p-tagline {
  font-size: 17px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0 0 28px;
  flex: 1;
}
.pipeline-card .p-milestone {
  padding: 14px 18px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 24px;
}
.pipeline-card .p-milestone .m-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pipeline-card .p-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  align-self: flex-start;
}
@media (max-width: 900px) {
  .pipeline-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ PROGRAM DETAIL PAGES (UroDx / UroTx) ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--slate-2);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.program-header {
  margin-bottom: 60px;
}
.program-header .p-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.program-header .p-code {
  font-family: var(--font-mono);
  font-size: 44px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.program-header .p-title {
  font-size: 32px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  letter-spacing: -0.5px;
}
.program-header .p-title .g { color: var(--gold); }

.program-section {
  margin-bottom: 56px;
  max-width: 860px;
}
.program-section .s-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.program-section .s-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate);
  margin: 0;
}

/* Milestone timeline */
.timeline {
  margin-top: 20px;
  position: relative;
}
.timeline .track {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
  z-index: 1;
}
.timeline .tl-item {
  position: relative;
  padding: 0 0 32px 44px;
  z-index: 2;
}
.timeline .tl-item:last-child { padding-bottom: 0; }
.timeline .tl-item .tl-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--paper);
  z-index: 3;
}
.timeline .tl-item.done .tl-dot {
  background: var(--gold);
}
.timeline .tl-item.active .tl-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,162,76,0.18);
}
.timeline .tl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline .tl-item.pending .tl-label { color: var(--mute); }
.timeline .tl-item.pending .tl-dot { border-color: var(--mute); background: var(--paper); }
.timeline .tl-title {
  font-size: 16.5px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}
.timeline .tl-item.pending .tl-title { color: var(--slate-2); font-weight: 400; }

/* ============ BRAND LOGO ============ */
.brand-logo {
  height: 60px; width: auto; display: block;
}
@media (max-width: 720px) {
  .brand-logo { height: 48px; }
}
/* Give the nav a touch more vertical room to breathe with the taller logo */
.nav-inner { padding-top: 10px; padding-bottom: 10px; }

/* ============ LANGUAGE TOGGLE ============ */
.lang-toggle {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line);
  background: rgba(250,250,247,0.6);
  margin-right: 14px;
}
.lang-toggle button {
  background: transparent; border: none; padding: 7px 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1.5px;
  color: var(--slate-2); font-weight: 700; cursor: pointer;
  transition: all .12s;
}
.lang-toggle button.active {
  background: var(--ink); color: var(--gold);
}
.lang-toggle button:hover:not(.active) { color: var(--ink); }

/* ============ STORY SECTION ============ */
.story-wrap {
  display: grid; grid-template-columns: 320px 1fr; gap: 60px;
  align-items: start;
}
.story-mark {
  background: var(--cream); padding: 40px 32px;
  border-top: 4px solid var(--gold); position: sticky; top: 100px;
  box-shadow: var(--shadow-card);
}
.story-mark .flower {
  width: 100%; height: 220px;
  background: url("assets/linnaea-flower.svg") center/contain no-repeat;
  margin-bottom: 20px;
}
.story-mark .cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  margin-bottom: 8px;
}
.story-mark .lat {
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--ink); font-size: 18px; margin-bottom: 4px;
}
.story-mark .cn {
  font-size: 14px; color: var(--slate); line-height: 1.6;
}

.story-body { max-width: 780px; }
.story-body p {
  font-size: 16.5px; line-height: 1.85; color: var(--slate);
  margin: 0 0 22px;
}
.story-body p strong { color: var(--ink); }
.story-body .drop {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px; line-height: 0.85; color: var(--gold);
  float: left; margin: 6px 12px -4px 0; font-weight: 700;
}
.story-body h3 {
  font-size: 22px; color: var(--ink); font-weight: 700;
  margin: 40px 0 14px; line-height: 1.35;
}
.story-body h3::before {
  content: ""; display: inline-block; width: 24px; height: 2px;
  background: var(--gold); vertical-align: middle;
  margin-right: 12px; transform: translateY(-4px);
}
.story-body .pact {
  background: var(--ink); color: var(--cream);
  padding: 30px 34px; margin: 34px 0;
  border-left: 4px solid var(--gold);
}
.story-body .pact .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  margin-bottom: 12px;
}
.story-body .pact p {
  color: rgba(245,241,232,0.9); margin: 0; font-size: 16px; line-height: 1.75;
}
.story-body .pact p strong { color: var(--gold-soft); }
.story-body .signoff {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--slate-2); font-size: 15px; line-height: 1.7;
}

@media (max-width: 960px) {
  .story-wrap { grid-template-columns: 1fr; gap: 30px; }
  .story-mark { position: static; }
}

/* Bilingual visibility — ONLY affects .blk wrappers.
   Elements with both data-en / data-zh but no .blk class
   are text-swapped by JS (nav links, buttons, table headers).

   For block-level containers (div, p, h1-h6), .blk becomes
   display: block when active.
   For inline text pieces (span inside a paragraph), the
   selector below shows it as inline when active — so it
   doesn't force a new line inside prose. */

/* Default: hide everything, then show the active side. */
[lang-body="en"] [data-zh].blk,
[lang-body="zh"] [data-en].blk { display: none !important; }

/* Block-level active state (div/p/h*/section/aside) */
[lang-body="en"] div[data-en].blk,
[lang-body="en"] p[data-en].blk,
[lang-body="en"] h1[data-en].blk,
[lang-body="en"] h2[data-en].blk,
[lang-body="en"] h3[data-en].blk,
[lang-body="zh"] div[data-zh].blk,
[lang-body="zh"] p[data-zh].blk,
[lang-body="zh"] h1[data-zh].blk,
[lang-body="zh"] h2[data-zh].blk,
[lang-body="zh"] h3[data-zh].blk { display: block; }

/* Inline active state (span used inline for text substitution) */
[lang-body="en"] span[data-en].blk,
[lang-body="zh"] span[data-zh].blk { display: inline; }

/* ============ MISC ============ */
.pull-quote {
  background: var(--cream); padding: 24px 28px;
  border-left: 4px solid var(--gold);
  margin-top: 32px; font-size: 15.5px; color: var(--ink); line-height: 1.65;
}
.pull-quote strong { color: var(--gold); }
.pull-quote .who { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: 1px; margin-top: 8px; }

/* ============ PLATFORM TIERS ============ */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  background: var(--card); box-shadow: var(--shadow-card);
  padding: 22px 24px 24px; border-left: 4px solid var(--gold);
}
.tier.t2 { border-left-color: var(--ink-2); }
.tier.t3 { border-left-color: var(--amber); }
.tier.t4 { border-left-color: var(--mute); }
.tier .lbl {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 3px 9px; background: var(--gold); color: var(--ink); display: inline-block;
}
.tier.t2 .lbl { background: var(--ink-2); color: var(--gold); }
.tier.t3 .lbl { background: var(--amber); color: #fff; }
.tier.t4 .lbl { background: var(--mute);  color: #fff; }
.tier .h { font-size: 17px; font-weight: 700; color: var(--ink); margin: 12px 0 6px; line-height: 1.35; }
.tier .p { font-size: 13px; color: var(--slate); line-height: 1.55; }
.tier .cnt {
  font-family: var(--font-mono); font-size: 11px; color: var(--mute);
  letter-spacing: 1px; margin-top: 12px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tier-grid { grid-template-columns: 1fr; } }
