/* ---------- Sigrix Refined Design System — Mission ----------
 * Lifted from Sigrix_new/Sigrix Mission.html. Light variant only, mirrors
 * the home/hub setup in sx-home.css / sx-hub.css. All rules are scoped
 * under `.sx` / `.mx-*` so they do not leak into other pages. Loaded
 * *after* sx-home.css, which provides the shared palette, buttons,
 * chips, nav, and footer styles. */

/* ---------- Hero — same anatomy as home for cross-page alignment ----------
 * `.mx-hero` gets its full-viewport breakout from the shared `.sx-bleed`
 * rule in sx-home.css (#3080); no per-page breakout is declared here. */
.sx .mx-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.sx .mx-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 440px at 18% 0%, rgba(26,31,107,0.14), transparent 60%),
    radial-gradient(700px 360px at 92% 30%, rgba(20,184,166,0.08), transparent 65%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}
.sx .mx-hero-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14,19,32,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,19,32,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(800px 420px at 30% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 420px at 30% 0%, black, transparent 75%);
}
.sx .mx-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: end;
}
.sx .mx-hero .sx-eyebrow { margin-bottom: 20px; }
.sx .mx-hero h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.sx .mx-hero h1 .accent {
  background: linear-gradient(135deg, #3D4DFF 0%, #1A1F6B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sx .mx-hero .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--sx-text-2);
  max-width: 60ch;
  line-height: 1.55;
}
.sx .mx-hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Right-rail — short manifesto card pinned to hero baseline ---------- */
.sx .mx-manifesto {
  position: relative;
  padding: 24px;
  border-radius: var(--sx-r-lg);
  background: var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sx .mx-manifesto::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, #3D4DFF, #7CE3D4);
  border-radius: 2px;
}
.sx .mx-manifesto-q {
  font-family: var(--sx-font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--sx-text);
  margin: 0;
}
.sx .mx-manifesto-a {
  font-size: 13px;
  color: var(--sx-text-2);
  line-height: 1.55;
  margin: 0;
}
.sx .mx-manifesto-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--sx-line);
  font-family: var(--sx-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sx-text-3);
}
.sx .mx-manifesto-meta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sx-ok);
  box-shadow: 0 0 0 3px rgba(31,157,85,0.18);
}

/* ---------- Section header reused across the page ---------- */
.sx .mx-sect-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 56ch);
  gap: 64px;
  margin-bottom: 40px;
  align-items: end;
}
.sx .mx-sect-head h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 12px 0 0;
}
.sx .mx-sect-head .sub {
  color: var(--sx-text-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Value prop cards — 2x2, each with its own typed accent ---------- */
.sx .mx-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sx .mx-value {
  position: relative;
  padding: 28px;
  border-radius: var(--sx-r-lg);
  background: var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  transition: box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}
.sx .mx-value:hover {
  background: var(--sx-surface-2);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 12px 30px -16px rgba(14,19,32,0.18);
}
.sx .mx-value-icon {
  width: 64px; height: 64px;
  border-radius: var(--sx-r-md);
  background: var(--sx-bg);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex: none;
}
.sx .mx-value-icon svg { width: 100%; height: 100%; display: block; }
.sx .mx-value-num {
  font-family: var(--sx-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sx-text-3);
}
.sx .mx-value h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}
.sx .mx-value p {
  font-size: 15px;
  color: var(--sx-text-2);
  margin: 10px 0 0;
  line-height: 1.55;
}
.sx .mx-value-foot {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--sx-text-3);
  font-family: var(--sx-font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sx .mx-value-foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.sx .mx-value--prompt    .mx-value-foot { color: #2A33C4; }
.sx .mx-value--persona   .mx-value-foot { color: #C77800; }
.sx .mx-value--agent     .mx-value-foot { color: #14B8A6; }
.sx .mx-value--assistant .mx-value-foot { color: #6D28D9; }

/* ---------- Principles strip — quiet enumerated beliefs ---------- */
.sx .mx-principles {
  margin-top: 96px;
  border-top: 1px solid var(--sx-line);
  border-bottom: 1px solid var(--sx-line);
  padding: 56px 0;
}
.sx .mx-principles-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.sx .mx-principles h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 12px 0 0;
}
.sx .mx-principles-intro {
  color: var(--sx-text-2);
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.6;
  max-width: 32ch;
}
.sx .mx-principles-list { display: grid; gap: 0; }
.sx .mx-principle {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sx-line);
  align-items: baseline;
}
.sx .mx-principle:last-child { border-bottom: 0; }
.sx .mx-principle .n {
  font-family: var(--sx-font-mono);
  font-size: 12px;
  color: var(--sx-text-3);
  letter-spacing: 0.04em;
}
.sx .mx-principle .t {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sx-text);
  margin: 0 0 6px;
}
.sx .mx-principle .d {
  font-size: 14px;
  color: var(--sx-text-2);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}
.sx .mx-principle .tag {
  font-family: var(--sx-font-mono);
  font-size: 11px;
  color: var(--sx-text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: center;
}

/* ---------- Pull-quote — third movement, brand-tinted ---------- */
.sx .mx-pull {
  margin-top: 96px;
  position: relative;
  padding: 64px 56px;
  border-radius: var(--sx-r-xl);
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(26,31,107,0.14), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(20,184,166,0.10), transparent 60%),
    var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  overflow: hidden;
}
.sx .mx-pull-body {
  position: relative;
  max-width: 26ch;
}
.sx .mx-pull-mark {
  font-family: var(--sx-font-display);
  font-size: 96px;
  line-height: 0.6;
  color: var(--sx-brand);
  opacity: 0.75;
  letter-spacing: -0.05em;
  user-select: none;
}
.sx .mx-pull blockquote {
  margin: 0;
  font-family: var(--sx-font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 22ch;
  text-wrap: balance;
}
.sx .mx-pull blockquote em {
  font-style: normal;
  background: linear-gradient(135deg, #14B8A6 0%, #2A33C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sx .mx-pull-cite {
  margin-top: 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--sx-text-2);
  flex-wrap: wrap;
}
.sx .mx-pull-cite .label {
  font-family: var(--sx-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sx-text-3);
}
.sx .mx-pull-cite .sep { color: var(--sx-text-3); }
.sx .mx-pull-grid-frame {
  position: absolute;
  top: 32px; right: 56px; bottom: 32px;
  width: 220px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  gap: 1px;
  background: var(--sx-line);
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-r-md);
  overflow: hidden;
  opacity: 0.55;
  pointer-events: none;
}
.sx .mx-pull-grid-frame > div { background: var(--sx-surface); }
.sx .mx-pull-grid-frame > div:nth-child(1),
.sx .mx-pull-grid-frame > div:nth-child(6),
.sx .mx-pull-grid-frame > div:nth-child(11),
.sx .mx-pull-grid-frame > div:nth-child(16) {
  background: linear-gradient(135deg, #6B78FF 0%, #3D4DFF 100%);
}
.sx .mx-pull-grid-frame > div:nth-child(7),
.sx .mx-pull-grid-frame > div:nth-child(10) {
  background: linear-gradient(135deg, #7CE3D4 0%, #3FB8A4 100%);
}

/* ---------- CTA banner — same family as the home page banner ---------- */
.sx .mx-cta {
  margin-top: 96px;
  margin-bottom: 96px;
  padding: 56px 48px;
  border-radius: var(--sx-r-xl);
  background:
    radial-gradient(800px 300px at 100% 50%, rgba(61,77,255,0.12), transparent 60%),
    var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.sx .mx-cta-copy { max-width: 50ch; }
.sx .mx-cta h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.sx .mx-cta p {
  color: var(--sx-text-2);
  margin-top: 10px;
  font-size: 16px;
}
.sx .mx-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sx .mx-hero { padding: 72px 0 56px; }
  .sx .mx-hero h1 { font-size: 52px; }
  .sx .mx-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .sx .mx-sect-head { grid-template-columns: 1fr; gap: 16px; }
  .sx .mx-sect-head h2 { font-size: 32px; }
  .sx .mx-values { grid-template-columns: 1fr; }
  .sx .mx-principles-grid { grid-template-columns: 1fr; gap: 24px; }
  .sx .mx-pull { padding: 40px 28px; }
  .sx .mx-pull blockquote { font-size: 28px; }
  .sx .mx-pull-grid-frame { display: none; }
  .sx .mx-cta { padding: 40px 28px; }
}

@media (max-width: 640px) {
  .sx .mx-hero h1 { font-size: 42px; }
  .sx .mx-value { grid-template-columns: 1fr; gap: 16px; }
  .sx .mx-principle { grid-template-columns: 1fr; gap: 4px; }
  .sx .mx-principle .tag { justify-self: start; }
  .sx .mx-cta { flex-direction: column; align-items: flex-start; }
}
