:root {
  --paper: #f2efe6;
  --paper-deep: #e7e1d4;
  --ink: #11120f;
  --ink-soft: #2b2c27;
  --muted: #5a5b54;
  --line: rgba(17, 18, 15, 0.18);
  --line-strong: rgba(17, 18, 15, 0.38);
  --accent: #554cdc;
  --accent-soft: #dedbff;
  --green: #0d754c;
  --green-soft: #d7eee3;
  --amber: #9a5514;
  --amber-soft: #f5e2c7;
  --red: #8f3e35;
  --red-soft: #f1d9d5;
  --white: #fffefa;
  --sans: "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --header-height: 4.5rem;
  --section-space: clamp(6rem, 12vw, 11rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

::selection {
  color: var(--white);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.scroll-meter {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 3rem;
  min-height: 3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark__mark {
  display: grid;
  width: 1.75rem;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  place-items: center;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.8vw, 2.75rem);
  align-items: center;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 39%, rgba(101, 93, 245, 0.2), transparent 28rem),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size:
    calc((100vw - (2 * var(--page-gutter))) / 12) 100%,
    100% 25%;
  background-position: var(--page-gutter) 0, 0 0;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  gap: 2rem;
  align-items: center;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(2.5rem, 7vh, 5.5rem)) var(--page-gutter)
    clamp(1.5rem, 4vh, 3rem);
}

.hero__copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 9;
  align-self: center;
}

.eyebrow {
  margin-bottom: clamp(1.25rem, 3vh, 2.5rem);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 254, 250, 0.64);
}

.hero__title {
  max-width: 10ch;
  margin-bottom: clamp(1.5rem, 3.2vh, 2.75rem);
  font-family: var(--serif);
  font-size: clamp(5rem, 13.2vw, 12.5rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.69;
  text-transform: uppercase;
}

.hero__title span {
  display: block;
}

.hero__title-shift {
  padding-left: 0.46em;
  color: transparent;
  -webkit-text-stroke: max(1px, 0.012em) var(--ink);
}

.hero__statement {
  max-width: 42rem;
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2.4rem);
  line-height: 1.18;
}

.hero__body {
  max-width: 36rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.text-link {
  display: inline-flex;
  gap: 1.25rem;
  align-items: center;
  min-height: 3rem;
  padding-block: 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: gap 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  gap: 1.65rem;
  border-color: var(--ink);
}

.text-link--strong {
  color: var(--accent);
  border-color: currentColor;
}

.hero__visual {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-8rem, -3vw, -2rem);
  width: min(47vw, 44rem);
  transform: translateY(-52%);
}

.contribution-orbit {
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: rgba(17, 18, 15, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 9;
}

.orbit-ring--accent {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 80 900;
  animation: orbit-dash 9s ease-in-out infinite alternate;
}

.orbit-spoke {
  stroke: rgba(17, 18, 15, 0.13);
  stroke-width: 1;
}

.orbit-node {
  stroke: var(--paper);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.orbit-node--merged {
  fill: var(--green);
}

.orbit-node--open {
  fill: var(--accent);
}

.orbit-node--closed {
  fill: var(--red);
}

.orbit-total {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 7.5rem;
  letter-spacing: -0.07em;
  text-anchor: middle;
}

.orbit-label {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-anchor: middle;
  text-transform: uppercase;
}

.hero__stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero__stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem clamp(0.8rem, 2vw, 1.8rem);
  border-right: 1px solid var(--line);
}

.hero__stats div:first-child {
  padding-left: 0;
}

.hero__stats div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero__stats dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.section-shell {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section {
  padding-block: var(--section-space);
}

.section-index {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 3fr) minmax(0, 9fr);
  gap: clamp(3rem, 8vw, 9rem);
}

.section-heading {
  align-self: start;
}

.section-heading h2,
.wide-heading h2 {
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-heading > p:last-child,
.wide-heading > p {
  max-width: 30rem;
  color: var(--muted);
}

.wide-heading {
  display: flex;
  gap: 3rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.wide-heading h2 {
  margin-bottom: 0;
}

.wide-heading > p {
  width: min(100%, 26rem);
  margin-bottom: 0.25rem;
}

.gratitude {
  padding-block: clamp(7rem, 14vw, 13rem);
  color: var(--white);
  background: var(--ink);
}

.gratitude__layout {
  display: grid;
  grid-template-columns: 1fr 7fr 4fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.gratitude .section-index {
  color: rgba(255, 254, 250, 0.58);
}

.gratitude__title {
  max-width: 12ch;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.gratitude__note {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 254, 250, 0.3);
}

.gratitude__note > p:first-child {
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.6;
}

.fine-print {
  margin: 2rem 0 0;
  color: rgba(255, 254, 250, 0.5);
  font-size: 0.75rem;
}

.attention {
  background: var(--white);
}

.attention-summary,
.ledger-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
}

.attention-summary p,
.ledger-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.live-dot {
  display: inline-block;
  width: 0.55rem;
  aspect-ratio: 1;
  margin-right: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(101, 93, 245, 0.4);
  animation: live-pulse 2.4s infinite;
}

.attention-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 10rem 2rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 7.5rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms ease, background-color 220ms ease;
}

.attention-item:hover,
.attention-item:focus-visible {
  padding-inline: 1rem;
  background: var(--paper);
}

.attention-item__repo,
.ledger-row__repo {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.attention-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
}

.attention-item__age {
  color: var(--muted);
  font-size: 0.76rem;
}

.row-arrow {
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.attention-item:hover .row-arrow,
.project-item:hover .row-arrow,
.ledger-row:hover .row-arrow {
  transform: translate(0.25rem, -0.25rem);
}

.status {
  display: inline-flex;
  width: fit-content;
  gap: 0.42rem;
  align-items: center;
  padding: 0.32rem 0.52rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.status::before {
  width: 0.42rem;
  aspect-ratio: 1;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status--open {
  color: #3730b2;
  background: var(--accent-soft);
}

.status--merged {
  color: var(--green);
  background: var(--green-soft);
}

.status--closed {
  color: var(--red);
  background: var(--red-soft);
}

.status--draft {
  color: var(--amber);
  background: var(--amber-soft);
}

.empty-line {
  padding-block: 4rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.highlights {
  background: var(--paper-deep);
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-item {
  position: relative;
  min-height: 27rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line-strong);
}

.highlight-item:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line-strong);
}

.highlight-item:nth-child(even) {
  padding-right: 0;
}

.highlight-item:nth-child(-n + 2) {
  border-top: 1px solid var(--line-strong);
}

.highlight-item__number {
  display: block;
  margin-bottom: clamp(4rem, 9vw, 8rem);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.highlight-item__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.highlight-item h3 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.highlight-item p {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.highlight-item .text-link {
  position: absolute;
  bottom: clamp(2rem, 4vw, 4rem);
}

.ledger {
  background: var(--white);
}

.wide-heading--ledger {
  margin-bottom: 2rem;
}

.ledger-controls {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1rem;
  background: rgba(255, 254, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.search-control {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.9rem;
  background: var(--paper);
  border: 1px solid transparent;
}

.search-control:focus-within {
  border-color: var(--accent);
}

.search-control input {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-control input::placeholder {
  color: var(--muted);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-button {
  min-height: 3rem;
  padding-inline: 0.9rem;
  background: transparent;
  border: 1px solid var(--line);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.select-control select {
  min-height: 3rem;
  padding-inline: 0.85rem 2.2rem;
  background: var(--paper);
  border: 1px solid transparent;
}

.select-control select:focus {
  border-color: var(--accent);
}

.ledger-meta {
  padding-block: 1.1rem;
  border-bottom-color: var(--line);
}

.ledger-table {
  width: 100%;
}

.ledger-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(16rem, 2fr) minmax(8rem, 1fr) 7rem 7rem 1.5rem;
  gap: 1.25rem;
  align-items: center;
  min-height: 6.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.ledger-row:not(.ledger-row--header) {
  position: relative;
  transition: background-color 180ms ease, padding 180ms ease;
}

.ledger-row:not(.ledger-row--header):hover {
  padding-inline: 0.8rem;
  background: var(--paper);
}

.ledger-row--header {
  min-height: 2.8rem;
  padding-block: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ledger-row__title {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.22;
}

.ledger-row__type,
.ledger-row__date,
.ledger-row__change {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.ledger-row__link {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: flex-end;
  color: inherit;
  text-decoration: none;
}

.ledger-row > .ledger-row__link {
  position: static;
  pointer-events: auto;
}

.ledger-row > * {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.ledger-row__link::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.empty-state {
  padding-block: 5rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.projects {
  background: var(--paper);
}

.projects .section-layout {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(3rem, 5vw, 6rem);
}

.projects .section-heading h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.project-list {
  border-top: 1px solid var(--line-strong);
}

.project-item {
  display: grid;
  grid-template-columns: minmax(12rem, 3fr) minmax(16rem, 5fr) 6rem 2rem;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  min-height: 9rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: padding 200ms ease, background-color 200ms ease;
}

.project-item:hover,
.project-item:focus-visible {
  padding-inline: 1rem;
  background: var(--white);
}

.project-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.project-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-item__language {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.show-all-button {
  width: 100%;
  min-height: 4.5rem;
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  transition: color 180ms ease, background-color 180ms ease;
}

.show-all-button:hover {
  color: var(--white);
  background: var(--ink);
}

.method {
  color: var(--white);
  background: var(--accent);
}

.method .section-index,
.method .wide-heading > p {
  color: rgba(255, 254, 250, 0.9);
}

.method .wide-heading {
  border-color: rgba(255, 254, 250, 0.42);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 254, 250, 0.42);
}

.method-list li {
  min-height: 21rem;
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid rgba(255, 254, 250, 0.42);
}

.method-list li:first-child {
  padding-left: 0;
}

.method-list li:last-child {
  padding-right: 0;
  border-right: 0;
}

.method-list li > span {
  display: block;
  margin-bottom: clamp(6rem, 11vw, 10rem);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.method-list h3 {
  margin-bottom: 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 400;
}

.method-list p {
  max-width: 22rem;
  margin: 0;
  color: rgba(255, 254, 250, 0.88);
}

.closing {
  padding-block: clamp(7rem, 14vw, 13rem);
  color: var(--white);
  background: var(--ink);
}

.closing__layout {
  display: grid;
  grid-template-columns: 1fr 8fr 3fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.closing .section-index {
  color: rgba(255, 254, 250, 0.58);
}

.closing__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.closing__link {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
  font-size: 0.82rem;
  text-decoration: none;
  border-top: 1px solid rgba(255, 254, 250, 0.35);
  border-bottom: 1px solid rgba(255, 254, 250, 0.35);
  transition: padding 180ms ease, color 180ms ease;
}

.closing__link:hover {
  padding-inline: 0.75rem;
  color: var(--accent-soft);
}

.site-footer {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: 7rem;
  padding-inline: var(--page-gutter);
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
}

.noscript,
.error-banner {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem 1.25rem;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 1rem 3rem rgba(17, 18, 15, 0.25);
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.hero .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 130ms;
}

.hero .reveal:nth-child(4) {
  transition-delay: 180ms;
}

@keyframes orbit-dash {
  to {
    stroke-dashoffset: -210;
  }
}

@keyframes node-in {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 0.5rem rgba(101, 93, 245, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(101, 93, 245, 0);
  }
}

@media (max-width: 1200px) {
  .projects .section-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects .section-heading {
    margin-bottom: clamp(3rem, 7vw, 5rem);
  }
}

@media (max-width: 1100px) {
  .hero__copy {
    grid-column: 1 / span 10;
  }

  .hero__visual {
    right: -10rem;
    width: 52vw;
    opacity: 0.72;
  }

  .section-layout {
    grid-template-columns: minmax(12rem, 3fr) minmax(0, 9fr);
    gap: 3rem;
  }

  .gratitude__layout,
  .closing__layout {
    grid-template-columns: 1fr 8fr;
  }

  .gratitude__layout > :last-child,
  .closing__layout > :last-child {
    grid-column: 2;
  }

  .ledger-controls {
    grid-template-columns: 1fr auto;
  }

  .select-control {
    grid-column: 2;
  }

  .ledger-row {
    grid-template-columns: 7rem minmax(14rem, 2fr) minmax(7rem, 1fr) 6rem 1.5rem;
  }

  .ledger-row__change,
  .ledger-row--header > :nth-child(5) {
    display: none;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 4rem;
  }

  .site-header {
    align-items: center;
  }

  .site-nav {
    gap: 1.1rem;
  }

  .site-nav a:nth-child(1),
  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.25rem);
  }

  .hero__copy {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(4.5rem, 22vw, 8rem);
    line-height: 0.73;
  }

  .hero__statement {
    max-width: 28rem;
  }

  .hero__visual {
    top: 29%;
    right: -13rem;
    width: 27rem;
    opacity: 0.28;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }

  .hero__stats div {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .hero__stats div:nth-child(odd) {
    padding-left: 0;
  }

  .hero__stats div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .section-layout,
  .gratitude__layout,
  .closing__layout {
    grid-template-columns: 1fr;
  }

  .gratitude__layout > :last-child,
  .closing__layout > :last-child {
    grid-column: auto;
  }

  .section-heading {
    margin-bottom: 2.75rem;
  }

  .wide-heading {
    display: block;
  }

  .wide-heading > p {
    margin-top: 1.2rem;
  }

  .attention-item {
    grid-template-columns: 6.7rem minmax(0, 1fr) 1.5rem;
    gap: 1rem;
    min-height: 7rem;
  }

  .attention-item__age {
    display: none;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }

  .highlight-item,
  .highlight-item:nth-child(odd),
  .highlight-item:nth-child(even) {
    min-height: 25rem;
    padding: 2.5rem 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .highlight-item:first-child {
    border-top: 1px solid var(--line-strong);
  }

  .highlight-item__number {
    margin-bottom: 5rem;
  }

  .highlight-item .text-link {
    bottom: 2.5rem;
  }

  .ledger-controls {
    position: static;
    grid-template-columns: 1fr;
  }

  .filter-group {
    order: 2;
  }

  .select-control {
    grid-column: auto;
    order: 3;
  }

  .select-control select {
    width: 100%;
  }

  .ledger-row--header {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem;
    gap: 0.8rem;
    min-height: 7.5rem;
  }

  .ledger-row__repo,
  .ledger-row__date,
  .ledger-row__change {
    display: none;
  }

  .project-item {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    gap: 0.8rem;
    min-height: 8rem;
    padding-block: 1.25rem;
  }

  .project-item p,
  .project-item__language {
    grid-column: 1;
  }

  .project-item .row-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list li,
  .method-list li:first-child,
  .method-list li:last-child {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 254, 250, 0.42);
  }

  .method-list li > span {
    margin: 0;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    padding-block: 2rem;
  }

  .site-footer p:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 1rem;
  }

  .wordmark {
    font-size: 0;
  }

  .wordmark__mark {
    font-size: 0.8rem;
  }

  .site-nav a:nth-child(2) {
    display: none;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 0.8rem;
  }

  .eyebrow {
    margin-bottom: 1rem;
    font-size: 0.62rem;
  }

  .hero__title {
    margin-bottom: 1.25rem;
    font-size: clamp(4.1rem, 21.8vw, 6.5rem);
  }

  .hero__statement {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
  }

  .hero__body {
    margin-bottom: 0.9rem;
    font-size: 0.86rem;
  }

  .hero__actions {
    gap: 0.7rem 1.25rem;
  }

  .hero__actions .text-link {
    font-size: 0.72rem;
  }

  .hero__stats dt {
    font-size: 0.6rem;
  }

  .hero__stats dd {
    font-size: 1.35rem;
  }

  .attention-summary,
  .ledger-meta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .data-freshness {
    display: none;
  }

  .attention-item {
    grid-template-columns: 5.7rem minmax(0, 1fr) 1.2rem;
  }

  .status {
    padding-inline: 0.4rem;
    font-size: 0.56rem;
  }

  .ledger-row {
    grid-template-columns: 5.7rem minmax(0, 1fr) 1.2rem;
  }

  .filter-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .filter-button {
    padding-inline: 0.4rem;
    font-size: 0.72rem;
  }
}

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

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

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