@layer corpus {
/* Motus Corpus: a quiet night, a visible connection, a deliberate next move. */
:root {
  --night: #060b20;
  --ink: #f6f3ff;
  --ink-2: #d5d7ed;
  --label: #d7bafd;
  --edge: rgba(190, 197, 255, .18);
  --edge-hi: rgba(207, 218, 255, .38);
  --grad-1: #f7f0ff;
  --grad-2: #dbbdfb;
  --grad-3: #b6daef;
  --sanctum-ice: #bde9f7;
  --sanctum-lilac: #d5b1ff;
  --sanctum-rose: #f5b0d7;
  --sanctum-surface: #121630;
  --sanctum-rim: linear-gradient(150deg, #dfe4ff40, #98adf51a 35%, #c297e40d 65%, #b87dce26);
  --sanctum-ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: dark;
}

body::before {
  background:
    radial-gradient(ellipse 62vw 48vw at 78% 3%, #5a3d8d40, transparent 70%),
    radial-gradient(ellipse 52vw 70vw at 5% 50%, #272d7524, transparent 72%),
    radial-gradient(ellipse 62vw 45vw at 65% 90%, #3c23422b, transparent 70%),
    var(--night);
}
::selection { color: #fff; background: #8359bb88; }
:focus-visible { outline: 2px solid #c6edff; outline-offset: 4px; }
html { scroll-padding-top: 106px; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: #b88cf52e; }
button, a, summary { touch-action: manipulation; }

/* The supplied artwork is used intact, with enough space to read its motion. */
nav.top {
  height: 80px;
  gap: 16px;
  padding-inline: clamp(18px, 3vw, 44px);
  background: #080d23eb;
  border-bottom: 1px solid #abb7f41c;
  box-shadow: 0 12px 36px -24px #030616;
}
.brand { gap: 10px; flex-shrink: 0; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.brand-wordmark { font: 600 15px/1.3 var(--voice); letter-spacing: -.025em; }
.brand-wordmark small { display: block; font: 400 12px/1.5 var(--voice); color:#c0c5df; letter-spacing: .07em; }
.page-nav { gap: 3px; }
.page-nav a { min-height: 42px; padding-inline: 13px; font-size: 12px; border: 1px solid transparent; }
.page-nav a[aria-current=page] { border-color: #c4b2f635; background: #ad85eb10; color: #efdeff; box-shadow: none; }
.page-nav .nav-sanctum { color: #d6f0fd; }
.nav-sanctum::before { content: ''; width: 5px; height: 5px; background: #bce9fa; border-radius: 50%; margin-right: 7px; }
.allous-trigger, .navmenu summary { min-height: 42px; border-color: #b4bceb35; background: #a59adb08; box-shadow: none; }
.allous-trigger { font-size: 12px; }
.navmenu summary { font-size: 12px; }
.navmenu[open] summary { background: #a985db21; border-color: #c5a8f65c; }
.navmenu ol { background: linear-gradient(145deg, #22213dfc, #10162cfc); border-color: #c2c5f033; top: 52px; padding: 9px; }
.navmenu li a { font-size: 13px; min-height: 44px; }
.skip:focus { z-index: 1200; }

/* Distinct entrances share one clear way into the workshop. */
.hero, .hero-short { padding-top: 118px; }
.hero-short { padding-bottom: 84px; min-height: 0; }
.hero-copy { max-width: 900px; }
.hero h1, .hero-short h1 { letter-spacing: -.047em; line-height: 1.075; }
.hero-copy .lede { line-height: 1.7; max-width: 620px; color: #d7d6e9; }
.hero-short .hero-copy { margin-top: -14px; }
.hero-signature { display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 12px/1.4 var(--voice); color: #d4c4ed; margin: 0 auto 18px; }
.hero-signature img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: center; margin: 32px auto 0; }
.hero-actions .cta { margin-top: 0; font-size: 14px; min-height: 54px; padding: 0 24px; text-align: center; line-height: 1.4; }
.hero-secondary { display: inline-flex; align-items: center; gap: 12px; color: #d5d5eb; text-decoration: none; font: 500 12px/1.5 var(--voice); min-height: 38px; }
.hero-secondary:hover { color: #f6eaff; }
.hero-secondary span { color:#d5bafc; }
.chip-top { color: #dfe0f4; background: #10152d96; border-color: #c0adea2e; min-height: 32px; font-size: 12px; }
.lens-seal { color: #d8d5ec; background: #11152c80; }
.lens-frame { height: clamp(290px, 33vw, 425px); margin-bottom: -18px; }
.cta, .allous-primary, .sx-primary {
  background: linear-gradient(130deg, #9675d9, #795ac3 70%, #6b66bb);
  border-color: #dfccff55;
  box-shadow: inset 0 1px 0 #ffffff2b, 0 14px 28px -20px #b17deca6;
  transition: transform 180ms var(--sanctum-ease), background 180ms var(--sanctum-ease), border-color 180ms var(--sanctum-ease);
}
.cta:hover, .allous-primary:hover, .sx-primary:hover { background: linear-gradient(130deg, #a17fe4, #8769d3 70%, #7672cd); border-color: #eadbff8c; box-shadow: inset 0 1px 0 #ffffff2b, 0 16px 34px -24px #b17deca6; }

/* A restrained rim makes glass feel held; the page stays readable in motion. */
.glass {
  border: 1px solid transparent;
  background: linear-gradient(145deg, #20203beF, #11172ff5 65%) padding-box, var(--sanctum-rim) border-box;
  box-shadow: inset 0 1px 0 #ffffff09, 0 22px 46px -34px #020510;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.glass.play { border-color: #c788b13d; }
.glass.sys { border-color: #9bc7ef3d; }
.glass.chain { border-color: #c6a4ed3d; }
.model { transition: border-color 200ms var(--sanctum-ease), transform 200ms var(--sanctum-ease); }
.model:hover { border-color: #d0b8f65c; transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff12, 0 24px 42px -32px #020510; }
.model h3 { line-height: 1.3; }
.model .tl, .card p { line-height: 1.75; }
.sect { padding-block: 112px 102px; }
.sect + .sect > .wrap::before { margin-bottom: 46px; background: linear-gradient(90deg, #c5b0ed25, #b2d4ec22 55%, transparent); }
.sect > .wrap > .eyebrow { color: #d2bfeb; }
.value summary, .model .more summary { min-height: 44px; }
.lm-node rect { fill: #181e38; stroke: #b2a1d5; stroke-width: 1.2; }
.lm-node.on rect, .lm-node:hover rect { fill: #342750; stroke: #dceaff; filter: none; }
.lm-edge.on path { stroke: #d5c4ef; filter: none; }
.chart-wrap, #labChart { border-color: #aab9ee2b; }
.horizon figcaption span { text-wrap: pretty; letter-spacing: .035em; line-height: 1.7; }
.media-meaning { background: #0e142bc7; border: 1px solid #c1afe52b; border-left: 2px solid #c7b1ec; border-radius: 0 14px 14px 0; backdrop-filter: blur(12px); }

/* The full atlas remains a detailed instrument beneath the guided Sanctum. */
.systems-explorer { padding-top: 106px !important; background: radial-gradient(ellipse at 15% 20%, #3024531c, transparent 60%); }
.sx-shell { border-color: #c1b9e433; background: #0c1229; box-shadow: inset 0 1px 0 #f4eeff0a, 0 28px 70px -50px #02030a; }
.sx-stage { background: radial-gradient(ellipse at 45% 45%, #59366b24, transparent 60%), #080f26; }
.sx-inspector { background: linear-gradient(155deg, #251e386b, #141a31b3); }
.sx-inspector h3 { line-height: 1.3; }
.sx-inspector .sx-label { color: #d2c2e8; }
.sx-reason { padding-top: 16px; border-top: 1px solid #c4b2eb29; }
.sx-reason h4 { color: #d9c7f3; font-size: 12px; }
.sx-reason p { color: #d5d7e8; }
.sx-catalog, .sx-experiment, .sx-architect, .sx-organism { background: linear-gradient(145deg, #20203bba, #11182dc9); border-color: #c0b9e12d; }
.sx-metric { background: #151a30cc; border-color: #b4bcec26; }
.sx-metric strong { color: #dcc9f3; }
.sx-btn, .sx-select, .sx-input { border-color: #c2bfeb38; }
.sx-btn:not(.sx-primary) { background: #22223b; }
.sx-btn:not(.sx-primary):hover { background: #302a49; border-color: #d6c0ef66; }
.sx-select, .sx-input { background: #12192e; }
.sx-option:has(input:checked) { border-color: #c9b4f176; background: #9673c912; }
.sx-chart { background: #0a1227; }
.allous { box-shadow: 0 32px 100px #020411aa; }
.allous-md { line-height: 1.75; }
.colophon { border-top: 1px solid #c2b3eb1f; }

/* Readable instruments: captions remain secondary without becoming microscopic. */
#systems-sanctum .sn-label { font-size: 12px; }
#systems-sanctum .sn-inspector > .sn-eyebrow { font-size: 12px; }
#systems-sanctum .sn-ports dt { font-size: 12px; }
#systems-sanctum .sn-ports dd { font-size: 13px; }
#systems-sanctum .sn-member summary { font-size: 12px; }
#systems-sanctum .sn-small > summary { font-size: 12px; }
#systems-sanctum .sn-legend { font-size: 12px; color:#c5c4db; }
#systems-sanctum .sn-disclosure { font-size: 12px; }
#systems-sanctum .sn-metric small { font-size: 12px; color:#c7c3d9; }
#systems-sanctum .sn-tab > span:first-child { color:#c9c4d9; }
#systems-sanctum .sn-testcontrols output,
#systems-sanctum .sn-time { font-size: 12px; }

@media (max-width: 1100px) {
  nav.top { gap: 12px; padding-inline: 20px; }
  .page-nav a { padding-inline: 10px; }
  .brand-wordmark { font-size: 14px; }
}
@media (max-width: 900px) {
  nav.top { height: 116px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 8px; align-content: center; padding: 8px 16px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-wordmark { font-size: 14px; }
  .brand-wordmark small { font-size: 12px; }
  .page-nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1fr 1fr .9fr; margin: 0; gap: 4px; width: min(100%, 540px); justify-self: center; }
  .page-nav a { padding: 0 6px; font-size: 12px; justify-content: center; min-height: 44px; border-radius: 11px; }
  .nav-sanctum::before { display: none; }
  .allous-trigger { width: 42px; min-width: 42px; margin-left: 0; justify-content: center; padding: 0; }
  .allous-trigger-label { display: none; }
  .navmenu summary { min-height: 42px; padding-inline: 12px; }
  .navmenu ol { top: 52px; width: min(88vw, 320px); max-height: calc(100dvh - 160px); }
  html { scroll-padding-top: 140px; }
  .hero, .hero-short { padding-top: 148px; }
}
@media (max-width: 720px) {
  .hero { padding-inline: 20px; }
  .hero-short { padding-inline: 22px; padding-bottom: 65px; }
  .hero h1, .hero-short h1 { font-size: clamp(34px, 9vw, 48px); letter-spacing: -.044em; }
  .hero-copy .lede { font-size: 16px; line-height: 1.7; margin: 22px auto 26px; }
  .hero-short .hero-copy { margin-top: 0; }
  .hero-signature { font-size: 12px; gap: 7px; margin-bottom: 16px; }
  .hero-signature img { width: 32px; height: 32px; }
  .hero-actions { gap: 12px; margin-top: 24px; width: 100%; }
  .hero-actions .cta { min-height: 54px; width: min(100%, 340px); justify-content: center; padding-inline: 15px; font-size: 12px; }
  .hero-secondary { min-height: 44px; font-size: 12px; }
  .lens-frame { height: 275px; margin-top: -8px; margin-bottom: -14px; }
  .lens-seal { font-size: 12px; padding-inline: 13px; }
  .hero .ring-stage { height: 310px; min-height: 280px; }
  .hero .ring-read { font-size: 12px; min-height: 40px; margin-block: 12px; }
  .sect { padding-block: 76px 66px; }
  .sect + .sect > .wrap::before { margin-bottom: 32px; }
  .sect > .wrap { width: calc(100% - 36px); }
  .sect h2 { font-size: clamp(30px, 8.5vw, 42px); }
  .big { font-size: 18px; }
  .statement { font-size: 16px; }
  .model h3 { font-size: 22px; }
  .glass { border-radius: 22px; }
  .systems-explorer { padding: 80px 16px !important; }
  .systems-explorer .sx-wrap { width: 100%; }
  .systems-explorer h2 { font-size: 36px; }
  .sx-shell, .sx-architect, .sx-organism { border-radius: 23px; }
  .sx-inspector { max-height: 440px; }
  .sx-btn { min-height: 44px; }
  .sx-reasoning { gap: 26px; }
  .sx-reason p { line-height: 1.75; }
  .sx-map { min-height: 340px; }
  .sx-labcontrols { row-gap: 24px; }
  .sx-catalog > summary, .sx-experiment > summary { padding: 20px; }
  .sx-labbody { padding-inline: 16px; }
  .sx-transport input { min-width: 140px; }
  .sx-source { overflow-wrap: anywhere; }
  .media-meaning { left: 18px; max-width: 235px; padding: 10px 12px; line-height: 1.6; }
  .horizon figcaption span { max-width: calc(100% - 18px); font-size: 12px; }
  .allous-ta, .allous-key, .allous-other { font-size: 16px; }
  .allous-bar .allous-model { font-size: 13px; }
  .voice-tour { margin-inline: 16px; }
  #systems-sanctum .sn-input,
  #systems-sanctum .sn-select,
  #systems-sanctum .sn-allous > .sn-input { font-size: 16px; }
  #systems-sanctum .sn-button { min-height: 44px; }
  #systems-sanctum .sn-toolbar .sn-button { font-size: 12px; }
  #systems-sanctum .sn-quick .sn-button { font-size: 12px; }
  #systems-sanctum .sn-metric .sn-label { font-size: 12px; }
  #systems-sanctum .sn-metric small { font-size: 12px; }
  #systems-sanctum .sn-legend { font-size: 12px; }
}
@media (max-width: 360px) {
  nav.top { padding-inline: 12px; column-gap: 6px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 12px; }
  .page-nav { gap: 2px; }
  .page-nav a { padding-inline: 3px; font-size: 12px; }
  .hero, .hero-short { padding-inline: 16px; }
  .hero-signature { font-size: 12px; }
  .sx-labcontrols, .sx-labcontrols:first-of-type { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cta, .model, .sx-btn { transition: none; }
  .cta:hover, .model:hover { transform: none; }
}
}
