/*
 * CyberAlchemy Exchange · powered by KEP
 * Visual source: Arcanum documentation and CyberAlchemy × Arcanum presentation.
 */
:root {
  color-scheme: light;
  --ink: #151515;
  --black: #050505;
  --shell: #20252a;
  --paper: #fdfaf3;
  --surface: #fffdf8;
  --paper-soft: #f6f0e4;
  --line: #e3ded2;
  --text: #151515;
  --muted: #626262;
  --dim: #7f8385;
  --red: #e60023;
  --red-deep: #991022;
  --orange: #e85d18;
  --amber: #f0a43c;
  --teal: #088f8a;
  --green: #2f8b57;
  --blue: #2e6bb8;
  --violet: #5c55b8;
  --mint: #e60023;
  --danger: #b4232b;
  --shadow: 0 18px 60px rgba(21, 21, 21, .12);
  --shadow-soft: 0 10px 32px rgba(21, 21, 21, .07);
  --font-ui: "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Times New Roman", ui-serif, serif;
  font-family: var(--font-ui);
}

html { background: var(--paper); }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 5%, rgba(230,0,35,.035), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}
.ambient { display: none; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(230,0,35,.24);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 66px;
  padding: 0 clamp(18px, 3.5vw, 54px);
  color: var(--ink);
  background: rgba(253,250,243,.9);
  border-bottom: 1px solid rgba(227,222,210,.92);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.brand { gap: 11px; }
.brand-mark {
  display: block;
  width: 39px;
  height: 39px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-copy { display: block; }
.brand strong {
  color: var(--ink);
  font: 800 .96rem/1.05 var(--font-ui);
  letter-spacing: -.025em;
}
.brand small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .025em;
}
.network-cluster { gap: .5rem; }
.paper-link {
  padding: .3rem .15rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  font-size: .78rem;
  font-weight: 760;
  text-decoration: none;
}
.paper-link:hover { color: var(--red); border-bottom-color: var(--red); }
.network,
.service-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: .36rem .72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .015em;
}
.network i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,93,24,.1);
}
.service-status.online { color: var(--green); }
.service-status.offline { color: var(--red-deep); }
.topbar .button-quiet {
  min-height: 38px;
  padding: .55rem .9rem;
  color: var(--surface);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
}
.topbar .button-quiet:hover { color: white; background: var(--red); border-color: var(--red); }

.shell {
  display: block;
  width: 100%;
  margin: 0 auto;
}
.rail {
  top: 66px;
  z-index: 20;
  min-height: 0;
  max-height: none;
  padding: .55rem clamp(18px, 3.5vw, 54px);
  color: #f8f7f3;
  background: var(--black);
  border-right: 0;
}
.scene-nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.scene-move {
  min-width: 78px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem .8rem;
  color: #d7d7d2;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  cursor: pointer;
}
.scene-move:hover { color: white; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.09); }
.scene-move:disabled { opacity: .28; cursor: not-allowed; }
.scene-move span { color: var(--orange); font: 700 1rem ui-monospace, monospace; }
.scene-move small { color: inherit; font-size: .73rem; font-weight: 800; }
.scene-move-next { color: white; background: var(--red); border-color: var(--red); }
.scene-move-next:hover { background: var(--red-deep); border-color: var(--red-deep); }
.scene-status {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(90px, auto) 1fr;
  align-items: baseline;
  gap: .2rem .8rem;
}
.scene-position { color: var(--orange); font: 700 .68rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.scene-status strong { color: white; font-size: .86rem; }
.scene-status > small { overflow: hidden; color: #8f908c; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.scene-track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; margin-top: .25rem; }
.scene-track i { height: 2px; background: #303030; border-radius: 99px; }
.scene-track i.complete { background: #767670; }
.scene-track i.active { background: linear-gradient(90deg, var(--red), var(--orange)); }

.workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-width: 0;
  padding: 0 1.25rem 2.25rem;
  background: transparent;
}
.workspace-head {
  position: relative;
  display: flex;
  min-height: 142px;
  align-items: center;
  overflow: hidden;
  margin: 0;
  padding: 1.4rem 0 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.workspace-title { position: relative; z-index: 3; width: calc(100% - 270px); }
.eyebrow {
  color: var(--red);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.workspace-title h1 {
  max-width: 800px;
  margin: .36rem 0 .55rem;
  color: var(--ink);
  font: 600 clamp(2.25rem, 3.25vw, 3.1rem)/.92 var(--font-display);
  letter-spacing: -.048em;
  white-space: nowrap;
}
.workspace-title h1 br { display: block; }
.workspace-title h1 em { color: var(--red); font-style: italic; font-weight: 500; }
.workspace-title > p { max-width: 590px; margin: 0; color: #494949; font-size: .92rem; line-height: 1.5; }
.workspace-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 2px;
  margin-top: .8rem;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--orange));
}
.flow-summary { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 1.15rem; }
.flow-summary span {
  padding: .36rem .58rem;
  color: #474747;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
}
.flow-summary i { color: var(--red); font: normal 800 .8rem ui-monospace, monospace; }
.orb-scene {
  position: absolute;
  inset: 0 0 0 auto;
  width: 290px;
  overflow: hidden;
}
.orb-scene::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, var(--paper), rgba(253,250,243,.2) 38%, transparent 70%);
}
.orb-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transform: rotate(var(--scene-turn, -8deg)) scale(.96);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}
.orb-index {
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  z-index: 2;
  display: grid;
  justify-items: end;
  color: var(--red);
}
.orb-index small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.orb-index b { font: 600 1.6rem/1 var(--font-display); }
body[data-scene="grant"] .orb-scene img,
body[data-scene="reissue"] .orb-scene img { filter: saturate(1.12) contrast(1.04); }
body[data-scene="evidence"] .orb-scene img { filter: saturate(.85) contrast(1.08); }
.orb-caption {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  z-index: 2;
  width: min(230px, 82%);
  padding: .85rem .95rem;
  color: var(--surface);
  background: rgba(21,21,21,.94);
  border-left: 3px solid var(--red);
  box-shadow: 0 12px 30px rgba(21,21,21,.16);
}
.orb-caption span { display: block; margin-bottom: .3rem; color: #b9b9b4; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.orb-caption strong { font-size: .84rem; line-height: 1.45; }

.exchange-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding-top: 1rem;
}
.work-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.work-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--orange));
}
.work-card-head {
  padding: 1.4rem 1.55rem 1.2rem;
  background: var(--surface);
  border-bottom-color: var(--line);
}
.work-card-head h2 {
  margin: .36rem 0 0;
  color: var(--ink);
  font: 600 clamp(1.45rem, 2vw, 1.92rem)/1.08 var(--font-display);
  letter-spacing: -.025em;
}
.role-switch { padding: .22rem; background: #f1eadc; border: 1px solid #e5ddcd; border-radius: 999px; }
.role { min-width: 66px; padding: .52rem .76rem; border-radius: 999px; font-size: .8rem; }
.role.active { color: white; background: var(--ink); }
.stage { min-height: 288px; padding: 1.45rem 1.55rem 1.65rem; }
.stage-copy { margin-bottom: 1.15rem; }
.stage-copy p { max-width: 660px; color: var(--muted); font-size: .94rem; line-height: 1.58; }
.status-chip {
  color: var(--muted);
  background: #f1eadc;
  border-color: #e5ddcd;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}
.status-chip.good { color: var(--green); background: #e6f3ee; border-color: #cce5da; }
.field-grid { gap: .82rem; }
.field { gap: .38rem; }
.field label { color: #383838; font-size: .875rem; font-weight: 760; }
.field small { color: #77746e; font-size: .75rem; }
.input,
.textarea,
.select {
  min-height: 44px;
  padding: .72rem .8rem;
  color: var(--ink);
  background: white;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(21,21,21,.025);
}
.input:hover, .textarea:hover, .select:hover { border-color: #bdb5a7; }
.input::placeholder, .textarea::placeholder { color: #9a978f; }
.input[readonly] { color: var(--muted); background: #f6f2e9; }
.button {
  min-height: 40px;
  padding: .68rem .9rem;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--red); box-shadow: 0 8px 20px rgba(230,0,35,.17); }
.button-primary:hover { background: var(--red-deep); box-shadow: 0 10px 24px rgba(153,16,34,.2); }
.button-secondary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: #343434; }
.button-quiet { color: var(--ink); background: transparent; border-color: #cfc8ba; }
.button-danger { color: var(--red-deep); background: #fbe7e0; border-color: #f2c8ba; }
.text-button { color: var(--red); font-weight: 800; }
.actions { gap: .55rem; }
.actions .hint { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.split-actions { gap: .62rem; }
.action-tile { padding: .82rem; background: #fbf8ef; border-color: var(--line); border-radius: 7px; }
.action-tile b { font-size: .86rem; }
.action-tile small { color: var(--muted); font-size: .74rem; }
.private-result { color: var(--ink); background: #fff3e9; border-color: #f4c7b5; border-radius: 6px; }
.private-result strong { color: var(--red-deep); }
.artifact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.artifact-summary span { min-width: 0; padding: .9rem 1rem; background: #fbf8ef; }
.artifact-summary small, .artifact-summary strong { display: block; }
.artifact-summary small { margin-bottom: .24rem; color: var(--muted); font-size: .7rem; }
.artifact-summary strong { overflow: hidden; color: var(--ink); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.scene-wait, .scene-complete {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 88px;
  padding: 1rem;
  color: var(--ink);
  background: #fbf8ef;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.scene-wait { display: grid; gap: .2rem; }
.scene-wait strong, .scene-complete strong { font-size: .88rem; }
.scene-wait span, .scene-complete small { display: block; color: var(--muted); font-size: .78rem; }
.scene-complete > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; color: white; background: var(--green); border-radius: 50%; }

.ownership-panel {
  overflow: hidden;
  color: #f8f7f3;
  background:
    radial-gradient(circle at 100% 0%, rgba(230,0,35,.16), transparent 13rem),
    var(--black);
  border: 1px solid #252525;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.ownership-panel > summary,
.support-panel > summary {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: .75rem;
  min-height: 50px;
  padding: .7rem 1rem;
  cursor: pointer;
  list-style: none;
}
.ownership-panel > summary::-webkit-details-marker,
.support-panel > summary::-webkit-details-marker { display: none; }
.ownership-panel > summary::after,
.support-panel > summary::after {
  content: "+";
  justify-self: end;
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 500;
}
.ownership-panel[open] > summary::after,
.support-panel[open] > summary::after { content: "−"; }
.ownership-panel > summary span {
  color: #f8f7f3;
  font-size: .86rem;
  font-weight: 800;
}
.ownership-panel > summary strong {
  color: var(--orange);
  font: 700 .78rem ui-monospace, monospace;
  letter-spacing: .08em;
}
.ownership-panel > summary small { justify-self: end; color: #92938f; font-size: .74rem; }
.ownership-panel[open] > summary { border-bottom: 1px solid rgba(255,255,255,.1); }
.ownership-content { padding-bottom: 1rem; }
.ownership-content > .text-button { margin: 0 1rem; color: #d7d5ce; }
.panel-heading { padding: 1.1rem 1.1rem .92rem; border-bottom: 1px solid rgba(255,255,255,.11); }
.panel-heading .eyebrow { display: block; color: #a7a7a2; }
.panel-heading strong { display: block; margin-top: .5rem; color: var(--orange); font: 700 .72rem ui-monospace, monospace; letter-spacing: .08em; }
.panel-heading #ownership-state {
  position: static;
  inset: auto;
  transform: none;
  white-space: normal;
}
.ownership-map {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  gap: .65rem;
  margin: 0;
  padding: 1rem;
}
.person-card {
  min-height: 72px;
  padding: .8rem;
  color: #f8f7f3;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
  border-radius: 7px;
  box-shadow: none;
}
.person-letter { width: 38px; height: 38px; font-family: var(--font-ui); font-size: .9rem; }
.active-owner .person-letter { color: white; background: var(--red); border-color: var(--red); }
.pending-owner .person-letter { color: #a8a9a5; background: rgba(255,255,255,.03); border-color: #53565a; }
.pending-owner.is-owner .person-letter { color: white; background: var(--teal); border-color: var(--teal); }
.person-card small { color: #a2a39e; font-size: .72rem; }
.person-card strong { font-size: .84rem; }
.exchange-path {
  grid-template-columns: 1fr auto 1fr;
  min-height: 58px;
  padding: 0;
}
.path-line { background: linear-gradient(90deg, transparent, rgba(230,0,35,.7)); }
.path-line:nth-of-type(2) { background: linear-gradient(90deg, rgba(232,93,24,.7), transparent); }
.artifact-glyph {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 35% 30%, #ff744c, var(--red-deep));
  border-color: rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(230,0,35,.18);
}
.artifact-glyph span { width: 15px; height: 15px; border-color: white; }
.artifact-glyph b { top: 42px; left: 38px; color: #8f918f; }
.custody-brief { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; margin: 0 1rem 1rem; padding: .85rem; background: rgba(255,255,255,.04); border-left: 2px solid var(--orange); }
.custody-brief > span { color: var(--orange); font-size: .7rem; }
.custody-brief p { margin: 0; color: #a2a39e; font-size: .75rem; line-height: 1.5; }
.custody-brief strong { display: block; margin-bottom: .18rem; color: #f8f7f3; font-size: .78rem; }

.lower-grid { gap: .75rem; margin-top: .75rem; }
.explain-card,
.activity-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.support-panel > summary {
  grid-template-columns: auto 1fr auto;
  min-height: 48px;
  color: var(--ink);
}
.support-panel > summary span { font-size: .84rem; font-weight: 800; }
.support-panel > summary small { color: var(--muted); font-size: .74rem; }
.support-panel > summary::after { color: var(--red); }
.support-panel[open] > summary { border-bottom: 1px solid var(--line); }
.support-content { padding: .65rem 1rem 1rem; }
.lower-grid .eyebrow { color: var(--red); }
.boundary-row { border-bottom-color: var(--line); }
.boundary-row span, .activity-log span { color: var(--muted); }
.boundary-row strong { color: var(--ink); }
.boundary-row i { color: var(--teal); }
.activity-log li { border-top-color: var(--line); }
.activity-log time { color: var(--red); }
.activity-log li.error time, .activity-log li.error span { color: var(--danger); }
.toast { color: white; background: var(--ink); border-left: 3px solid var(--red); border-radius: 6px; }
.toast.error { color: white; background: var(--red-deep); }

.white-paper {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(460px, 1.35fr);
  gap: 2rem 4rem;
  margin-top: 2.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  color: #f8f7f3;
  background:
    radial-gradient(circle at 12% 112%, rgba(230,0,35,.34), transparent 26rem),
    var(--black);
  border-radius: 10px;
}
.white-paper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--orange));
}
.paper-intro { align-self: start; }
.paper-intro .eyebrow { color: var(--orange); }
.paper-intro h2 {
  max-width: 520px;
  margin: .8rem 0 1rem;
  color: white;
  font: 500 clamp(2.15rem, 4vw, 3.7rem)/.98 var(--font-display);
  letter-spacing: -.045em;
}
.paper-intro p { max-width: 520px; margin: 0; color: #adada8; font-size: .95rem; line-height: 1.7; }
.paper-model {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr 1fr;
  align-items: center;
  gap: .8rem;
  min-height: 112px;
  padding: 1.2rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
}
.paper-party { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: .65rem; }
.paper-party b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--red);
  border-radius: 50%;
}
.paper-party small, .paper-state small { color: #92938f; font-size: .68rem; line-height: 1.35; }
.paper-arrow { color: #8e8f8b; font-size: .68rem; text-align: center; }
.paper-arrow i { display: block; color: var(--orange); font: normal 700 1.2rem ui-monospace, monospace; }
.paper-state { text-align: center; }
.paper-state small { display: block; }
.paper-state strong { display: block; margin-top: .2rem; color: var(--orange); font: 700 1.15rem ui-monospace, monospace; }
.paper-principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.13); }
.paper-principles article { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.35rem 1.4rem 0 0; }
.paper-principles article + article { padding-left: 1.4rem; border-left: 1px solid rgba(255,255,255,.13); }
.paper-principles article > span { color: var(--red); font: 700 .7rem ui-monospace, monospace; }
.paper-principles h3 { margin: 0 0 .35rem; color: white; font-size: .92rem; }
.paper-principles p { margin: 0; color: #999a96; font-size: .79rem; line-height: 1.55; }
.paper-boundary { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13); }
.paper-boundary strong { color: var(--orange); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.paper-boundary p { margin: 0; color: #999a96; font-size: .79rem; line-height: 1.5; }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  padding: 1rem clamp(18px, 3.5vw, 54px);
  color: #aaa9a4;
  background: var(--ink);
  border-top: 1px solid #282828;
}
footer a { color: #f8f7f3; }

@media (max-width: 1120px) {
  .exchange-layout { grid-template-columns: minmax(0,1fr); }
  .workspace-title { width: calc(100% - 240px); }
}

@media (max-width: 920px) {
  .shell {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }
  .rail {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: auto;
    max-height: none;
    padding: .72rem 1rem;
    border-bottom: 1px solid #282828;
  }
  .scene-nav { width: 100%; }
  .workspace-title { width: calc(100% - 190px); }
  .exchange-layout { grid-template-columns: 1fr; }
  .ownership-panel { order: initial; }
  .ownership-map { grid-template-columns: 1fr 110px 1fr; align-items: center; }
  .custody-brief { max-width: 520px; }
  .white-paper { grid-template-columns: 1fr; }
  .paper-model { grid-column: 1; }
}

@media (max-width: 700px) {
  .topbar { align-items: center; padding: .72rem 1rem; }
  .brand small, .network, .service-status, .paper-link { display: none; }
  .workspace { padding-inline: .8rem; }
  .workspace-head {
    display: flex;
    align-items: center;
    min-height: 138px;
    margin: 0;
    padding: 1.05rem 0;
  }
  .workspace-title { width: 78%; }
  .workspace-title > .eyebrow {
    display: block;
    max-width: 100%;
    font-size: .66rem;
    line-height: 1.45;
    letter-spacing: .11em;
  }
  .workspace-title h1 {
    margin-top: .3rem;
    font-size: clamp(2.05rem, 9.5vw, 2.55rem);
    line-height: .92;
    white-space: normal;
  }
  .orb-scene {
    position: absolute;
    inset: 0 0 0 auto;
    width: 43%;
    min-height: 0;
    margin: 0;
  }
  .orb-scene::before { background: linear-gradient(90deg, var(--paper), rgba(253,250,243,.3) 42%, transparent 78%); }
  .orb-scene img { object-fit: contain; object-position: center; }
  .orb-index { display: none; }
  .orb-caption { display: none; }
  .ownership-panel > summary { grid-template-columns: auto auto 1fr; }
  .ownership-panel > summary small { display: none; }
  .exchange-layout { padding-top: .8rem; }
  .ownership-map { grid-template-columns: 1fr; }
  .exchange-path { min-height: 48px; }
  .work-card-head, .stage-copy { align-items: flex-start; flex-direction: column; }
  .field-grid, .field-grid.three, .split-actions, .lower-grid { grid-template-columns: 1fr; }
  .artifact-summary { grid-template-columns: 1fr; }
  .boundary-row { grid-template-columns: 1fr auto; }
  .boundary-row strong { grid-column: 1/-1; grid-row: 2; }
  .actions .hint { width: 100%; margin-left: 0; }
  .white-paper { gap: 1.5rem; margin-top: 1.5rem; padding: 1.5rem; }
  .paper-model { grid-template-columns: 1fr; text-align: left; }
  .paper-arrow { text-align: left; }
  .paper-arrow i { display: inline; margin-left: .35rem; }
  .paper-state { text-align: left; }
  .paper-principles { grid-template-columns: 1fr; }
  .paper-principles article { padding: 1rem 0; }
  .paper-principles article + article { padding-left: 0; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .paper-boundary { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .rail { padding-inline: .8rem; }
  .scene-nav { grid-template-columns: 42px minmax(0, 1fr) 54px; gap: .55rem; }
  .scene-move { min-width: 0; min-height: 44px; padding: .4rem; }
  .scene-move small { display: none; }
  .scene-status { grid-template-columns: 1fr auto; gap: .16rem .5rem; }
  .scene-status > small { grid-column: 1 / -1; }
  .scene-track { margin-top: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Three-surface product shell: orientation, reading, operation. */
.site-view[hidden] { display: none !important; }
.topbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.site-nav { display: flex; align-items: center; justify-content: center; gap: 1.9rem; }
.site-nav a {
  padding: .45rem 0;
  color: #484843;
  border-bottom: 1px solid transparent;
  font-size: .78rem;
  font-weight: 760;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: currentColor; }
.site-nav .nav-explore {
  padding: .58rem .85rem;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 7px 20px rgba(21,21,21,.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.site-nav .nav-explore:hover,
.site-nav .nav-explore[aria-current="page"] { color: white; background: var(--red); border-bottom-color: transparent; box-shadow: 0 10px 26px rgba(230,0,35,.22); transform: translateY(-2px); }
.runtime-controls { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
body:not([data-view="explore"]) .runtime-controls { display: none; }
body:not([data-view="explore"]) .topbar { grid-template-columns: 1fr auto; }
body[data-view="explore"] .site-nav { justify-self: center; }

.home-view {
  position: relative;
  min-height: 0;
  height: calc(100svh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "model" "copy" "status";
  align-content: center;
  justify-items: center;
  gap: clamp(.6rem, 1.8vh, 1.2rem);
  overflow: hidden;
  padding: clamp(1rem, 3.5vh, 2.5rem) clamp(1.25rem, 6vw, 7rem);
  text-align: center;
}
.home-view::before { display: none; }
.home-copy { position: relative; z-index: 2; grid-area: copy; width: min(100%, 920px); max-width: 920px; }
.home-kicker {
  display: block;
  margin-bottom: clamp(.45rem, 1.5vh, 1rem);
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.home-copy h1 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(3.6rem, min(9vw, 12.5vh), 8rem)/.77 var(--font-display);
  letter-spacing: -.075em;
}
.home-copy p {
  max-width: 580px;
  margin: clamp(.85rem, 2.4vh, 1.65rem) auto 0;
  color: #4f4e49;
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}
.home-copy p strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08em;
  font-weight: 600;
}
.home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin: clamp(.8rem, 2vh, 1.4rem) auto 0;
}
.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 44px;
  padding: .78rem 1.1rem;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(21,21,21,.11);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home-link span { color: var(--red); }
.home-link:hover { background: white; box-shadow: 0 16px 36px rgba(21,21,21,.16); transform: translateY(-3px); }
.home-link-primary { color: white; background: var(--red); box-shadow: 0 12px 30px rgba(230,0,35,.22); }
.home-link-primary span { color: white; }
.home-link-primary:hover { background: var(--red-deep); box-shadow: 0 17px 38px rgba(153,16,34,.3); }
.home-model {
  position: relative;
  z-index: 1;
  grid-area: model;
  width: clamp(92px, min(14vw, 20vh), 185px);
  justify-self: center;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.home-model::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(230,0,35,.15);
  border-radius: 50%;
}
.home-orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  isolation: isolate;
}
.home-orb video,
.home-orb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(47.5% at 50% 50%);
  filter: saturate(.93) contrast(1.04);
}
.home-orb-motion { z-index: 2; }
.home-orb-still { z-index: 1; display: none; }
.model-line {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  color: white;
  background: rgba(5,5,5,.93);
  border: 0;
  font: 700 .68rem ui-monospace, monospace;
  box-shadow: 0 11px 28px rgba(21,21,21,.2);
  white-space: nowrap;
}
.model-line i { color: var(--orange); font-style: normal; }
.model-line strong { color: white; }
.home-model > small { display: none; }
.home-status {
  position: static;
  grid-area: status;
  align-self: center;
  transform: none;
  width: min(90%, 720px);
  margin: 0;
  color: #8b8880;
  font-size: .68rem;
}

.paper-view {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  justify-content: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding: 4.5rem clamp(1.5rem, 5vw, 4rem) 8rem;
}
.paper-toc {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 1rem;
  padding-top: .35rem;
}
.paper-toc > span {
  padding-bottom: .8rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 600 1rem var(--font-display);
}
.paper-toc nav { display: grid; }
.paper-toc nav a {
  padding: .5rem 0;
  color: #77736b;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  text-decoration: none;
}
.paper-toc nav a:hover { color: var(--red); }
.paper-explore {
  justify-self: start;
  margin-top: .65rem;
  padding: .65rem 0;
  color: var(--red);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--red);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
}
.paper-article { min-width: 0; }
.paper-article > header {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.paper-label {
  color: var(--red);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.paper-article h1 {
  max-width: 780px;
  margin: 1.1rem 0 1.5rem;
  color: var(--ink);
  font: 500 clamp(4rem, 8vw, 7rem)/.84 var(--font-display);
  letter-spacing: -.065em;
}
.paper-deck { max-width: 650px; color: #504f4a; font: 400 1.25rem/1.55 var(--font-display); }
.paper-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; color: #87847d; font-size: .68rem; }
.paper-article > section { scroll-margin-top: 96px; padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.paper-article > section h2 {
  margin: 0 0 1.6rem;
  color: var(--ink);
  font: 500 clamp(2rem, 4vw, 3.15rem)/1 var(--font-display);
  letter-spacing: -.035em;
}
.paper-article > section > p { color: #4e4d48; font-size: .98rem; line-height: 1.8; }
.paper-article code { padding: .08rem .3rem; color: var(--red-deep); background: #f4ecdf; font-size: .86em; }
.paper-article blockquote {
  margin: 2.5rem 0 0;
  padding: .2rem 0 .2rem 1.5rem;
  color: var(--ink);
  border-left: 3px solid var(--red);
  font: 500 1.4rem/1.45 var(--font-display);
}
.paper-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.paper-list p { display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem; margin: 0; padding: 1rem 0; color: #55534e; border-bottom: 1px solid var(--line); font-size: .87rem; }
.paper-list b { color: var(--ink); }
.paper-equation {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 1.3rem 1.5rem;
  color: white;
  background: var(--ink);
}
.paper-equation span { color: #c0bfb9; font-size: .85rem; }
.paper-equation i { color: var(--orange); font: normal 700 1.15rem ui-monospace, monospace; }
.paper-equation strong { justify-self: end; color: white; font: 700 .95rem ui-monospace, monospace; }
.paper-definitions { margin: 0; }
.paper-definitions div { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.paper-definitions dt { color: var(--ink); font-size: .88rem; font-weight: 800; }
.paper-definitions dd { margin: 0; color: #6e6c65; font-size: .86rem; line-height: 1.6; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .75rem; margin: 2rem 0; }
.architecture-flow > span { min-height: 108px; display: grid; align-content: center; gap: .4rem; padding: 1rem; color: white; background: var(--ink); font-size: .8rem; font-weight: 800; }
.architecture-flow small { color: #9e9e99; font-size: .64rem; font-weight: 500; line-height: 1.45; }
.architecture-flow i { color: var(--red); font: normal 800 1rem ui-monospace, monospace; }
.paper-sequence { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paper-sequence li { display: grid; grid-template-columns: 50px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.paper-sequence li > span { color: var(--red); font: 700 .7rem ui-monospace, monospace; }
.paper-sequence b { color: var(--ink); font-size: .9rem; }
.paper-sequence p { margin: .3rem 0 0; color: #6c6a64; font-size: .83rem; line-height: 1.55; }
.paper-cta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  color: white;
  background: var(--red);
  border: 0;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
}
.paper-cta:hover { background: var(--red-deep); }
.paper-article > .claim-boundary { margin-top: 3.5rem; padding: 2rem; color: white; background: var(--ink); border: 0; }
.claim-boundary > span { color: var(--orange); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.paper-article > .claim-boundary h2 { margin: 1rem 0; color: white; font-size: clamp(2rem, 4vw, 3rem); }
.paper-article > .claim-boundary p { margin: 0; color: #aaa9a3; font-size: .88rem; line-height: 1.7; }

.explore-view { min-height: calc(100vh - 66px); padding-top: 1rem; }
.explore-heading {
  width: min(1260px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: .3rem 2rem .8rem;
  color: #77746d;
  font-size: .7rem;
}
.explore-heading span { color: var(--red); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.explore-heading p { margin: 0; }
body[data-view="explore"] footer { display: none; }
body[data-view="home"] footer { display: none; }

@media (max-width: 1080px) {
  body[data-view="explore"] .topbar { grid-template-columns: 1fr auto; }
  body[data-view="explore"] .site-nav { display: none; }
  .runtime-controls .network, .runtime-controls .service-status { display: none; }
  .home-copy h1 { font-size: clamp(5rem, 13vw, 9rem); }
}

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; gap: .8rem; }
  .site-nav { gap: .8rem; }
  .site-nav a:first-child { display: none; }
  .home-view { grid-template-columns: 1fr; align-content: center; }
  .home-copy h1 { font-size: clamp(3.6rem, min(18vw, 12.5vh), 7rem); }
  .home-copy p, .home-actions { margin-inline: auto; }
  .home-model { position: relative; inset: auto; width: clamp(92px, min(24vw, 18vh), 160px); opacity: 1; }
  .home-model > small { display: none; }
  .paper-view { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .paper-toc { position: static; }
  .paper-toc nav { grid-template-columns: repeat(3, 1fr); }
  .paper-explore { display: none; }
}

@media (max-width: 600px) {
  .brand-copy small { display: none; }
  .site-nav .nav-explore { padding: .52rem .65rem; }
  .home-view { height: calc(100svh - 66px); padding-inline: 1.25rem; }
  .home-copy h1 { font-size: clamp(3.25rem, min(17vw, 12vh), 5.25rem); }
  .home-copy p { font-size: .95rem; line-height: 1.5; }
  .home-actions { align-items: center; flex-flow: row wrap; }
  .home-link { width: auto; margin-inline: 0; }
  .home-status { width: 100%; }
  .paper-view { padding-inline: 1.25rem; }
  .paper-toc nav { grid-template-columns: 1fr 1fr; }
  .paper-article h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .paper-list p, .paper-definitions div { grid-template-columns: 1fr; gap: .45rem; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow i { transform: rotate(90deg); justify-self: center; }
  .explore-heading { padding-inline: 1rem; }
  .explore-heading p { display: none; }
}

/* Production-shaped onboarding carousel. */
.shell { width: 100%; }
.workspace {
  width: min(1260px, 100%);
  padding: clamp(1rem, 2.5vw, 2.2rem) clamp(.8rem, 2.5vw, 2rem) 3rem;
}
.protocol-carousel {
  min-height: min(700px, calc(100vh - 116px));
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.18fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #d9d3c7;
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(21,21,21,.11);
}
.carousel-visual {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 2.2rem;
  color: white;
  background:
    radial-gradient(circle at 50% 47%, rgba(230,0,35,.18), transparent 19rem),
    #080808;
  border-right: 1px solid #252525;
}
.visual-wordmark { position: relative; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.visual-wordmark span { font: 600 .88rem var(--font-ui); letter-spacing: -.01em; }
.visual-wordmark small { color: #81817d; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.carousel-visual .orb-scene {
  position: relative;
  inset: auto;
  align-self: center;
  justify-self: center;
  width: min(100%, 470px);
  aspect-ratio: 1;
  overflow: visible;
}
.carousel-visual .orb-scene::before { display: none; }
.carousel-visual .orb-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  clip-path: circle(48.1% at 50% 50%);
  mix-blend-mode: normal;
  filter: saturate(1.03) contrast(1.02);
  transform: rotate(var(--scene-turn, -8deg)) scale(.9);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .6s ease;
}
.carousel-visual .orb-index {
  right: 4%;
  bottom: 9%;
  color: var(--orange);
}
.carousel-visual .orb-index small { color: #858581; }
.carousel-visual > p {
  position: relative;
  z-index: 3;
  max-width: 28rem;
  margin: 0;
  color: #a6a6a1;
  font: 400 1rem/1.55 var(--font-display);
}
.carousel-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.carousel-panel::before { display: none; }
.carousel-panel .work-card-head {
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
  border: 0;
}
.carousel-panel .work-card-head h2 {
  max-width: 650px;
  margin-top: .7rem;
  font: 500 clamp(2rem, 3.5vw, 3.35rem)/1 var(--font-display);
  letter-spacing: -.042em;
}
.carousel-panel .stage {
  min-height: 0;
  padding: 1.25rem clamp(1.5rem, 4vw, 3.5rem) 2rem;
}
.carousel-panel .stage-copy { margin-bottom: 1.75rem; }
.carousel-panel .stage-copy p { max-width: 580px; color: #565656; font-size: 1rem; line-height: 1.65; }
.carousel-panel .status-chip {
  padding: .25rem 0;
  color: #757575;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bdb6aa;
  border-radius: 0;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.carousel-panel .status-chip.good { color: var(--green); background: transparent; border-color: var(--green); }
.role-switch {
  align-self: start;
  display: flex;
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.role {
  min-width: auto;
  padding: .25rem 0;
  color: #777;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: .8rem;
}
.role.active { color: var(--ink); background: transparent; border-bottom-color: var(--red); }
.carousel-panel .field-grid { gap: 1.35rem 2rem; }
.carousel-panel .field { gap: .22rem; }
.carousel-panel .field label { color: #333; font-size: .86rem; font-weight: 700; }
.carousel-panel .field small { color: #76736d; font-size: .75rem; line-height: 1.45; }
.carousel-panel .input,
.carousel-panel .textarea,
.carousel-panel .select {
  min-height: 43px;
  padding: .6rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c9c2b5;
  border-radius: 0;
  box-shadow: none;
}
.carousel-panel .input:hover,
.carousel-panel .textarea:hover,
.carousel-panel .select:hover { border-color: #76716a; }
.carousel-panel .input:focus,
.carousel-panel .textarea:focus,
.carousel-panel .select:focus { border-bottom-color: var(--red); outline: 0; }
.carousel-panel .textarea.knowledge {
  min-height: 140px;
  padding: 1rem;
  background: #fbf8f0;
  border: 1px solid #d8d1c4;
  resize: vertical;
}
.carousel-panel .actions { margin-top: 1.7rem; gap: 1rem; }
.carousel-panel .actions .hint { max-width: 330px; color: #74716b; font-size: .76rem; line-height: 1.5; }
.carousel-panel .button {
  min-height: 43px;
  padding: .68rem 1.05rem;
  border-radius: 1px;
  box-shadow: none;
  font-size: .82rem;
  letter-spacing: .01em;
}
.carousel-panel .button:hover { transform: none; }
.carousel-panel .button-primary { color: white; background: var(--ink); border: 1px solid var(--ink); }
.carousel-panel .button-primary:hover { background: var(--red); border-color: var(--red); }
.carousel-panel .button-secondary { color: var(--ink); background: transparent; border: 1px solid #aaa397; }
.carousel-panel .button-secondary:hover { border-color: var(--ink); background: transparent; }
.carousel-panel .button-quiet { padding-inline: 0; border: 0; border-bottom: 1px solid #aaa397; }
.carousel-panel .artifact-summary { border-radius: 1px; }
.carousel-panel .artifact-summary span { background: #faf7ef; }
.carousel-panel .scene-wait,
.carousel-panel .scene-complete { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.carousel-panel .scene-complete > span { background: var(--ink); }
.carousel-panel .scene-nav {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  color: var(--ink);
  background: #faf7ef;
  border-top: 1px solid var(--line);
}
.carousel-panel .scene-move {
  min-width: 82px;
  min-height: 40px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9d978e;
  border-radius: 0;
}
.carousel-panel .scene-move:hover { color: var(--red); background: transparent; border-color: var(--red); }
.carousel-panel .scene-move:disabled { border-color: transparent; }
.carousel-panel .scene-move-next { color: white; background: var(--ink); border: 1px solid var(--ink); }
.carousel-panel .scene-move-next:hover { color: white; background: var(--red); border-color: var(--red); }
.carousel-panel .scene-status { grid-template-columns: auto minmax(100px, auto) 1fr; }
.carousel-panel .scene-position { color: var(--red); }
.carousel-panel .scene-status strong { color: var(--ink); }
.carousel-panel .scene-status > small { color: #76716b; }
.carousel-panel .scene-track i { background: #d8d1c4; }
.carousel-panel .scene-track i.complete { background: #868078; }
.carousel-panel .scene-track i.active { background: var(--red); }
.welcome-lead {
  max-width: 630px;
  margin: 0 0 1.5rem;
  color: #333;
  font: 400 1.16rem/1.6 var(--font-display);
}
.welcome-equation {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 600 clamp(1.35rem, 3vw, 2rem) ui-monospace, monospace;
}
.welcome-equation i { color: var(--red); font-style: normal; }
.welcome-equation strong { color: var(--red); }
.welcome-facts { margin: 1.35rem 0; }
.welcome-facts > div { display: grid; grid-template-columns: minmax(125px, .7fr) 1.3fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.welcome-facts dt { color: var(--ink); font-size: .84rem; font-weight: 750; }
.welcome-facts dd { margin: 0; color: #68655f; font-size: .82rem; line-height: 1.45; }
.white-paper-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: .82rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--red); }
.white-paper-link span { color: var(--red); }
.exchange-layout { padding-top: 1rem; }

@media (max-width: 960px) {
  .protocol-carousel { grid-template-columns: 280px minmax(0, 1fr); }
  .carousel-visual { padding: 1.5rem; }
  .visual-wordmark { display: grid; }
  .carousel-panel .work-card-head { align-items: flex-start; }
}

@media (max-width: 760px) {
  .workspace { padding-top: .8rem; }
  .protocol-carousel { min-height: 0; grid-template-columns: 1fr; }
  .carousel-visual { min-height: 250px; grid-template-rows: auto 1fr; border-right: 0; border-bottom: 1px solid #252525; }
  .carousel-visual .orb-scene { position: absolute; right: -2.5rem; bottom: -4.5rem; width: 270px; opacity: .92; }
  .carousel-visual > p { align-self: end; max-width: 52%; font-size: .88rem; }
  .carousel-panel .work-card-head { flex-direction: row; padding-top: 2rem; }
  .carousel-panel .stage { min-height: 390px; }
  .carousel-panel .scene-status > small { display: none; }
}

@media (max-width: 520px) {
  .protocol-carousel { border-inline: 0; }
  .carousel-visual { min-height: 210px; padding: 1.2rem; }
  .carousel-visual .orb-scene { right: -3rem; bottom: -4.8rem; width: 240px; }
  .carousel-panel .work-card-head { display: grid; padding: 1.5rem 1.25rem 1rem; }
  .carousel-panel .work-card-head h2 { font-size: 2rem; }
  .carousel-panel .stage { min-height: 420px; padding: 1rem 1.25rem 1.5rem; }
  .carousel-panel .stage-copy { gap: .7rem; }
  .carousel-panel .scene-nav { grid-template-columns: 42px minmax(0, 1fr) 54px; gap: .7rem; padding: 1rem 1.25rem; }
  .carousel-panel .scene-move { min-width: 0; }
  .carousel-panel .scene-move small { display: none; }
  .carousel-panel .scene-status { grid-template-columns: 1fr auto; }
  .welcome-facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .home-copy { min-width: 0; }
  .home-copy h1 { width: 100%; font-size: clamp(3.15rem, min(17vw, 11.5vh), 4.25rem); }
  .home-copy h1 br { display: block; }
}

@media (max-height: 620px) {
  .home-view { gap: .35rem; padding-block: .5rem; }
  .home-model { width: clamp(76px, min(12vw, 15vh), 100px); }
  .model-line { display: none; }
  .home-kicker { margin-bottom: .25rem; }
  .home-copy h1 { font-size: clamp(2.8rem, min(8vw, 10.5vh), 5rem); }
  .home-copy p { max-width: 680px; margin-top: .6rem; font-size: 1rem; line-height: 1.4; }
  .home-actions { margin-top: .6rem; }
  .home-link { min-height: 40px; padding-block: .6rem; }
  .home-status { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-orb-motion { display: none; }
  .home-orb-still { display: block; }
}
