:root {
  color-scheme: dark;
  --red: #d13a30;
  --red-strong: #ff7464;
  --ink: #f0f4fa;
  --muted: #aab9cd;
  --night: #090e18;
  --night-raised: #101a29;
  --night-copy: #b7c5d7;
  --edge: #30425b;
  --paper: #0e1725;
  --white: #f3f7ff;
  --signal: #a4e3df;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body { background: var(--night); }
.eyebrow, .meta, .node-code { color: #ffab9e; }
.eyebrow, .node-code { font-family: var(--mono); }
.section-head > p, .chain-panel p:not(.meta), .quality-standards dd, .quality-checks p { color: var(--muted); }
.site-header { background: #0a111dea; border-color: #27384d; backdrop-filter: blur(16px); }
.brand span { border-color: var(--edge); color: #d9e4f2; }
.brand img { filter: brightness(0) invert(1); }
.nav a { color: #d9e3ef; }
.nav a:hover, .nav .nav-trust { color: #ffa093; }
.nav-toggle { background: #131d2c; color: var(--ink); }
.primary { background: #c9362d; box-shadow: inset 0 1px #ffffff2b, 0 0 28px #d9373027; }
.primary:hover { background: #b62b24; }
.outline { background: #142035bb; border-color: #59708c; }
.outline:hover { background: #1a2b41; }
.pale { color: #e3efff; background: #162338; border-color: #526986; }
.inline-link, .store-grid a { color: #ffaca0; }

.hero { background: #0a0e17; }
.hero-visual { inset: 0 0 70px 31%; background: radial-gradient(ellipse at 68% 50%, #182d44, #0a0e17 77%); }
.hero-art { object-position: 60% 53%; }
.hero-visual::after { background: linear-gradient(90deg,#0a0e17 0%,#0a0e17e8 8%,#0a0e1700 42%), linear-gradient(0deg,#0a0e17 0%,#0a0e1700 23%); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 89px, #9cb8d808 89px 90px); mask-image: linear-gradient(to right, #000, #0000 62%); }
.hero-inner { min-height: clamp(495px, 44vw, 684px); }
.hero-copy { padding-block: 60px 104px; }
.hero h1 { font-size: clamp(3.2rem, 6.25vw, 6.5rem); }
.hero h1 em { color: #ff8879; background: linear-gradient(104deg,#fff0e9,#ff7a6a 73%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .eyebrow { color: #a4e3df; }
.hero-copy > p { max-width: 28rem; }
.hero-caption { font-size: .78rem; color: #aabbcf; }
.hero-ledger { position: absolute; right: 0; bottom: 54px; min-width: 270px; padding: 13px 15px; border: 1px solid #8dabc451; border-left: 2px solid #f77c6b; border-radius: 2px; background: #0e1723dc; backdrop-filter: blur(7px); }
.ledger-label { display: block; font: 650 .72rem/1.4 var(--mono); letter-spacing: .07em; color: #a4e3df; }
.hero-ledger ul { display: flex; gap: 16px; margin-top: 8px; padding: 0; list-style: none; color: #e2eafa; font-size: .84rem; }
.hero-ledger li + li { border-left: 1px solid #526681; padding-left: 14px; }
.hero-index { background: #0d1523; border-color: #36516e; }
.hero-index a { border-color: #2c3f57; }
.hero-index a span { color: #9bcacf; font-family: var(--mono); }
.hero-index a:hover { background: #142437; color: #f5a49a; }

.chain { background: linear-gradient(140deg,#101e2e,#0b1422 73%); }
.chain-map { border-color: #3d5771; background-color: #0a1320; background-image: radial-gradient(#7895ad29 1px, transparent 1px); }
.chain-controls button { border-color: #3b536c; background: #142234; }
.chain-controls button[aria-pressed="true"] { border-color: #f98779; background: #302331; box-shadow: inset 0 3px #e86b5c; }
.chain-panel { border-color: #304860; background: #0f1b2b; }
.tags li { background: #162740; color: #d7e6fa; border-color: #3a516d; }
.record-bar { color: #b3c6db; border-color: #304860; }
.research { background: #0a121e; }
.research-steps li { border-color: #485f7d; }
.stage-num { color: #ffc3b5; background: #301f2c; border: 1px solid #693e50; }
.rd-case { background: #142237; border-color: #3a506a; }
.rd-case img { filter: brightness(.82) saturate(.75); }
.quality { background: #101d2c; }
.quality-layout > div { background: #0c1624; border-color: #334e68; }
.quality-checks strong { color: #ffb1a5; }
.digital { background: radial-gradient(ellipse at 84% 14%,#1a394e,#0a121e 67%); }
.digital-controls button { background: #132236; }
.digital-panels article { background: #142438; }

.finance { background: radial-gradient(ellipse at 18% 0,#142840,#0a1320 67%); border-block: 1px solid #304662; }
.finance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.finance-grid article { padding: clamp(19px,2.5vw,33px); border: 1px solid #38516d; border-top: 2px solid #6288a1; background: #111e30; }
.finance-grid article:last-child { border-top-color: #d9756b; }
.finance-grid h3 { margin-block: 8px 11px; }
.finance-grid article p:not(.meta) { color: var(--muted); }
.finance-note { color: #aabbd3; font-size: .88rem; margin-top: 19px; }
.services-section { background: #0c1624; }
.site-footer { background: #09121f; }

@media (max-width: 780px) {
  .hero-visual { inset: 0 0 75px; opacity: .88; }
  .hero-visual::after { background: linear-gradient(180deg,#090e18 0%,#090e18d9 22%,#090e184c 63%,#090e18 100%), linear-gradient(90deg,#090e1899,transparent); }
  .hero-art { object-position: 67% 54%; }
  .hero-inner { min-height: 520px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.4rem); }
  .hero-copy { padding-block: 44px 132px; }
  .hero-ledger { right: auto; left: 0; bottom: 43px; padding: 9px 11px; min-width: 232px; }
  .hero-ledger ul { margin-top: 5px; gap: 9px; }
  .hero-ledger li + li { padding-left: 8px; }
  .hero-caption { right: 0; bottom: 11px; }
  .finance-grid { grid-template-columns: 1fr; }
}
