@font-face {
  font-family: "Newsreader";
  src: url(assets/fonts/Newsreader-VF.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Newsreader";
  src: url(assets/fonts/Newsreader-Italic-VF.woff2) format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: optional;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url(assets/fonts/SchibstedGrotesk-VF.woff2) format("woff2");
  font-weight: 400 900;
  font-display: optional;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(assets/fonts/IBMPlexMono-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(assets/fonts/IBMPlexMono-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: optional;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  size-adjust: 111.2%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica");
  size-adjust: 104.1%;
}
@font-face {
  font-family: "B1 Grotesk";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans"), local("Arimo");
  font-weight: 700;
  size-adjust: 88.2%;
}

:root {
  /* Chartreuse Ledger, dark. Body text is --text on --bg (AAA).
     Accent on surface-2 is for large type and controls. Ember is not small text. */
  --bg: #1A1A19;
  --surface: #242422;
  --surface-2: #2F2E2B;
  --border: #43423D;
  --text: #F5F3EE;
  --muted: #B0ACA2;
  --accent: #C6FF2E;
  --accent-2: #FF5A4A;
  --accent-hover: #D8FF62;
  --on-accent: #1A1A19;
  --success: #7DFF6A;
  --warning: #FFB347;
  --danger: #FF6A5C;
  --focus: #F5C542;
  --wm-brics: #F5F3EE;
  --wm-currency: #C6FF2E;
  --wm-btc: #FF5A4A;
  --wm-plate: #1A1A19;
  --paper: var(--bg);
  --paper-2: var(--surface);
  --paper-3: var(--surface-2);
  --ink: var(--text);
  --ink-2: var(--text);
  --ink-3: var(--muted);
  --line: var(--border);
  --line-strong: var(--border);
  --red: var(--accent-2);
  --red-ink: var(--accent-2);
  --warn: var(--warning);
  --f-serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --f-sans: "Schibsted Grotesk", "Schibsted Fallback", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;

  /* Motion tokens. Every r6 duration, distance, and ease is set here. */
  --motion-press: 150ms;
  --motion-press-release: 100ms;
  --motion-hover: 200ms;
  --motion-hover-exit: 120ms;
  --motion-reveal: 450ms;
  --motion-hero: 580ms;
  --motion-hero-total: 700ms;
  --motion-tick: 300ms;
  --motion-exit: 300ms;
  --motion-emphasis: 400ms;
  --motion-stagger: 60ms;
  --motion-rise-hero: 8px;
  --motion-rise-section: 12px;
  --motion-press-scale: 0.97;
  --motion-max-concurrent: 3;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F4EE;
    --surface: #FFFFFF;
    --surface-2: #EAE8DF;
    --border: #CDCAC0;
    --text: #1A1A19;
    --muted: #57544D;
    --accent: #4A6B00;
    --accent-2: #B8271A;
    --accent-hover: #3A5600;
    --on-accent: #F5F4EE;
    --success: #146B1F;
    --warning: #8A5A00;
    --danger: #B3260F;
    --focus: #7A4E00;
  }
  /* Cream page, no plate: the three wordmark parts use the light-theme ink, chartreuse, and ember. */
  .b1wm {
    --wm-brics: var(--text);
    --wm-currency: var(--accent);
    --wm-btc: var(--accent-2);
    --b1wm-ink: var(--text);
    --b1wm-red: var(--accent);
  }
  html {
    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font: 400 17px/1.6 var(--f-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--paper-3);
  color: var(--ink);
}

.wrap {
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skiplink {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  min-height: 44px;
  text-decoration: none;
}

.skiplink:focus {
  top: 12px;
}

.fineprint,
.eyebrow,
.mono-label,
.index {
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 18px 0 10px;
}

.brand-cluster,
.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.nav a,
.footer-links a,
.outlink a,
.text-link a,
.source-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav a::after,
.footer-links a::after,
.outlink a::after,
.text-link a::after,
.source-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-hover-exit) var(--ease-in);
  pointer-events: none;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.outlink a:hover::after,
.outlink a:focus-visible::after,
.text-link a:hover::after,
.text-link a:focus-visible::after,
.source-list a:hover::after,
.source-list a:focus-visible::after {
  transform: scaleX(1);
  transition-duration: var(--motion-hover);
  transition-timing-function: var(--ease-out);
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  min-width: 0;
  padding-bottom: 56px;
}

.skip-slot {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
}

.ledger {
  width: min(100%, 420px);
  margin: 0 0 20px;
}

.ledger-rule {
  position: relative;
  height: 16px;
}

.ledger-track,
.ledger-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
}

.ledger-track {
  background: var(--line-strong);
}

.ledger-fill {
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: 0 50%;
}

html.beat-run #ledger-fill {
  animation: ledger-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes ledger-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

h1,
.h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}

.hero-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line {
    animation: hero-in var(--motion-hero) var(--ease-out) both;
  }

  .hero-line:nth-child(2) {
    animation-delay: var(--motion-stagger);
  }

  .hero-line:nth-child(3) {
    animation-delay: calc(var(--motion-stagger) * 2);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(var(--motion-rise-hero));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta-row,
.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.motion-toggle,
.buy-actions button,
#copy-contract,
#curve-reread,
#skip-beat,
.demo-btn {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.2;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--motion-press-release) var(--ease-in);
}

.btn:active,
.motion-toggle:active,
.buy-actions button:active,
#copy-contract:active,
#curve-reread:active,
#skip-beat:active,
.demo-btn:active {
  transform: scale(var(--motion-press-scale));
  transition-duration: var(--motion-press);
  transition-timing-function: var(--ease-out);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.motion-toggle,
#skip-beat,
#copy-contract,
#curve-reread {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  min-height: 44px;
}

#pause-ambient {
  min-width: 44px;
  min-height: 44px;
}

.hero-mark-col {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mark-plate {
  width: 100%;
  padding: 28px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}

.b1-mark {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.countries {
  border-top: 1px solid var(--ink);
  padding: 22px 0 8px;
}

.countries ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.countries li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  min-width: 0;
}

.countries span {
  font-size: 13px;
  line-height: 1.3;
}

.countries small {
  font: 400 11px/1.3 var(--f-mono);
  color: var(--ink-3);
}

.entry {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.band--alt {
  background: var(--paper-2);
}

.entry-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: start;
}

.index {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-3);
}

h2 {
  margin: 0 0 16px;
  max-width: 24ch;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  margin: 12px 0 8px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  max-width: var(--measure);
}

.note,
.exclusion {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  max-width: 28ch;
  font-family: var(--f-serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.status-icon {
  width: 0.72em;
  height: 0.72em;
  margin-top: 0.18em;
  flex: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px 48px;
  align-items: start;
}

.contract-block {
  background: var(--paper-2);
  border-radius: 6px;
  padding: 24px;
  min-width: 0;
}

.band--alt .contract-block {
  background: var(--paper);
}

.mono-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-3);
}

code {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

#copy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 1.4em;
  min-width: 12em;
  margin: 0;
  font-size: 14px;
  max-width: none;
}

.copy-tick {
  width: 24px;
  height: 24px;
  flex: none;
}

.copy-tick path {
  fill: none;
  stroke: #b3260f;
  stroke-width: 2;
  stroke-linecap: square;
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}

#copy-status.is-copied .tick-a {
  animation: tick-draw var(--motion-tick) var(--ease-out) forwards;
}

#copy-status.is-copied .tick-b {
  animation: tick-draw var(--motion-tick) var(--ease-out) forwards;
}

@keyframes tick-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.steps,
.stages {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps li,
.stages li {
  min-width: 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.steps p,
.stages p,
.gates,
.pipeline {
  margin-bottom: 0;
}

.steps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  flex: none;
}

.buy-actions {
  margin: 8px 0 20px;
}

.buy-actions button {
  flex: 1 1 240px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  opacity: 1;
  border: 1px dashed var(--line-strong);
  cursor: not-allowed;
  -webkit-text-fill-color: var(--ink);
}

.gates,
.pipeline {
  margin: 8px 0 16px;
  padding: 0;
  max-width: var(--measure);
}

.gates {
  list-style: none;
}

.gates li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.pipeline {
  padding-left: 1.2em;
}

.pipeline li {
  padding: 4px 0;
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 36px 0 48px;
}

.footer-brand {
  margin-bottom: 8px;
}

.b1wm--header {
  --b1wm-size: 20px;
  min-width: 144px;
  min-height: 26px;
}

.b1wm--hero {
  --b1wm-size: clamp(18px, 6.4vw, 40px);
  max-width: 100%;
}
.b1wm--footer {
  --b1wm-size: 20px;
  min-width: 152px;
  min-height: 26px;
}
.b1wm--header .b1wm__tube {
  min-width: 84px;
}
.b1wm--footer .b1wm__tube {
  min-width: 88px;
}

.disclaimer {
  margin: 12px 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.footer-contract {
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 8px 0 12px;
  padding: 0;
}

.fineprint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0.04em;
}

.noscript-note {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  max-width: var(--measure);
  font-size: 15px;
}

/* Cloth flags: v6 timing, strip count, and geometry. Asset URLs point at the byte-identical SVGs. */
.cloth {
  grid-row: span 2;
  display: flex;
  width: 60px;
  height: 40px;
  position: relative;
}
.cloth::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  bottom: -10px;
  width: 2px;
  background: #8a8378;
  border-radius: 1px;
}
.cloth i {
  flex: 1 1 0;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 2000% 100%;
  box-shadow: 0 1px 0 rgba(25, 24, 22, 0.08);
  animation: cloth 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform, filter;
}
@keyframes cloth {
  0%,
  100% {
    transform: translateY(calc(var(--a) * -1)) skewY(calc(var(--k) * -1));
    filter: brightness(1.07);
  }
  50% {
    transform: translateY(var(--a)) skewY(var(--k));
    filter: brightness(0.88);
  }
}
.flags-paused .cloth i,
html.ambient-paused .cloth i {
  animation-play-state: paused;
}

html.ambient-paused .b1wm *,
html.ambient-paused .b1wm *::before,
html.ambient-paused .b1wm *::after,
html.ambient-paused #ledger-fill {
  animation: none !important;
}

html.ambient-paused .b1wm__a,
html.ambient-paused .b1wm__dot-a {
  opacity: 0 !important;
}

html.ambient-paused .b1wm__b,
html.ambient-paused .b1wm__dot-b {
  opacity: 1 !important;
}

html.ambient-paused .hero-line,
html.ambient-paused [data-reveal] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

html.motion-on [data-reveal] {
  opacity: 0;
  transform: translateY(var(--motion-rise-section));
}

html.motion-on [data-reveal].is-shown {
  animation: section-in var(--motion-reveal) var(--ease-out) forwards;
}

@keyframes section-in {
  from {
    opacity: 0;
    transform: translateY(var(--motion-rise-section));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cloth--brazil i {
  background-image: url(assets/brazil.svg);
}
.cloth--russia i {
  background-image: url(assets/russia.svg);
}
.cloth--india i {
  background-image: url(assets/india.svg);
}
.cloth--china i {
  background-image: url(assets/china.svg);
}
.cloth--south-africa i {
  background-image: url(assets/south-africa.svg);
}
.cloth i:nth-child(1) {
  background-position: 0% 0;
  --a: 0.12px;
  --k: 0deg;
  animation-delay: -4.4s;
}
.cloth i:nth-child(2) {
  background-position: 5.263% 0;
  --a: 0.28px;
  --k: 0.09deg;
  animation-delay: -4.18s;
}
.cloth i:nth-child(3) {
  background-position: 10.526% 0;
  --a: 0.44px;
  --k: 0.18deg;
  animation-delay: -3.96s;
}
.cloth i:nth-child(4) {
  background-position: 15.789% 0;
  --a: 0.6px;
  --k: 0.27deg;
  animation-delay: -3.74s;
}
.cloth i:nth-child(5) {
  background-position: 21.053% 0;
  --a: 0.76px;
  --k: 0.36deg;
  animation-delay: -3.52s;
}
.cloth i:nth-child(6) {
  background-position: 26.316% 0;
  --a: 0.92px;
  --k: 0.45deg;
  animation-delay: -3.3s;
}
.cloth i:nth-child(7) {
  background-position: 31.579% 0;
  --a: 1.08px;
  --k: 0.54deg;
  animation-delay: -3.08s;
}
.cloth i:nth-child(8) {
  background-position: 36.842% 0;
  --a: 1.24px;
  --k: 0.63deg;
  animation-delay: -2.86s;
}
.cloth i:nth-child(9) {
  background-position: 42.105% 0;
  --a: 1.4px;
  --k: 0.72deg;
  animation-delay: -2.64s;
}
.cloth i:nth-child(10) {
  background-position: 47.368% 0;
  --a: 1.56px;
  --k: 0.81deg;
  animation-delay: -2.42s;
}
.cloth i:nth-child(11) {
  background-position: 52.632% 0;
  --a: 1.72px;
  --k: 0.9deg;
  animation-delay: -2.2s;
}
.cloth i:nth-child(12) {
  background-position: 57.895% 0;
  --a: 1.88px;
  --k: 0.99deg;
  animation-delay: -1.98s;
}
.cloth i:nth-child(13) {
  background-position: 63.158% 0;
  --a: 2.04px;
  --k: 1.08deg;
  animation-delay: -1.76s;
}
.cloth i:nth-child(14) {
  background-position: 68.421% 0;
  --a: 2.2px;
  --k: 1.17deg;
  animation-delay: -1.54s;
}
.cloth i:nth-child(15) {
  background-position: 73.684% 0;
  --a: 2.36px;
  --k: 1.26deg;
  animation-delay: -1.32s;
}
.cloth i:nth-child(16) {
  background-position: 78.947% 0;
  --a: 2.52px;
  --k: 1.35deg;
  animation-delay: -1.1s;
}
.cloth i:nth-child(17) {
  background-position: 84.211% 0;
  --a: 2.68px;
  --k: 1.44deg;
  animation-delay: -0.88s;
}
.cloth i:nth-child(18) {
  background-position: 89.474% 0;
  --a: 2.84px;
  --k: 1.53deg;
  animation-delay: -0.66s;
}
.cloth i:nth-child(19) {
  background-position: 94.737% 0;
  --a: 3px;
  --k: 1.62deg;
  animation-delay: -0.44s;
}
.cloth i:nth-child(20) {
  background-position: 100% 0;
  --a: 3.16px;
  --k: 1.71deg;
  animation-delay: -0.22s;
}
.countries li:nth-child(2) .cloth i {
  animation-duration: 7.6s;
}
.countries li:nth-child(3) .cloth i {
  animation-duration: 6.6s;
}
.countries li:nth-child(4) .cloth i {
  animation-duration: 8.1s;
}
.countries li:nth-child(5) .cloth i {
  animation-duration: 7.3s;
}

@media (max-width: 900px) {
  .hero {
    padding: 32px 0 12px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .hero-mark-col {
    justify-content: flex-start;
  }
  .entry {
    padding: 48px 0;
  }
  .entry-grid,
  .split,
  .steps,
  .stages {
    grid-template-columns: minmax(0, 1fr);
  }
  .index {
    margin: 0;
  }
}

@media (max-width: 700px) {
  .countries ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .countries li {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 4px;
  }
  .cloth {
    grid-row: auto;
    width: 100%;
    max-width: 54px;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .countries span {
    font-size: 11px;
    line-height: 1.2;
  }
  .countries small {
    font-size: 10px;
  }
  .buy-actions {
    flex-direction: column;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .countries ul {
    gap: 6px;
  }
  .cloth {
    max-width: 44px;
  }
  .countries span {
    font-size: 10px;
  }
}

.curve-figure,
.curve-meta {
  min-height: 3.2em;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  max-width: 100%;
}

#curve-pool,
#curve-pool-tx {
  min-height: 3.2em;
}

/* Slow the btc/Currency swap to a single opacity step each way.
   Switches sit more than a second apart. Colour is static on each part.
   The wordmark and logos are transparent. There is no graphite plate. */
.b1wm {
  --b1wm-dur: 8s;
  --b1wm-ink: var(--wm-brics);
  --b1wm-red: var(--wm-currency);
  background-color: transparent;
  color: var(--wm-brics);
  border-radius: 4px;
  line-height: 1.35;
  padding: 0.06em 0.22em 0.1em;
}

.b1wm__text {
  color: var(--wm-brics);
}

.b1wm__dots {
  display: inline-grid;
  margin-left: 0.035em;
}

.b1wm__dots .b1wm__dot {
  grid-area: 1 / 1;
  margin-left: 0;
}

.b1wm__dot-a {
  color: var(--wm-btc);
  animation: b1slow-a var(--b1wm-dur) linear infinite;
}

.b1wm__dot-b {
  color: var(--wm-currency);
  animation: b1slow-b var(--b1wm-dur) linear infinite;
}

.b1wm__a {
  color: var(--wm-btc);
  animation: b1slow-a var(--b1wm-dur) linear infinite;
}

.b1wm__b {
  color: var(--wm-currency);
  animation: b1slow-b var(--b1wm-dur) linear infinite;
}

.motion-paused .b1wm__dot-a,
html.ambient-paused .b1wm__dot-a {
  opacity: 0 !important;
  animation: none !important;
}

.motion-paused .b1wm__dot-b,
html.ambient-paused .b1wm__dot-b {
  opacity: 1 !important;
  animation: none !important;
}

.b1wm__a::before,
.b1wm__a::after,
.b1wm__b::before,
.b1wm__b::after {
  content: none;
  animation: none;
  opacity: 0;
}

.b1wm__tube::after {
  content: none;
  animation: none;
  opacity: 0;
}

@keyframes b1slow-a {
  0%,
  40% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  40.01%,
  92% {
    opacity: 0;
    transform: none;
    filter: none;
  }
  92.01%,
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes b1slow-b {
  0%,
  48% {
    opacity: 0;
    transform: none;
    filter: none;
  }
  48.01%,
  84% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  84.01%,
  100% {
    opacity: 0;
    transform: none;
    filter: none;
  }
}

/* Same cloth shape, half the rate, so an edge crosses a pixel less often. */
.cloth i {
  animation-duration: 14s;
}

.countries li:nth-child(2) .cloth i {
  animation-duration: 15.2s;
}

.countries li:nth-child(3) .cloth i {
  animation-duration: 13.2s;
}

.countries li:nth-child(4) .cloth i {
  animation-duration: 16.2s;
}

.countries li:nth-child(5) .cloth i {
  animation-duration: 14.6s;
}

@media (prefers-reduced-motion: reduce) {
  *:not(.b1wm, .b1wm *) {
    animation: none !important;
    transition: none !important;
  }
  .motion-toggle,
  #skip-beat {
    display: none !important;
  }
  #ledger-fill {
    transform: scaleX(1) !important;
  }
  .hero-line,
  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.fact-scene {
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}

#drop,
#drop p,
#drop li,
#drop a,
#drop code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fact-scene h3 {
  margin: 0 0 8px;
  font-family: var(--f-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}

.source-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.token-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8em, 16em) 1fr;
  gap: 8px 24px;
}

.token-list dt {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 13px;
}

.token-list dd {
  margin: 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.demo-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.demo-stage {
  min-height: 72px;
  margin: 12px 0;
  display: flex;
  align-items: center;
}

.demo-play.is-enter {
  animation: hero-in var(--motion-hero) var(--ease-out) both;
}

.demo-play.is-exit {
  animation: motion-exit var(--motion-exit) var(--ease-in) both;
}

.demo-play.is-emphasis {
  animation: motion-emphasis var(--motion-emphasis) var(--ease-out) both;
}

@keyframes motion-exit {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(var(--motion-rise-hero));
  }
}

@keyframes motion-emphasis {
  0%,
  100% {
    opacity: 1;
  }
  40% {
    opacity: 0.72;
  }
}

@media (max-width: 720px) {
  .demo-grid,
  .token-list {
    grid-template-columns: 1fr;
  }
}

.register-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.register-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.register-icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.register-status {
  margin: 0 0 6px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.register-row h3,
.register-row p {
  overflow-wrap: anywhere;
}

.page-hero {
  padding: 36px 0 8px;
}

.risk-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  max-width: 70ch;
}

.risk-lines li {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

#stxcity-trade,
#stxcity-trade a,
.site-footer .outlink,
.site-footer .outlink a {
  overflow-wrap: anywhere;
}
