:root {
  color-scheme: dark;
  --bg: #050713;
  --bg-2: #080b1d;
  --surface: #0e1428;
  --surface-2: #131a33;
  --surface-3: #1a2346;
  --paper: #f5f7ff;
  --paper-2: #e5ebff;
  --ink: #050713;
  --text: #f7f8ff;
  --muted: #b8c1df;
  --subtle: #7d88aa;
  --line: rgba(229, 235, 255, 0.14);
  --line-strong: rgba(229, 235, 255, 0.26);
  --aqua: #45ecff;
  --cyan: #16ddff;
  --blue: #428fff;
  --indigo: #4d58dc;
  --violet: #5f27d8;
  --purple: #7a00d9;
  --swiss-red: #da291c;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(70rem 44rem at 8% -14%, rgba(48, 170, 217, 0.18), transparent 62%),
    radial-gradient(58rem 42rem at 92% 8%, rgba(122, 0, 217, 0.2), transparent 64%),
    radial-gradient(64rem 42rem at 52% 112%, rgba(61, 131, 223, 0.14), transparent 68%),
    linear-gradient(rgba(229, 235, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 235, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, #070b1a 46%, #040611 100%);
  background-size: auto, auto, auto, 64px 64px, 64px 64px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::selection {
  color: var(--ink);
  background: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 0.08rem 0.24rem;
  border: 1px solid rgba(229, 235, 255, 0.16);
  border-radius: 4px;
  background: rgba(229, 235, 255, 0.08);
  color: var(--paper);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

p,
dd,
small {
  color: var(--muted);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--blue), var(--indigo), var(--purple));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(48, 170, 217, 0.08), rgba(122, 0, 217, 0.08)),
    rgba(5, 7, 19, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.2rem;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: saturate(1.5) brightness(1.16);
}

.header-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.78rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.62rem;
  border: 1px solid transparent;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.commons-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding: 0 0.68rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper-2);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.commons-brand:hover,
.commons-brand:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.source-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper-2);
  font-size: 0.88rem;
  font-weight: 850;
}

.source-link span {
  color: var(--aqua);
}

.source-link:hover,
.source-link:focus-visible {
  border-color: rgba(48, 170, 217, 0.6);
  background: rgba(48, 170, 217, 0.1);
  outline: none;
}

.commons-brand-mark {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 3px;
  background: var(--swiss-red);
}

.commons-brand-mark-v,
.commons-brand-mark-h {
  position: absolute;
  border-radius: 2px;
  background: #ffffff;
}

.commons-brand-mark-v {
  width: 0.24rem;
  height: 0.74rem;
}

.commons-brand-mark-h {
  width: 0.74rem;
  height: 0.24rem;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

#fabric-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(56% 76% at 78% 20%, rgba(122, 0, 217, 0.22), transparent 100%),
    radial-gradient(48% 70% at 18% 72%, rgba(22, 221, 255, 0.24), transparent 100%),
    linear-gradient(rgba(229, 235, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 235, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #040611, #07122d 46%, #050713);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46rem 32rem at 76% 22%, rgba(122, 0, 217, 0.3), transparent 68%),
    radial-gradient(42rem 30rem at 20% 72%, rgba(22, 221, 255, 0.28), transparent 68%),
    radial-gradient(34rem 28rem at 54% 42%, rgba(77, 88, 220, 0.18), transparent 66%),
    linear-gradient(90deg, rgba(5, 7, 19, 0.97) 0%, rgba(5, 7, 19, 0.74) 45%, rgba(5, 7, 19, 0.36) 100%),
    linear-gradient(180deg, rgba(5, 7, 19, 0.18) 0%, rgba(5, 7, 19, 0.88) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  width: min(var(--max), calc(100% - 2rem));
  min-height: calc(88svh - 122px);
  margin: 0 auto;
  padding: clamp(4.8rem, 10vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.hero-metrics span,
.signal-list dt,
.ledger-item span,
.fabric-layer span,
.authority-node span,
.check-row span,
.identity-note span {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin-bottom: 1rem;
}

h1 {
  margin-bottom: 1.3rem;
  color: var(--text);
  font-size: 7rem;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 4.4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--paper-2);
  font-size: 1.32rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.74rem 1rem;
  border-radius: 6px;
  font-weight: 850;
}

.primary-action {
  background: linear-gradient(135deg, var(--aqua), var(--blue) 52%, var(--violet));
  color: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 221, 255, 0.3), 0 0 20px rgba(66, 143, 255, 0.18);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(48, 170, 217, 0.08), rgba(122, 0, 217, 0.1)),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(48, 170, 217, 0.5);
  outline-offset: 2px;
}

.hero-panel {
  align-self: center;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(28rem 18rem at 100% 0%, rgba(122, 0, 217, 0.2), transparent 70%),
    radial-gradient(24rem 18rem at 0% 100%, rgba(48, 170, 217, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(9, 13, 31, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.panel-topline span {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--violet);
  overflow-wrap: anywhere;
}

.signal-list {
  margin-bottom: 0;
}

.signal-list div {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.signal-list div:last-child {
  border-bottom: 0;
}

.signal-list dd {
  margin-left: 0;
  color: var(--text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  min-width: 0;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 28, 0.92);
}

.hero-metrics strong {
  display: block;
  margin: 0.32rem 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.05;
}

.hero-metrics small {
  display: block;
  line-height: 1.35;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 4.8rem;
}

.section > * {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.56fr);
  gap: clamp(1.5rem, 5vw, 4.8rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading.wide {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
}

.section-heading p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.motion-section {
  position: relative;
  overflow: clip;
  padding-bottom: 0;
  background:
    radial-gradient(52rem 42rem at 12% 28%, rgba(22, 221, 255, 0.26), transparent 66%),
    radial-gradient(46rem 38rem at 88% 52%, rgba(122, 0, 217, 0.18), transparent 68%),
    linear-gradient(rgba(229, 235, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 235, 255, 0.025) 1px, transparent 1px),
    #030511;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
}

.motion-section::before {
  content: "KORIUM.IO / 0.8.33";
  position: absolute;
  top: 8rem;
  right: -0.22em;
  color: rgba(229, 235, 255, 0.025);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.07em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.motion-heading {
  position: relative;
  z-index: 2;
}

.motion-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.76fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.motion-visual {
  align-self: stretch;
  min-width: 0;
}

.motion-sticky {
  position: sticky;
  top: 5.8rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  min-height: 560px;
  height: calc(100svh - 7.2rem);
  max-height: 820px;
  padding: 1rem 0 2.5rem;
}

.motion-map {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(77, 88, 220, 0.18) 0 20%, transparent 42%),
    radial-gradient(circle at center, rgba(22, 221, 255, 0.16), transparent 68%),
    rgba(4, 7, 18, 0.62);
  box-shadow:
    inset 0 0 100px rgba(22, 221, 255, 0.15),
    0 0 44px rgba(22, 221, 255, 0.1),
    0 40px 120px rgba(0, 0, 0, 0.46);
  transition: border-color 420ms ease, box-shadow 420ms ease;
}

.motion-map::before,
.motion-map::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(229, 235, 255, 0.2), transparent);
  transform: translate(-50%, -50%);
}

.motion-map::before {
  width: 86%;
  height: 1px;
}

.motion-map::after {
  width: 1px;
  height: 86%;
  background: linear-gradient(180deg, transparent, rgba(229, 235, 255, 0.16), transparent);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1px dashed rgba(229, 235, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 420ms ease, transform 420ms ease;
}

.orbit-one {
  width: 38%;
  height: 38%;
}

.orbit-two {
  width: 64%;
  height: 64%;
}

.orbit-three {
  width: 87%;
  height: 87%;
}

.satellite {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border: 3px solid #081020;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow:
    0 0 0 1px rgba(69, 236, 255, 0.8),
    0 0 10px rgba(191, 251, 255, 0.95),
    0 0 30px rgba(22, 221, 255, 0.88);
}

.satellite-one {
  top: 17%;
  left: 26%;
}

.satellite-two {
  top: 34%;
  right: 8%;
  background: var(--indigo);
  box-shadow: 0 0 0 1px rgba(77, 88, 220, 0.55), 0 0 22px rgba(77, 88, 220, 0.72);
}

.satellite-three {
  right: 28%;
  bottom: 11%;
  background: var(--purple);
  box-shadow: 0 0 0 1px rgba(122, 0, 217, 0.55), 0 0 22px rgba(122, 0, 217, 0.72);
}

.packet {
  --packet-radius: min(32vw, 188px);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #d9fdff;
  box-shadow: 0 0 8px #ffffff, 0 0 24px rgba(69, 236, 255, 0.96), 0 0 42px rgba(22, 221, 255, 0.54);
  transform: rotate(0deg) translateX(var(--packet-radius));
  animation: orbit-packet 7s linear infinite;
}

.packet-two {
  --packet-radius: min(21vw, 126px);
  background: var(--violet);
  box-shadow: 0 0 18px rgba(95, 39, 216, 0.92);
  animation-direction: reverse;
  animation-duration: 4.8s;
}

.node-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40%;
  aspect-ratio: 1;
  border: 1px solid rgba(229, 235, 255, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(217, 253, 255, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(22, 221, 255, 0.24), rgba(122, 0, 217, 0.22)),
    #080d20;
  box-shadow:
    0 0 0 12px rgba(22, 221, 255, 0.06),
    0 0 46px rgba(22, 221, 255, 0.24),
    0 28px 80px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  transition: box-shadow 420ms ease, transform 420ms ease;
}

.node-core img {
  position: relative;
  z-index: 2;
  width: 58%;
  height: auto;
  filter:
    saturate(1.65)
    brightness(1.18)
    drop-shadow(0 0 8px rgba(217, 253, 255, 0.9))
    drop-shadow(0 0 24px rgba(69, 236, 255, 0.9))
    drop-shadow(0 0 52px rgba(22, 221, 255, 0.62));
}

.node-halo {
  position: absolute;
  inset: -18%;
  z-index: 0;
  border: 1px solid rgba(69, 236, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(22, 221, 255, 0.34), inset 0 0 22px rgba(22, 221, 255, 0.16);
  animation: node-breathe 3.2s ease-in-out infinite;
}

.motion-readout {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(180px, 0.72fr) minmax(210px, 1fr);
  gap: 1rem;
  align-items: center;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(7, 11, 27, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.motion-readout span,
.motion-step > span {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.motion-readout strong {
  line-height: 1.15;
}

.motion-readout small {
  line-height: 1.35;
}

.motion-steps {
  min-width: 0;
}

.motion-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68svh;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
  opacity: 0.38;
  transition: opacity 380ms ease, border-color 380ms ease, transform 380ms ease;
}

.motion-step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--subtle);
  box-shadow: 0 0 0 7px rgba(125, 136, 170, 0.06);
  transform: translateY(-50%);
  transition: background 380ms ease, box-shadow 380ms ease;
}

.motion-step.is-active {
  border-left-color: rgba(48, 170, 217, 0.7);
  opacity: 1;
  transform: translateX(0.7rem);
}

.motion-step.is-active::before {
  background: var(--aqua);
  box-shadow:
    0 0 0 7px rgba(22, 221, 255, 0.16),
    0 0 12px rgba(217, 253, 255, 0.94),
    0 0 32px rgba(22, 221, 255, 0.92);
}

.motion-step h3 {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.motion-step p {
  max-width: 54ch;
  margin-bottom: 0;
  font-size: 1.06rem;
}

.motion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.motion-tags em {
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.motion-step.is-active .motion-tags em {
  border-color: rgba(48, 170, 217, 0.32);
  color: var(--paper-2);
}

.motion-visual[data-active="2"] .motion-map {
  border-color: rgba(69, 236, 255, 0.66);
  box-shadow:
    inset 0 0 110px rgba(22, 221, 255, 0.2),
    0 0 60px rgba(22, 221, 255, 0.18),
    0 40px 120px rgba(0, 0, 0, 0.46);
}

.motion-visual[data-active="3"] .node-core {
  box-shadow: 0 0 0 12px rgba(122, 0, 217, 0.07), 0 0 90px rgba(122, 0, 217, 0.24);
  transform: translate(-50%, -50%) scale(1.04);
}

.motion-visual[data-active="4"] .orbit {
  border-color: rgba(95, 39, 216, 0.34);
  transform: translate(-50%, -50%) scale(0.96);
}

@keyframes orbit-packet {
  to {
    transform: rotate(360deg) translateX(var(--packet-radius)) rotate(-360deg);
  }
}

@keyframes node-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.value-section {
  background:
    radial-gradient(52rem 32rem at 12% 10%, rgba(48, 170, 217, 0.14), transparent 66%),
    radial-gradient(46rem 34rem at 86% 8%, rgba(95, 39, 216, 0.12), transparent 64%),
    var(--bg-2);
}

.value-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.ledger-item {
  min-width: 0;
  min-height: 255px;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(12, 18, 38, 0.96);
}

.ledger-item span {
  display: block;
  margin-bottom: 3rem;
  color: var(--violet);
}

.ledger-item p {
  margin-bottom: 0;
}

.identity-section {
  background:
    radial-gradient(50rem 34rem at 84% 18%, rgba(122, 0, 217, 0.14), transparent 68%),
    #060918;
}

.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 1rem;
}

.verifier-stack,
.grant-checks {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.verifier-row {
  display: grid;
  grid-template-columns: 70px minmax(170px, 0.46fr) minmax(260px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(48, 170, 217, 0.055), transparent 42%),
    rgba(12, 18, 38, 0.96);
}

.verifier-row span {
  color: var(--cyan);
  font-weight: 900;
}

.verifier-row strong {
  font-size: 1.12rem;
}

.verifier-row p {
  margin-bottom: 0;
}

.identity-note {
  align-self: stretch;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(22rem 20rem at 100% 0%, rgba(122, 0, 217, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(77, 88, 220, 0.12), rgba(48, 170, 217, 0.045)),
    rgba(12, 18, 38, 0.94);
}

.identity-note span {
  color: var(--violet);
}

.identity-note p {
  margin: 1.2rem 0 0;
  color: var(--paper-2);
  font-size: 1.15rem;
}

.fabric-section {
  background:
    radial-gradient(54rem 34rem at 22% 4%, rgba(48, 170, 217, 0.14), transparent 66%),
    radial-gradient(42rem 30rem at 92% 28%, rgba(77, 88, 220, 0.14), transparent 64%),
    #050817;
}

.fabric-board {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.fabric-layer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 96px;
  padding: 1rem 1.2rem;
  background:
    linear-gradient(90deg, rgba(48, 170, 217, 0.045), transparent 48%),
    rgba(11, 17, 36, 0.96);
}

.fabric-layer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--cyan);
}

.fabric-layer:nth-child(2)::before {
  background: var(--blue);
}

.fabric-layer:nth-child(3)::before {
  background: var(--indigo);
}

.fabric-layer:nth-child(4)::before {
  background: var(--purple);
}

.fabric-layer strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.fabric-layer small {
  display: block;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.route-card {
  min-width: 0;
  min-height: 310px;
  padding: 1.25rem;
  background:
    radial-gradient(22rem 18rem at 100% 0%, rgba(95, 39, 216, 0.1), transparent 70%),
    rgba(12, 18, 38, 0.96);
}

.route-card p {
  margin-bottom: 0;
}

.route-line {
  position: relative;
  height: 92px;
  margin-bottom: 1.45rem;
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--surface);
  transform: translateY(-50%);
}

.route-line::before {
  left: 0;
}

.route-line::after {
  right: 0;
}

.route-line.direct {
  color: var(--cyan);
  background: linear-gradient(90deg, transparent 0 6%, currentColor 6% 94%, transparent 94%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 2px;
}

.route-line.relay {
  color: var(--indigo);
  background:
    radial-gradient(circle at 34% 50%, currentColor 0 0.34rem, transparent 0.36rem),
    radial-gradient(circle at 66% 50%, currentColor 0 0.34rem, transparent 0.36rem),
    linear-gradient(90deg, transparent 0 6%, currentColor 6% 94%, transparent 94%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 2px;
}

.route-line.tunnel {
  color: var(--blue);
  background: repeating-linear-gradient(90deg, currentColor 0 16px, transparent 16px 30px);
  mask-image: linear-gradient(transparent 44%, #000 44% 56%, transparent 56%);
}

.route-line.gossip {
  color: var(--purple);
  background:
    radial-gradient(circle at 22% 32%, currentColor 0 0.34rem, transparent 0.36rem),
    radial-gradient(circle at 42% 68%, currentColor 0 0.34rem, transparent 0.36rem),
    radial-gradient(circle at 64% 34%, currentColor 0 0.34rem, transparent 0.36rem),
    radial-gradient(circle at 82% 62%, currentColor 0 0.34rem, transparent 0.36rem);
}

.authority-section {
  background:
    radial-gradient(48rem 30rem at 2% 8%, rgba(48, 170, 217, 0.16), transparent 68%),
    radial-gradient(48rem 30rem at 100% 86%, rgba(122, 0, 217, 0.16), transparent 68%),
    linear-gradient(135deg, #eef7ff 0%, #edf0ff 50%, #f6efff 100%);
  color: var(--ink);
}

.authority-section .section-kicker,
.authority-section .section-heading p,
.authority-section p,
.authority-section small {
  color: #4c5675;
}

.authority-section h2,
.authority-section h3 {
  color: var(--ink);
}

.authority-section code {
  border-color: rgba(53, 95, 216, 0.28);
  background: rgba(53, 95, 216, 0.08);
  color: #142043;
}

.authority-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(17, 23, 46, 0.16);
  background: rgba(17, 23, 46, 0.16);
}

.authority-node {
  min-width: 0;
  min-height: 250px;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52)),
    #f6f8ff;
}

.authority-node span,
.check-row span {
  color: #355fd8;
}

.authority-node p {
  margin-bottom: 0;
}

.grant-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  border-color: rgba(17, 23, 46, 0.16);
  background: rgba(17, 23, 46, 0.16);
}

.check-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52)),
    #f6f8ff;
}

.check-row p {
  margin-bottom: 0;
  color: #4c5675;
}

.site-footer {
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(48, 170, 217, 0.08), rgba(122, 0, 217, 0.08)),
    #030511;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.footer-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.footer-commons-brand {
  flex: 0 0 auto;
}

.site-footer p {
  max-width: 820px;
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
}

.reveal {
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-main {
  display: grid;
  min-height: calc(100svh - 65px);
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) 1rem;
  background:
    radial-gradient(46rem 32rem at 76% 22%, rgba(122, 0, 217, 0.3), transparent 68%),
    radial-gradient(42rem 30rem at 20% 72%, rgba(22, 221, 255, 0.28), transparent 68%),
    #050713;
}

.error-card {
  width: min(760px, 100%);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(8, 12, 28, 0.92);
  box-shadow: var(--shadow);
}

.error-card h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(3.7rem, 12vw, 7rem);
}

.error-card p:not(.eyebrow) {
  max-width: 54ch;
  font-size: 1.16rem;
}

.error-card .hero-actions {
  margin-top: 2rem;
}

@media (min-width: 1320px) {
  h1 {
    font-size: 8.25rem;
  }

  h2 {
    font-size: 4.9rem;
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 5.9rem;
  }

  h2 {
    font-size: 3.45rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    max-width: 620px;
  }

  .hero-metrics,
  .route-grid,
  .authority-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-layout,
  .section-heading,
  .section-heading.wide {
    grid-template-columns: 1fr;
  }

  .motion-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
    gap: 2rem;
  }

  .motion-sticky {
    min-height: 520px;
  }

  .motion-readout {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

}

@media (max-width: 760px) {
  body {
    background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
  }

  #fabric-canvas {
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .header-links {
    width: auto;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .site-nav {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.1rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .site-nav a {
    flex: 0 0 auto;
    justify-content: center;
    padding-right: 0.45rem;
    padding-left: 0.45rem;
  }

  .commons-brand {
    width: 100%;
    justify-content: center;
  }

  .source-link {
    display: none;
  }

  h1 {
    font-size: 4.15rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  h3 {
    font-size: 1.22rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 4.2rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .motion-section {
    padding-bottom: 4rem;
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
  }

  .motion-section::before {
    display: none;
  }

  .motion-layout {
    grid-template-columns: 1fr;
  }

  .motion-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .motion-map {
    width: min(100%, 500px);
  }

  .motion-readout {
    display: none;
  }

  .motion-step {
    min-height: auto;
    margin-bottom: 1px;
    padding: 2.1rem 1.2rem 2.1rem 1.6rem;
    border: 1px solid var(--line);
    background: rgba(9, 14, 31, 0.72);
    opacity: 1;
  }

  .motion-step::before {
    top: 2.5rem;
    left: -5px;
  }

  .motion-step.is-active {
    border-color: var(--line);
    transform: none;
  }

  .motion-step h3 {
    font-size: 1.8rem;
  }

  .value-ledger,
  .route-grid,
  .authority-flow,
  .grant-checks {
    grid-template-columns: 1fr;
  }

  .verifier-row,
  .fabric-layer,
  .check-row {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .hero-metrics {
    display: none;
  }

  .signal-list div {
    grid-template-columns: minmax(7.2rem, 0.68fr) minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.82rem 1rem;
  }

  .ledger-item,
  .route-card,
  .authority-node {
    min-height: auto;
  }

  .ledger-item span {
    margin-bottom: 1.8rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-commons-brand {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 0.45rem;
    font-size: 0.92rem;
  }

  .brand-logo {
    width: 1.7rem;
    height: 1.7rem;
  }

  .site-nav {
    font-size: 0.82rem;
  }

  .site-nav a {
    padding-right: 0.32rem;
    padding-left: 0.32rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 0.4rem;
  }

  .brand {
    font-size: 0.86rem;
  }

  .site-nav {
    gap: 0;
    font-size: 0.74rem;
  }

  .site-nav a {
    padding-right: 0.1rem;
    padding-left: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
