.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid rgb(48 53 47 / 0.78);
  background: rgb(12 14 13 / 0.78);
  backdrop-filter: blur(18px) saturate(130%);
}
.nav-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--signal-ink);
  background: linear-gradient(145deg, var(--signal), var(--signal-soft));
  box-shadow: 0 0 24px rgb(213 240 90 / 0.16);
  border-radius: 50%;
  font: 800 0.8rem var(--font-mono);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
}
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}
.button {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--fast),
    color var(--fast),
    background var(--fast),
    border-color var(--fast);
}
.button:hover {
  transform: translateY(-2px);
  border-color: #555d54;
}
.button.primary {
  color: var(--signal-ink);
  background: linear-gradient(120deg, var(--signal), var(--signal-soft));
  border-color: var(--signal);
}
.button.primary:hover {
  box-shadow: 0 10px 34px rgb(213 240 90 / 0.14);
}
.button.ghost {
  font-size: 0.88rem;
}
.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--ink-900);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.code-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0c0b;
  box-shadow:
    var(--shadow),
    inset 0 1px rgb(255 255 255 / 0.035);
}
.code-bar {
  min-height: 2.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: var(--step--1) var(--font-mono);
}
.code-shell pre {
  padding: 1rem;
  font-size: var(--step--1);
  line-height: 1.8;
}
.copy-button {
  min-width: 44px;
  min-height: 36px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 650 0.72rem var(--font-mono);
}
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.handoff-origin.is-visible .origin-node,
.handoff-origin.is-visible .origin-transfer {
  animation: node-arrive 620ms var(--ease) both;
}
.handoff-origin.is-visible > :nth-child(2) {
  animation-delay: 90ms;
}
.handoff-origin.is-visible > :nth-child(3) {
  animation-delay: 180ms;
}
.handoff-origin.is-visible > :nth-child(4) {
  animation-delay: 270ms;
}
.handoff-origin.is-visible > :nth-child(5) {
  animation-delay: 360ms;
}
@keyframes node-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.js-off .reveal {
  opacity: 1;
  transform: none;
}
