:root {
  --night: #0a1017;
  --night-soft: #111b24;
  --night-line: rgba(235, 242, 237, 0.22);
  --night-muted: #a5b4b5;
  --paper: #edf1ec;
  --paper-light: #f8f9f5;
  --paper-deep: #d6dfd9;
  --ink: #111b22;
  --ink-soft: #536169;
  --line: #b8c2bd;
  --inclusive: #ff7657;
  --inclusive-deep: #d8523a;
  --exclusive: #68e3c8;
  --exclusive-deep: #209f94;
  --blue: #81a8ff;
  --category-1: #68767a;
  --category-2: #768f91;
  --category-3: #90aaa4;
  --category-4: #ff7657;
  --category-5: #68e3c8;
  --white: #f7faf5;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--inclusive);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.8rem;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  background: var(--night);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 2rem), 1440px);
  margin: 0 auto;
  overflow: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(1rem, 3.4vw, 3.8rem);
  color: var(--white);
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark,
.lang-link {
  font-weight: 800;
  text-decoration: none;
}

.wordmark:hover,
.lang-link:hover,
.source-links a:hover,
.footer-links a:hover {
  color: var(--inclusive);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--night-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.topbar-mark {
  display: inline-grid;
  min-width: 32px;
  height: 22px;
  place-items: center;
  color: var(--night);
  background: var(--exclusive);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero-map,
.hero-map svg,
.hero-map-shade {
  position: absolute;
  inset: 0;
}

.hero-map {
  overflow: hidden;
  background: var(--night);
}

.hero-map svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.map-graticule line {
  stroke: rgba(104, 227, 200, 0.2);
  stroke-width: 0.75;
}

.map-land {
  fill: #1d3440;
  stroke: #466774;
  stroke-width: 0.7;
  stroke-linejoin: round;
  opacity: 0.9;
}

.point {
  stroke: var(--night);
  stroke-width: 0.8;
  opacity: 0.42;
  transition: opacity 180ms ease, r 180ms ease, stroke-width 180ms ease;
}

.point[data-category="1"] { fill: var(--category-1); }
.point[data-category="2"] { fill: var(--category-2); }
.point[data-category="3"] { fill: var(--category-3); }
.point[data-category="4"] { fill: var(--category-4); }
.point[data-category="5"] { fill: var(--category-5); }

.point.is-active {
  opacity: 1;
  stroke: var(--white);
  stroke-width: 1.4;
}

.point.is-selected {
  stroke: var(--inclusive);
  stroke-width: 2.8;
}

.point {
  cursor: pointer;
  pointer-events: auto;
}

.point:hover,
.point:focus-visible {
  stroke: var(--white);
  stroke-width: 2.4;
}

.point-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: pointer;
}

.hero-map-shade {
  background:
    linear-gradient(180deg, rgba(10, 16, 23, 0.06) 0%, rgba(10, 16, 23, 0.1) 26%, rgba(10, 16, 23, 0.77) 75%, var(--night) 100%),
    linear-gradient(90deg, rgba(10, 16, 23, 0.55) 0%, rgba(10, 16, 23, 0.04) 66%, rgba(10, 16, 23, 0.36) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  min-height: 900px;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 3.4vw, 3.8rem) clamp(1rem, 2.7vw, 2.8rem);
}

.hero-inner .mode-button {
  pointer-events: auto;
}

.hero-copy {
  max-width: 740px;
  padding-top: clamp(2rem, 6vh, 4.6rem);
}

.eyebrow,
.section-marker,
.micro-label,
.register-kicker {
  margin: 0;
  color: var(--exclusive);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8.8ch;
  margin: 1.15rem 0 1.65rem;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(4rem, 8.6vw, 8rem);
  font-weight: 850;
  letter-spacing: -0.105em;
  line-height: 0.83;
  overflow-wrap: anywhere;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--inclusive);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.standfirst {
  max-width: 40rem;
  margin: 0;
  color: #dce5df;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
  line-height: 1.42;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  max-width: 36rem;
  margin: 1.7rem 0 0;
  color: var(--night-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-stat strong {
  flex: 0 0 auto;
  color: var(--inclusive);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.07em;
}

.register-dock {
  width: 100%;
  margin-top: auto;
  padding: clamp(1rem, 2.2vw, 1.65rem);
  background: rgba(10, 16, 23, 0.9);
  border: 1px solid rgba(235, 242, 237, 0.42);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(7px);
}

.register-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.register-kicker {
  color: var(--night-muted);
  font-size: 0.61rem;
}

.register-head h2 {
  margin: 0.25rem 0 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.register-readout {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
  text-transform: uppercase;
}

.register-readout strong {
  color: var(--inclusive);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -0.07em;
}

.register-readout span {
  color: var(--night-muted);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
}

.register-rows {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.25rem;
}

.register-probe {
  display: grid;
  grid-template-columns: auto minmax(100px, auto) minmax(150px, auto) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  align-items: baseline;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.probe-label {
  color: var(--night-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.register-probe strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.register-probe #point-meta {
  color: var(--exclusive);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.register-probe #point-detail {
  min-width: 0;
  color: var(--night-muted);
  text-align: right;
}

.register-channel {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1.62fr);
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
  min-width: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--night-line);
}

.mode-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  color: var(--night-muted);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mode-button:hover,
.mode-button:focus-visible {
  color: var(--white);
}

.mode-symbol {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--night);
  background: var(--night-muted);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.mode-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.mode-text strong {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  line-height: 1.2;
}

.mode-text small {
  color: var(--night-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.mode-button > b {
  color: var(--night-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.register-channel[data-channel="inclusive"] .mode-button.is-active .mode-symbol {
  color: var(--night);
  background: var(--inclusive);
}

.register-channel[data-channel="exclusive"] .mode-button.is-active .mode-symbol {
  color: var(--night);
  background: var(--exclusive);
}

.register-channel[data-channel="inclusive"] .mode-button.is-active .mode-text strong,
.register-channel[data-channel="inclusive"] .mode-button.is-active > b {
  color: var(--inclusive);
}

.register-channel[data-channel="exclusive"] .mode-button.is-active .mode-text strong,
.register-channel[data-channel="exclusive"] .mode-button.is-active > b {
  color: var(--exclusive);
}

.register-cells {
  display: grid;
  grid-template-columns: repeat(40, minmax(0, 1fr));
  grid-auto-rows: minmax(3px, 1fr);
  gap: 3px;
  min-width: 0;
  height: 36px;
}

.register-cell {
  min-width: 0;
  background: rgba(235, 242, 237, 0.16);
  border: 1px solid rgba(235, 242, 237, 0.05);
  opacity: 0.45;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.register-cell.is-active {
  opacity: 1;
  transform: scaleY(1.22);
}

.register-cell.category-1 { background: var(--category-1); }
.register-cell.category-2 { background: var(--category-2); }
.register-cell.category-3 { background: var(--category-3); }
.register-cell.category-4 { background: var(--category-4); }
.register-cell.category-5 { background: var(--category-5); }

.register-channel[data-channel="inclusive"] .register-cell.is-active.category-4 {
  background: var(--inclusive);
}

.register-channel[data-channel="exclusive"] .register-cell.is-active.category-5 {
  background: var(--exclusive);
}

.register-foot,
.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--night-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.register-foot {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--night-line);
}

.hero-caption {
  margin-top: 1rem;
  color: rgba(235, 242, 237, 0.7);
}

.hero-caption span:first-child {
  color: var(--inclusive);
}

.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 7vw, 8.5rem);
  border-top: 1px solid var(--line);
}

.section-grid,
.ledger-section,
.examples-section,
.notes-section {
  display: grid;
  grid-template-columns: minmax(155px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(2rem, 7vw, 7.5rem);
  align-items: start;
}

.section-grid > *,
.ledger-section > *,
.examples-section > *,
.notes-section > * {
  min-width: 0;
}

.section-marker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--exclusive-deep);
  font-size: 0.64rem;
}

.section-marker i {
  width: 26px;
  height: 1px;
  background: var(--exclusive-deep);
}

.meaning-section {
  background: var(--paper-light);
}

.section h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.6vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.section-lead {
  max-width: 35rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
  line-height: 1.45;
}

.meaning-lines {
  margin-top: clamp(2.8rem, 5vw, 4.8rem);
  border-top: 1px solid var(--line);
}

.meaning-line {
  display: grid;
  grid-template-columns: minmax(105px, 0.25fr) minmax(140px, 0.85fr) minmax(160px, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.meaning-line > span {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.meaning-line strong {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.meaning-line p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.35;
}

.inclusive-line > span,
.inclusive-line strong {
  color: var(--inclusive-deep);
}

.exclusive-line > span,
.exclusive-line strong {
  color: var(--exclusive-deep);
}

.sentence {
  margin: clamp(3rem, 6vw, 5.5rem) 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.1vw, 4.7rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.sentence-word {
  color: var(--inclusive-deep);
}

.sentence-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: baseline;
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.sentence-note .micro-label {
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.sentence-note strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.ledger-section {
  grid-template-columns: minmax(200px, 0.7fr) minmax(180px, 0.42fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  background: #dbe4de;
}

.ledger-intro h2 {
  max-width: 10ch;
  margin-top: 0.75rem;
  font-size: clamp(2.8rem, 5.4vw, 5.9rem);
}

.ledger-intro > p:last-child {
  max-width: 25rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.ratio-lockup {
  padding-top: 0.2rem;
  border-top: 4px solid var(--inclusive-deep);
}

.ratio-lockup strong {
  display: block;
  margin-top: 1rem;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  letter-spacing: -0.12em;
  line-height: 0.85;
}

.ratio-lockup > span {
  display: block;
  margin-top: 0.6rem;
  color: var(--inclusive-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.ratio-lockup p {
  max-width: 15rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.4;
}

.category-ledger {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.category-ledger li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1.3fr) minmax(4rem, 0.75fr) 2.5rem;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger-index,
.category-ledger b {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
}

.category-ledger b {
  color: var(--ink);
  font-size: 0.85rem;
  text-align: right;
}

.ledger-label {
  min-width: 0;
  font-size: 0.77rem;
  line-height: 1.25;
}

.category-dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.38rem;
  border: 1px solid rgba(17, 27, 34, 0.24);
  border-radius: 50%;
  vertical-align: -0.04em;
}

.category-1 { background: var(--category-1); }
.category-2 { background: var(--category-2); }
.category-3 { background: var(--category-3); }
.category-4 { background: var(--category-4); }
.category-5 { background: var(--category-5); }

.ledger-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  background: rgba(17, 27, 34, 0.14);
}

.ledger-bar i {
  display: block;
  width: max(2px, calc(var(--share) * 1%));
  height: 100%;
  background: var(--ink);
}

.category-ledger li:nth-child(4) .ledger-bar i { background: var(--inclusive-deep); }
.category-ledger li:nth-child(5) .ledger-bar i { background: var(--exclusive-deep); }

.examples-section {
  background: var(--paper-light);
}

.example-intro h2 {
  max-width: 8ch;
  margin-top: 0.75rem;
  font-size: clamp(3rem, 5.8vw, 6rem);
}

.example-intro > p:last-child {
  max-width: 20rem;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.example-stage {
  min-width: 0;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.example-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.example-picker label {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-picker select {
  min-width: 12rem;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
}

.example-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem;
  padding: 2.1rem 0 1.7rem;
}

.example-header h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4.9vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.example-header .micro-label {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.example-header > p:last-child {
  max-width: 23rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.forms {
  border-top: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1.65fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.form-row > span {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.form-row strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.form-row.inclusive > span { color: var(--inclusive-deep); }
.form-row.exclusive > span { color: var(--exclusive-deep); }

.example-note {
  margin: 1rem 0 1.25rem;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.notes-section {
  background: #dbe4de;
}

.notes-copy {
  max-width: 54rem;
}

.notes-copy h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 5.9vw, 6.3rem);
}

.notes-copy > p {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.52;
}

.source-box {
  max-width: 42rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.source-box > p:nth-child(2) {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.source-links a {
  text-underline-offset: 0.18em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 3.4vw, 3.8rem) 2.7rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-underline-offset: 0.18em;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.back-to-top:hover {
  color: var(--night);
  background: var(--exclusive);
}

.script-enhanced .back-to-top {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.script-enhanced .back-to-top.is-floating {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 10;
  margin: 0;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.script-enhanced .back-to-top.is-floating.near-footer {
  bottom: var(--back-to-top-offset, 5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero,
  .hero-inner {
    min-height: 850px;
  }

  .section-grid,
  .examples-section,
  .notes-section {
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1.66fr);
    gap: 2.5rem;
  }

  .ledger-section {
    grid-template-columns: minmax(0, 0.88fr) minmax(160px, 0.52fr);
  }

  .category-ledger {
    grid-column: 1 / -1;
  }
}

@media (min-width: 681px) {
  html[lang="en"] .hero h1 {
    max-width: 100%;
  }

  html[lang="en"] .hero h1 span {
    white-space: nowrap;
  }

  .register-dock {
    position: absolute;
    right: clamp(1rem, 3.4vw, 3.8rem);
    bottom: 3.15rem;
    left: clamp(1rem, 3.4vw, 3.8rem);
    width: auto;
    margin-top: 0;
  }

  .hero-caption {
    position: absolute;
    right: clamp(1rem, 3.4vw, 3.8rem);
    bottom: 0.8rem;
    left: clamp(1rem, 3.4vw, 3.8rem);
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: 100%;
  }

  .topbar {
    min-height: 64px;
  }

  .topbar-meta {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 900px;
  }

  .hero-inner {
    padding: 2rem 1rem 1rem;
  }

  .hero-copy {
    padding-top: 2.5rem;
  }

  .hero h1 {
    max-width: 8.2ch;
    margin-top: 1rem;
    font-size: clamp(3.65rem, 16vw, 5.7rem);
  }

  .standfirst {
    max-width: 34rem;
    font-size: 1.03rem;
  }

  .hero-stat {
    align-items: flex-start;
    margin-top: 1.3rem;
  }

  .register-dock {
    padding: 1rem;
  }

  .register-head {
    align-items: start;
  }

  .register-head h2 {
    max-width: 11ch;
  }

  .register-channel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .register-cells {
    height: 29px;
  }

  .register-foot,
  .hero-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.28rem;
  }

  .hero-caption {
    margin-top: 0.8rem;
  }

  .register-probe {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 0.7rem;
  }

  .register-probe #point-meta,
  .register-probe #point-detail {
    grid-column: 1 / -1;
    text-align: left;
  }

  .section {
    padding: 4.8rem 1rem;
  }

  .section-grid,
  .ledger-section,
  .examples-section,
  .notes-section {
    display: block;
  }

  .section-marker {
    margin-bottom: 1.8rem;
  }

  .section h2,
  .ledger-intro h2,
  .example-intro h2,
  .notes-copy h2 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .section-lead {
    margin-top: 1.2rem;
  }

  .meaning-lines {
    margin-top: 2.5rem;
  }

  .meaning-line {
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 0.62fr);
    gap: 0.55rem;
  }

  .meaning-line p {
    grid-column: 1 / -1;
    margin-top: 0.1rem;
    padding-left: calc(0.38 * (100% - 0.55rem));
  }

  .sentence {
    margin-top: 3.5rem;
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .ratio-lockup {
    max-width: 18rem;
    margin-top: 3rem;
  }

  .category-ledger {
    margin-top: 3rem;
  }

  .category-ledger li {
    grid-template-columns: 2rem minmax(0, 1fr) 2.5rem;
    gap: 0.5rem;
    align-items: baseline;
  }

  .ledger-bar {
    grid-column: 2;
    width: 100%;
    margin-top: 0.25rem;
  }

  .category-ledger b {
    grid-column: 3;
    grid-row: 1;
  }

  .example-intro > p:last-child {
    margin-bottom: 2.6rem;
  }

  .example-header {
    display: block;
    padding-top: 1.8rem;
  }

  .example-header > p:last-child {
    margin-top: 1.2rem;
  }

  .form-row {
    grid-template-columns: minmax(92px, 0.5fr) minmax(0, 1.5fr);
  }

  .form-row strong {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .notes-copy > p {
    font-size: 0.96rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 2rem 1rem 2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
