/* nhaajt studio: blueprint pattern sheet */

:root {
  color-scheme: dark;
  --paper: #0b3a60;
  --paper-2: #072b49;
  --ink: #e3f5ff;
  --ink-dim: rgba(227, 245, 255, 0.76);
  --line: #cdeeff;
  --line-dim: rgba(205, 238, 255, 0.38);
  --grid-minor: rgba(205, 238, 255, 0.055);
  --grid-major: rgba(205, 238, 255, 0.12);
  --fill: rgba(205, 238, 255, 0.07);
  --redline: #ff8a78;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --gutter: max(16px, 4vw);
  --header-h: 60px;
  --strip-h: 34px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #e8f1f3;
  --paper-2: #d7e6ea;
  --ink: #0a3558;
  --ink-dim: #3a6283;
  --line: #0d4a7b;
  --line-dim: rgba(13, 74, 123, 0.42);
  --grid-minor: rgba(13, 74, 123, 0.07);
  --grid-major: rgba(13, 74, 123, 0.16);
  --fill: rgba(13, 74, 123, 0.07);
  --redline: #c0301c;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: var(--strip-h);
}

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

a {
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
}

:focus-visible {
  outline: 2px dashed var(--redline);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--line);
  color: var(--paper);
  padding: 10px 14px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

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

/* ---------- sheet paper, frame, strip ---------- */

.paper {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    radial-gradient(130% 100% at 50% 0%, var(--paper) 0%, var(--paper-2) 100%);
}
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.frame {
  position: fixed;
  inset: 8px;
  z-index: 60;
  pointer-events: none;
  border: 1px solid var(--line-dim);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line-dim);
}
.zones {
  position: absolute;
  inset: 0;
  display: none;
  font-size: 10px;
  color: var(--ink-dim);
}
.zones span {
  position: absolute;
  background: var(--paper);
  padding: 0 4px;
  line-height: 1;
}
@media (min-width: 900px) {
  .zones {
    display: block;
  }
  .frame {
    inset: 10px;
  }
}

.reg {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--line);
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='7' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M15 0v30M0 15h30' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='7' fill='none' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M15 0v30M0 15h30' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.strip {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 61;
  height: var(--strip-h);
  display: flex;
  align-items: stretch;
  background: var(--paper-2);
  border: 1px solid var(--line-dim);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.strip > span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line-dim);
  white-space: nowrap;
}
.strip > span:last-child {
  border-right: 0;
}
.strip b {
  font-weight: 600;
  color: var(--line);
  margin-right: 8px;
}
.strip .strip__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  padding-top: 11px;
}
.strip .hide-sm {
  display: none;
}
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--scroll, 0) * 100%);
  background: var(--redline);
}
@media (min-width: 900px) {
  .strip {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
  .strip .hide-sm {
    display: flex;
  }
}

/* ---------- layout ---------- */

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

main {
  display: block;
}

/* ---------- header ---------- */

.top {
  position: fixed;
  z-index: 70;
  top: 14px;
  left: 14px;
  right: 14px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 14px;
  background: color-mix(in srgb, var(--paper-2) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-dim);
}
@media (min-width: 900px) {
  .top {
    top: 22px;
    left: 22px;
    right: 22px;
    padding-inline: 18px;
  }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.logo svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--line);
  stroke-width: 1.6;
}
.nav {
  display: none;
  gap: 22px;
  font-size: 13px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dim);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--line);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.icon-btn .i-sun {
  display: none;
}
:root[data-theme="light"] .icon-btn .i-sun {
  display: block;
}
:root[data-theme="light"] .icon-btn .i-moon {
  display: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font: 600 14px/1 var(--mono);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--line-dim);
}
.btn:active {
  transform: none;
  box-shadow: none;
}
.btn--solid {
  background: var(--line);
  color: var(--paper);
}
.btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link:hover {
  text-decoration-style: dashed;
}

/* ---------- drawing furniture ---------- */

.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-dim);
}
.dim i {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.dim i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  height: 13px;
  border-left: 1px solid var(--line);
}
.dim i:last-child::before {
  left: auto;
  right: 0;
}
.dim b {
  font-weight: 400;
  white-space: nowrap;
}

.hatch {
  background-image: repeating-linear-gradient(135deg, var(--line-dim) 0 1px, transparent 1px 7px);
}

.note {
  font-family: var(--hand);
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
  transform: rotate(-1.5deg);
  display: inline-block;
}

.stamp {
  display: inline-block;
  padding: 6px 14px 4px;
  border: 2px solid var(--redline);
  color: var(--redline);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
  border-radius: 3px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 64px) 0 calc(var(--strip-h) + 56px);
  display: flex;
  align-items: center;
}
.hero .fold {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--line-dim);
  opacity: 0.6;
}
.hero .fold--1 {
  left: 33.33%;
}
.hero .fold--2 {
  left: 66.66%;
}
.hero .reg--tl {
  top: 92px;
  left: 28px;
}
.hero .reg--tr {
  top: 92px;
  right: 28px;
}
.hero__grid {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 24px;
  }
}
.hero h1 {
  font-size: clamp(56px, 8.8vw, 136px);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.hero h1 .ch {
  display: inline-block;
}
.hero__dim {
  margin: 18px 0 26px;
  max-width: 640px;
}
.hero .lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  max-width: 54ch;
}
.hero .lead + .lead {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 15px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.spec {
  margin: 38px 0 0;
  display: grid;
  gap: 0;
  max-width: 560px;
  border-top: 1px solid var(--line-dim);
}
.spec div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dim);
  font-size: 13px;
  line-height: 1.55;
}
.spec dt {
  color: var(--ink-dim);
}
.spec dd {
  margin: 0;
}
.hero__fig {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.hero__fig svg {
  width: 100%;
  height: auto;
}

/* ---------- sheet sections ---------- */

.sheet {
  position: relative;
  padding-block: clamp(72px, 9vw, 130px);
  border-top: 1px dashed var(--line-dim);
}
.sheet--tight {
  padding-block: clamp(56px, 7vw, 96px);
}
.sheet__head {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: 14px 24px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 56px);
}
@media (min-width: 760px) {
  .sheet__head {
    grid-template-columns: auto 1fr auto;
  }
}
.sheet__no {
  justify-self: start;
  border: 1px solid var(--line);
  padding: 7px 11px 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.sheet h2 {
  font-size: clamp(36px, 5.2vw, 72px);
}
.sheet__scale {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.5;
}
@media (min-width: 760px) {
  .sheet__scale {
    text-align: right;
  }
}

.split {
  grid-template-columns: minmax(0, 1fr);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .split--flip {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .split--flip .split__fig {
    order: -1;
  }
}
.copy p {
  max-width: 56ch;
}
.copy p + p {
  margin-top: 16px;
}
.copy .note {
  margin-top: 22px;
}
.copy code,
td code,
li code,
.lead code,
.ans code,
.cmd-note code,
th code,
.build code {
  font-family: var(--mono);
  font-weight: 600;
  background: var(--fill);
  border: 1px solid var(--line-dim);
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.fig {
  margin: 0;
}
.fig svg {
  width: 100%;
  height: auto;
}
.fig figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ---------- svg vocabulary ---------- */

.ln {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ln-thin {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-linecap: round;
}
.ln-dim {
  fill: none;
  stroke: var(--line-dim);
  stroke-width: 1.2;
}
.ln-heavy {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash {
  stroke-dasharray: 9 7;
}
.dashdot {
  stroke-dasharray: 18 5 3 5;
}
.solid-fill {
  fill: var(--fill);
  stroke: none;
}
.hatch-fill {
  fill: url(#hatch);
  stroke: none;
}
.paper-fill {
  fill: var(--paper);
}
.mk {
  fill: var(--line);
}
.t {
  font-family: var(--mono);
  font-size: 16px;
  fill: var(--ink);
}
.t-dim {
  fill: var(--ink-dim);
}
.t-sm {
  font-size: 13px;
}
.t-d {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  fill: var(--ink);
}
.t-hand {
  font-family: var(--hand);
  font-size: 22px;
  fill: var(--ink);
}
.t-red {
  fill: var(--redline);
}
.ln-red {
  fill: none;
  stroke: var(--redline);
  stroke-width: 2.5;
}
.bubble {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.5;
}
.hot {
  fill: var(--fill);
  stroke: none;
}

/* draw-on motion: only when scripting is on and motion is welcome */
.js .plot svg {
  visibility: hidden;
}
.js.ready .plot svg {
  visibility: visible;
}
.js [data-draw],
.js [data-intro] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js [data-show],
.js [data-fade] {
  opacity: 0;
}
.js [data-show] {
  transition: opacity 0.55s ease;
}
.js [data-show].on {
  opacity: 1;
}
.js.ready [data-intro] {
  animation: draw 1.5s cubic-bezier(0.55, 0, 0.2, 1) var(--d, 0s) forwards;
}
.js.ready [data-fade] {
  animation: fade 0.7s ease var(--d, 0s) forwards;
}
.js.ready .stamp-pop {
  animation: pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0s) forwards;
}
.js .stamp-pop {
  opacity: 0;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(1.5) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.stamp-pop {
  transform-box: fill-box;
  transform-origin: center;
}

.js .ch {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--line);
}
.js.ready .ch {
  animation: inkfill 0.6s ease calc(var(--i) * 55ms + 0.35s) forwards;
}
@keyframes inkfill {
  to {
    color: var(--ink);
    -webkit-text-stroke-color: transparent;
  }
}

.static [data-draw],
.static [data-intro] {
  stroke-dashoffset: 0 !important;
  animation: none !important;
}
.static [data-show],
.static [data-fade],
.static .stamp-pop {
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
  transform: none;
}
.static .ch {
  color: var(--ink);
  -webkit-text-stroke-color: transparent;
  animation: none !important;
}

/* ---------- pinned plot (S-01) ---------- */

.pin {
  height: 330svh;
  padding: 0;
  border-top: 1px dashed var(--line-dim);
}
.pin__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: calc(var(--header-h) + 36px) 0 calc(var(--strip-h) + 44px);
  display: flex;
  flex-direction: column;
}
.pin .sheet__head {
  margin-bottom: 18px;
}
.pin .sheet h2,
.pin h2 {
  font-size: clamp(34px, 4.4vw, 60px);
}
.pin__stage > .wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pin__fig {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin__fig svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}
.pin.no-pin {
  height: auto;
}
.pin.no-pin .pin__stage {
  position: static;
  height: auto;
  padding: clamp(72px, 9vw, 130px) 0;
}
.pin.no-pin .pin__fig {
  display: block;
}
.pin.no-pin .pin__fig svg {
  height: auto;
}
.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px 22px;
  font-size: 13px;
  line-height: 1.55;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  padding: 8px 0 0;
  border-top: 1px solid var(--line-dim);
  color: var(--ink-dim);
  transition: color 0.3s, border-color 0.3s;
}
.steps li.is-active {
  color: var(--ink);
  border-top-color: var(--redline);
}
.steps b {
  font-weight: 600;
  margin-right: 6px;
  color: var(--line);
}
.static .steps li,
.pin.no-pin .steps li {
  color: var(--ink);
}
.show-wide {
  display: none;
}
.show-narrow {
  display: block;
}
@media (min-width: 900px) {
  .show-wide {
    display: block;
  }
  .show-narrow {
    display: none;
  }
}

/* ---------- legend list (controls) ---------- */

.legend {
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 560px;
}
.legend li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line-dim);
  font-size: 14px;
  line-height: 1.55;
}
.legend li:last-child {
  border-bottom: 1px solid var(--line-dim);
}
.legend .key {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
caption {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-dim);
}
thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  background: var(--fill);
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
tbody th {
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:hover td,
tbody tr:hover th {
  background: var(--fill);
}
tr.group th {
  background: var(--fill);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.cmd-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-dim);
}
.sched thead th:first-child {
  white-space: nowrap;
}
.sched td:first-child {
  width: 96px;
  font-weight: 600;
  color: var(--line);
  white-space: nowrap;
}
.sched td:nth-child(2) {
  font-weight: 600;
  width: 28%;
}
@media (max-width: 640px) {
  .sched thead,
  .cmds thead {
    display: none;
  }
  .sched tr,
  .cmds tbody tr:not(.group) {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-dim);
  }
  .sched td,
  .cmds td,
  .cmds tbody th {
    display: block;
    border: 0;
    padding: 0;
    width: auto !important;
    background: none !important;
  }
  .sched td:nth-child(2) {
    margin-top: 2px;
  }
  .cmds tbody th {
    white-space: normal;
    margin-bottom: 2px;
  }
  .cmds tr.group,
  .cmds tr.group th {
    display: block;
  }
  .cmds tr.group th {
    padding: 9px 14px;
  }
}

/* ---------- self-host steps ---------- */

.build {
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
  max-width: 860px;
}
.build > li {
  min-width: 0;
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line-dim);
  counter-increment: step;
}
.build > li:last-child {
  border-bottom: 1px solid var(--line-dim);
}
.build > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
}
.build h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.build p {
  max-width: 62ch;
}
.build p + p {
  margin-top: 10px;
}
.build .sub {
  color: var(--ink-dim);
  font-size: 13px;
}
.code {
  position: relative;
  margin-top: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.code pre {
  margin: 0;
  padding: 14px 108px 14px 14px;
  overflow-x: auto;
  font: 13.5px/1.7 var(--mono);
  color: var(--ink);
}
.code pre code {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 400;
  white-space: pre;
}
.code button {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 34px;
  padding: 6px 12px;
  font: 600 12px var(--mono);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-dim);
  cursor: pointer;
}
.code button:hover {
  border-color: var(--line);
}
@media (max-width: 520px) {
  .build > li {
    padding-left: 0;
    padding-top: 70px;
  }
  .build > li::before {
    top: 20px;
  }
  .code pre {
    padding-right: 14px;
    padding-bottom: 52px;
  }
  .code button {
    top: auto;
    bottom: 8px;
  }
}

/* ---------- faq ---------- */

.faq {
  max-width: 880px;
}
.faq details {
  border-top: 1px solid var(--line-dim);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-dim);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font: 400 18px/1 var(--mono);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq .ans {
  padding: 0 0 22px;
  max-width: 64ch;
  color: var(--ink-dim);
}
.faq .ans a {
  color: var(--ink);
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 calc(var(--strip-h) + 70px);
  border-top: 1px dashed var(--line-dim);
  overflow: hidden;
}
.foot__word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 260px);
  line-height: 0.85;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dim);
  margin: 0 0 clamp(28px, 4vw, 48px);
  user-select: none;
}
.tblock {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1.5px solid var(--line);
  max-width: 920px;
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.tblock > div {
  padding: 10px 14px 12px;
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  grid-column: span 2;
  min-width: 0;
}
.tblock > .w3 {
  grid-column: span 3;
}
.tblock > .w4 {
  grid-column: span 4;
}
.tblock > .w6 {
  grid-column: span 6;
  border-right: 0;
}
.tblock small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.tblock strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  display: block;
}
.tblock span {
  font-size: 13px;
}
.tblock a {
  text-underline-offset: 4px;
}
.tblock > div:nth-last-child(-n + 1) {
  border-bottom: 0;
}
@media (max-width: 640px) {
  .tblock > div,
  .tblock > .w3,
  .tblock > .w4 {
    grid-column: span 6;
    border-right: 0;
  }
  .tblock > .w2 {
    grid-column: span 3;
  }
  .tblock > .w2:nth-child(odd) {
    border-right: 1px solid var(--line-dim);
  }
}
.foot__note {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  font-size: 13px;
  color: var(--ink-dim);
}
.foot__note .note {
  color: var(--ink);
  font-size: 22px;
}

/* ---------- legal pages ---------- */

.legal {
  padding: calc(var(--header-h) + 70px) 0 clamp(56px, 8vw, 100px);
  min-height: 100svh;
}
.legal h1 {
  font-size: clamp(48px, 8vw, 104px);
  margin-bottom: 18px;
}
.legal .lead {
  max-width: 60ch;
  font-size: 16px;
  color: var(--ink-dim);
}
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  margin: 26px 0 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.legal__body {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 36px;
  display: grid;
  gap: 0;
  max-width: 860px;
  counter-reset: clause;
}
.clause {
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line-dim);
  counter-increment: clause;
}
.clause:last-child {
  border-bottom: 1px solid var(--line-dim);
}
.clause::before {
  content: counter(clause);
  position: absolute;
  left: 0;
  top: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
}
.clause h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.clause p {
  max-width: 64ch;
}
.clause p + p,
.clause ul + p,
.clause p + ul {
  margin-top: 10px;
}
.clause ul {
  margin: 0;
  padding-left: 20px;
  max-width: 64ch;
}
.clause li {
  margin-bottom: 4px;
}
.contact {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px dashed var(--redline);
  color: var(--ink);
}
@media (max-width: 520px) {
  .clause {
    padding-left: 0;
    padding-top: 70px;
  }
  .clause::before {
    top: 20px;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 959px) {
  .hero h1 {
    font-size: clamp(56px, 17vw, 150px);
  }
}

@media (max-width: 899px) {
  .hero {
    align-items: flex-start;
  }
  .hero .reg {
    display: none;
  }
  .hero .fold {
    display: none;
  }
  .hero .hide-sm-svg {
    display: none;
  }
  .hero__fig {
    max-width: 520px;
  }
  .spec div {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 23px;
  }
  .top {
    gap: 8px;
    padding-inline: 10px;
  }
  .btn--sm {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}
