/* ──────────────────────────────────────────────────────────────
   Octarine — design tokens
   Paper & ink, hairline rules, one spectral accent (the eighth slice).
   ────────────────────────────────────────────────────────────── */
:root {
  --paper: #f3f1ea;
  --paper-2: #ebe8df;
  --paper-3: #e2ded3;
  --card: #fbfaf6;
  --ink: #131311;
  --ink-2: #47463f;
  --ink-3: #7d7a70;
  --rule: rgba(19, 19, 17, 0.14);
  --rule-strong: rgba(19, 19, 17, 0.32);

  --citrus: #dd7a28;
  --oct-1: #5e2f86;
  --oct-2: #566e8c;
  --oct-3: #4e938c;
  --oct-4: #5cac84;
  --teal: #2f7069;
  --spectrum: linear-gradient(90deg, var(--oct-1) 0%, var(--oct-2) 32%, var(--oct-3) 62%, #55a587 85%, var(--oct-4) 100%);

  --night: #0e1211;
  --night-2: #161b1a;
  --night-ink: #ecebe4;
  --night-ink-2: #a3a69f;
  --night-rule: rgba(236, 235, 228, 0.14);

  --f-display: "Newsreader", 'Times New Roman', serif;
  --f-sans: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv01';
  overflow-x: hidden;
}

/* Paper grain — subtle, keeps large flat areas from feeling digital */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--f-mono);
  font-feature-settings: 'zero';
}

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Type ─────────────────────────────────────────────────── */
.display,
.h2,
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.display em,
.h2 em {
  font-style: italic;
  font-weight: 300;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
}

.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin: 28px 0 0;
}

.body {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--spectrum);
  transform: rotate(45deg);
}

.inline-link {
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s;
}
.inline-link:hover {
  border-color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: #2a2a26;
}
.btn--line {
  border-color: var(--rule-strong);
  color: var(--ink);
}
.btn--line:hover {
  border-color: var(--ink);
}
.btn--paper {
  background: var(--night-ink);
  color: var(--night);
}
.btn--paper:hover {
  background: #fff;
}

.arrow-ico {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow-ico,
.link:hover .arrow-ico {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s;
}
.link:hover {
  border-color: var(--ink);
}

.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

/* ── Spectrum rule (the eighth colour) ───────────────────── */
.spectrum {
  height: 2px;
  background: var(--spectrum);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-header__logo img {
  height: 34px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.site-header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  width: 40px;
  height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.25px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:first-child {
  top: 15px;
}
.menu-btn span:last-child {
  top: 21px;
}
.is-open .menu-btn span:first-child {
  top: 18px;
  transform: rotate(45deg);
}
.is-open .menu-btn span:last-child {
  top: 18px;
  transform: rotate(-45deg);
}
.mobile-nav {
  display: none;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .site-header__cta .btn {
    display: none;
  }
  .site-header__logo img {
    height: 30px;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 68px);
    padding: 12px var(--gutter) 32px;
    background: var(--paper);
  }
  .mobile-nav a:not(.btn) {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--f-display);
    font-size: 30px;
    letter-spacing: -0.02em;
  }
  .mobile-nav a .mono {
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
  }
  .mobile-nav .btn {
    margin-top: auto;
    height: 54px;
  }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.hero__mark {
  position: absolute;
  right: -180px;
  top: -120px;
  width: 760px;
  height: 760px;
  color: var(--rule);
  opacity: 0.9;
  pointer-events: none;
  animation: mark-turn 120s linear infinite;
}
.hero__mark {
  --seg-on: 0.16;
}
@keyframes mark-turn {
  to {
    transform: rotate(360deg);
  }
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__copy .display {
  max-width: 10.5ch;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(64px, 9vw, 112px) 0 0;
  border-top: 1px solid var(--rule);
}
.facts > div {
  padding: 22px 24px 30px 0;
}
.facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.facts dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(19px, 1.6vw, 23px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── RFQ ticket ──────────────────────────────────────────── */
.ticket {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(19, 19, 17, 0.04), 0 30px 60px -30px rgba(19, 19, 17, 0.25);
  font-size: 13px;
  position: relative;
}
.ticket::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto;
  height: 2px;
  background: var(--spectrum);
}
.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
}
.ticket__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticket__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--citrus);
}
.ticket__status.is-collecting i,
.ticket__status.is-open i {
  animation: pulse 1.1s ease-in-out infinite;
}
.ticket__status.is-awarded i,
.ticket__status.is-settled i {
  background: var(--oct-3);
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.ticket__legs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 12px;
  padding: 22px 20px 18px;
}
.ticket__leg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ticket__leg--right {
  text-align: right;
}
.ticket__amt {
  font-family: var(--f-mono);
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.4s;
}
.ticket__amt b {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.72em;
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.ticket__amt.is-final {
  color: var(--teal);
}
.ticket__arrow {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.ticket__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ticket__meta > div {
  padding: 10px 20px;
}
.ticket__meta > div + div {
  border-left: 1px solid var(--rule);
}
.ticket__meta dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticket__meta dd {
  margin: 2px 0 0;
  font-family: var(--f-mono);
  font-size: 13px;
}

.ticket__book {
  padding: 8px 0;
}
.ticket__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  align-items: center;
  height: 34px;
  padding: 0 20px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: background 0.4s, color 0.4s, opacity 0.4s;
}
.ticket__row > span:nth-child(2),
.ticket__row > span:nth-child(3) {
  text-align: right;
}
.ticket__row--head {
  height: 28px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ticket__row.is-empty {
  color: var(--paper-3);
}
.ticket__row.is-filled {
  animation: row-in 0.45s var(--ease);
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.ticket__row.is-best {
  background: color-mix(in srgb, var(--oct-3) 9%, transparent);
  color: var(--ink);
  font-weight: 500;
}
.ticket__row.is-best::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--oct-1), var(--oct-4));
}
.ticket__row.is-lost {
  color: var(--ink-3);
  opacity: 0.8;
}

.ticket__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.ticket__clock {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ticket__bar {
  flex: 1;
  height: 2px;
  background: var(--paper-2);
  overflow: hidden;
}
.ticket__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
}
.ticket__settled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  animation: row-in 0.45s var(--ease);
}
.ticket__settled svg {
  width: 14px;
  height: 14px;
}
.ticket__caption {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid var(--rule);
}
#problem.section {
  border-top: 0;
}
.section--tint {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 3fr) 9fr;
  gap: 24px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head__idx {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-head__idx span {
  color: var(--ink);
}
.section-head__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px clamp(24px, 4vw, 64px);
  align-items: end;
}
.section-head__body .body {
  max-width: 30em;
}

/* Problem: redemption clock */
.clock {
  margin-left: calc((100% - 0px) * 0);
  position: relative;
  padding-top: 36px;
}
.clock__axis {
  position: absolute;
  top: 0;
  left: calc(220px + 24px);
  right: calc(120px + 24px);
  height: 20px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.clock__axis span {
  position: absolute;
  transform: translateX(-50%);
}
.clock__axis span:first-child {
  transform: none;
}
.clock__axis span:last-child {
  transform: translateX(-100%);
}
.clock__row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.clock__label {
  font-family: var(--f-display);
  font-size: 21px;
  letter-spacing: -0.01em;
}
.clock__track {
  position: relative;
  height: 14px;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 18) 100%;
}
.clock__bar {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.js .clock:not(.is-in) .clock__bar {
  transform: scaleX(0);
}
.clock__val {
  text-align: right;
  font-size: 14px;
}
.clock__row--oct {
  border-bottom: 1px solid var(--rule);
}
.clock__row--oct .clock__label {
  font-style: italic;
}
.clock__dot {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--spectrum);
  transform: rotate(45deg);
}
.clock__row--oct .clock__val {
  color: var(--teal);
}
.clock__caption {
  margin: 14px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Mechanism */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
}
.step {
  padding: 28px 32px 8px 0;
}
.step + .step {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}
.step__n {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 40px;
}
.step .h3 {
  margin-bottom: 14px;
}

.flow {
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.flow svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.flow__node rect {
  fill: var(--card);
  stroke: var(--rule-strong);
  stroke-width: 1;
}
.flow__node--oct rect:first-child {
  fill: var(--paper);
  stroke: var(--ink);
}
.flow__node--muted rect {
  stroke-dasharray: 3 4;
}
.flow__solver.is-win rect {
  stroke: var(--teal);
  fill: color-mix(in srgb, var(--oct-3) 9%, var(--card));
}
.flow__k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: var(--ink-3);
}
.flow__v {
  font-family: var(--f-display);
  font-size: 22px;
  fill: var(--ink);
}
.flow__s {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--ink-2);
}
.flow__rule {
  stroke: var(--rule);
}
.flow__edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.flow__edge--oct {
  stroke: var(--teal);
  stroke-width: 1.6;
}
.flow__edge--thin {
  stroke: var(--rule-strong);
  stroke-width: 1;
}
.flow__edge--thin.is-win {
  stroke: var(--teal);
  stroke-width: 1.6;
}
.flow__edge--dash {
  stroke-dasharray: 3 4;
  stroke: var(--ink-3);
}
.js .flow .flow__edge {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s var(--ease) 0.2s;
}
.js .flow .flow__edge--dash {
  stroke-dasharray: 3 4;
  stroke-dashoffset: 0;
}
.js .flow.is-in .flow__edge {
  stroke-dashoffset: 0;
}

/* Pricing calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--rule-strong);
  background: var(--card);
}
.calc__inputs {
  padding: clamp(24px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-right: 1px solid var(--rule);
}
.calc__field {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.calc__field legend {
  margin-bottom: 14px;
  padding: 0;
}
.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.calc__row output {
  font-size: 14px;
}
.calc__chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule-strong);
}
.chip {
  height: 44px;
  font-family: var(--f-mono);
  font-size: 13px;
  background: transparent;
  color: var(--ink-2);
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip + .chip {
  border-left: 1px solid var(--rule-strong);
}
.chip:hover {
  background: var(--paper);
}
.chip.is-on {
  background: var(--ink);
  color: var(--paper);
}
.calc__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-3);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--rule-strong);
}
input[type='range']::-moz-range-track {
  height: 1px;
  background: var(--rule-strong);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--ink);
  border: 3px solid var(--card);
  outline: 1px solid var(--ink);
  transform: rotate(45deg);
}
input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--ink);
  border: 3px solid var(--card);
  outline: 1px solid var(--ink);
  border-radius: 0;
  transform: rotate(45deg);
}

.calc__out {
  padding: clamp(24px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.calc__formula {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.calc__big {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 0;
}
.calc__big strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
}
.calc__big small {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.calc__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--rule);
}
.calc__stats > div {
  padding: 16px 12px 0 0;
}
.calc__stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.calc__stats dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.calc__stats dd {
  margin: 6px 0 0;
  font-family: var(--f-mono);
  font-size: 17px;
}
.calc__note {
  margin: auto 0 0;
  padding-top: 32px;
  font-size: 13px;
  color: var(--ink-3);
}

/* Rails */
.rails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rail {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  padding-bottom: 40px;
}
.ticks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.ticks li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--ink);
  transform: rotate(45deg);
}

/* Liquidations (night) */
.section--night {
  background: var(--night);
  color: var(--night-ink);
  border-top: 0;
  position: relative;
}
.section--night::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--spectrum);
}
.section--night .body {
  color: var(--night-ink-2);
}
.section--night .section-head__idx {
  color: var(--night-ink-2);
}
.section--night .section-head__idx span {
  color: var(--night-ink);
}
.liq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.liq .section-head {
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.liq .section-head__body {
  grid-template-columns: 1fr;
}
.liq .h2 {
  max-width: 12ch;
}
.liq__chart {
  margin: 0;
  border: 1px solid var(--night-rule);
  background: var(--night-2);
  padding: clamp(16px, 2.5vw, 28px);
}
.liq__chart svg {
  width: 100%;
  height: auto;
}
.liq__grid {
  stroke: var(--night-rule);
  stroke-width: 1;
}
.liq__threshold {
  stroke: var(--citrus);
  stroke-dasharray: 4 5;
  stroke-width: 1.2;
}
.liq__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--night-ink-2);
}
.liq__label--dim {
  letter-spacing: 0.02em;
  opacity: 0.7;
}
.liq__line {
  fill: none;
  stroke: url(#liq-oct);
  stroke-width: 2;
  stroke-linejoin: round;
}
.js .liq__chart .liq__line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 2.2s var(--ease) 0.2s;
}
.js .liq__chart.is-in .liq__line {
  stroke-dashoffset: 0;
}
.liq__fill circle {
  fill: var(--night);
  stroke: var(--night-ink);
  stroke-width: 1;
}
.liq__fill text {
  font-family: var(--f-mono);
  font-size: 11px;
  fill: var(--night-ink);
}
.js .liq__chart .liq__fill {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.js .liq__chart.is-in .liq__fill {
  opacity: 1;
}
.js .liq__chart.is-in .liq__fill:nth-of-type(1) {
  transition-delay: 1.5s;
}
.js .liq__chart.is-in .liq__fill:nth-of-type(2) {
  transition-delay: 1.8s;
}
.js .liq__chart.is-in .liq__fill:nth-of-type(3) {
  transition-delay: 2.1s;
}

/* Compliance ledger */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(160px, 3fr) 9fr;
  gap: 24px clamp(24px, 4vw, 64px);
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.ledger__n {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 8px;
}
.ledger__pair {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px clamp(24px, 4vw, 64px);
}
.ledger__k {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ledger__pair .body {
  padding-top: 4px;
  max-width: 30em;
}

/* Participants */
.parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
}
.part {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px 0 0;
}
.part + .part {
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}
.part__n {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 40px;
}
.part .body {
  flex: 1;
}
.part .link {
  align-self: flex-start;
  margin-top: 12px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
}
.faq .section-head {
  grid-template-columns: 1fr;
  margin: 0;
  align-content: start;
}
.faq .section-head__body {
  grid-template-columns: 1fr;
  align-items: start;
}
.faq__list {
  border-top: 1px solid var(--rule-strong);
}
.qa {
  border-bottom: 1px solid var(--rule);
}
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.qa summary i::before,
.qa summary i::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.25px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.qa summary i::after {
  transform: rotate(90deg);
}
.qa[open] summary i::after {
  transform: rotate(0deg);
}
.qa p {
  padding: 0 48px 28px 0;
  max-width: 40em;
}

/* Close */
.close {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 200px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.close__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  color: var(--rule);
  pointer-events: none;
}
.close__mark {
  --seg-on: 0.09;
}
.close__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.display--close {
  max-width: 12ch;
  font-size: clamp(44px, 6.6vw, 96px);
}
.close .hero__ctas {
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--paper-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.footer__brand img {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
}
.footer__brand .body {
  font-size: 15px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.footer__col .label {
  margin-bottom: 6px;
}
.footer__col a {
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--ink);
}
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 28px;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__base a {
  color: var(--ink);
}

/* ── Reveal ─────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .js .clock:not(.is-in) .clock__bar {
    transform: none;
  }
  .js .flow .flow__edge,
  .js .liq__chart .liq__line {
    stroke-dashoffset: 0;
  }
  .js .liq__chart .liq__fill {
    opacity: 1;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__copy .display {
    max-width: 12ch;
  }
  .hero__ticket {
    max-width: 560px;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .section-head__idx {
    flex-direction: row;
    gap: 14px;
    margin: 0;
  }
  .liq {
    grid-template-columns: 1fr;
  }
  .ledger__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .section-head__body {
    grid-template-columns: 1fr;
  }
  .steps,
  .parts {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step,
  .part,
  .part + .part {
    padding: 24px 0 32px;
    border-left: 0;
  }
  .step + .step,
  .part + .part {
    border-top: 1px solid var(--rule);
  }
  .step__n,
  .part__n {
    margin-bottom: 16px;
  }
  .calc {
    grid-template-columns: 1fr;
  }
  .calc__inputs {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .rails {
    grid-template-columns: 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .flow {
    display: none;
  }
  .clock__row {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }
  .clock__track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .clock__axis {
    display: none;
  }
  .clock {
    padding-top: 0;
  }
  .clock__label {
    font-size: 19px;
  }
  .ledger__pair {
    grid-template-columns: 1fr;
  }
  .hero__mark {
    width: 520px;
    height: 520px;
    right: -260px;
    top: -140px;
  }
}

@media (max-width: 520px) {
  .ticket__legs {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ticket__leg--right {
    text-align: left;
  }
  .ticket__arrow {
    transform: rotate(90deg);
  }
  .ticket__meta > div {
    padding: 10px 14px;
  }
  .ticket__row,
  .ticket__head,
  .ticket__legs,
  .ticket__foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ticket__row {
    font-size: 11.5px;
  }
  .calc__stats {
    grid-template-columns: 1fr;
  }
  .calc__stats > div,
  .calc__stats > div + div {
    padding: 12px 0;
    border-left: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .calc__stats > div + div {
    border-top: 1px solid var(--rule);
  }
  .calc__stats dd {
    margin: 0;
  }
  .qa p {
    padding-right: 0;
  }
  .footer__base {
    flex-direction: column;
  }
  .hero__ctas .btn {
    flex: 1;
  }
}

.flow .flow__node rect.flow__accent {
  fill: url(#flow-oct);
  stroke: none;
}

.liq__ghost {
  fill: none;
  stroke: var(--night-ink-2);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  opacity: 0.6;
}
.liq__label--warn {
  fill: var(--citrus);
}
