:root {
  --paper: #f5efe4;
  --paper-soft: #ece4d5;
  --paper-deep: #e3d8c7;
  --sheet: #fdf9f0;
  --ink: #20332c;
  --muted: #5a665e;
  --line: #d6ccbb;
  --line-strong: #b9ac97;
  --teal: #0f6b5d;
  --teal-deep: #0b5147;
  --teal-soft: #dfeee8;
  --teal-faint: #edf5f1;
  --cinnabar: #b34532;
  --cinnabar-ink: #a03c2a;
  --cinnabar-soft: #f2e2d8;
  --plum: #6d4c7d;
  --plum-soft: #ece5f0;
  --font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-text: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: var(--paper); background: var(--teal); }
a { color: inherit; }
button, input, textarea { font: inherit; }
svg { display: block; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a.text-link, .site-nav a, .breadcrumb a, .record-pager a, .site-footer a { text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--teal);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .12em;
}
.seal {
  display: inline-flex;
  flex: 0 0 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.02;
  letter-spacing: .04em;
}
.seal--small { flex-basis: 26px; width: 26px; height: 26px; font-size: 9px; }
.seal--large { flex-basis: 64px; width: 64px; height: 64px; font-size: 18px; line-height: 1.04; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  transition: color .18s var(--ease);
}
.site-nav a:hover { color: var(--teal); }
.site-nav__mail {
  color: var(--cinnabar) !important;
  border-bottom: 1px solid var(--cinnabar);
}
.site-nav__mail:hover { color: var(--teal) !important; border-color: var(--teal); }

/* Shared type and elements */
.kicker, .eyebrow, .meta, .stamp, .record-row__facts, .record-hero__index,
.breadcrumb, .catalog__top, .catalog__tab, .catalog__meta, .catalog__label,
.catalog__note, .section-note, .record-meta, .workbench__top,
.workbench__side-label, .workbench__modules, .workbench__eyebrow,
.problem__no, .need__order, .need__id, .need__count, .module-card__top,
.module-group__head, .constraint > span, .variant-row--head,
.task__meta, .version-line, .improvement__status, .disclaimer,
.site-footer__label, .site-footer__links a span, .site-footer__bottom, .record-pager span, .record-pager__index {
  font-family: var(--font-mono);
}
.kicker {
  margin-bottom: 16px;
  color: var(--cinnabar-ink);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .01em;
  text-wrap: balance;
}
.section { padding: 112px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.section-head { margin-bottom: 48px; }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  align-items: end;
  gap: 64px;
}
.section-intro {
  max-width: 50ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.section-note {
  margin: -22px 0 28px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .02em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  color: var(--paper);
  background: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.text-link .arrow { transition: transform .2s var(--ease); }
.text-link:hover { color: var(--cinnabar); border-color: currentColor; }
.text-link:hover .arrow { transform: translateX(3px); }
.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.email {
  display: inline-block;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  overflow-wrap: anywhere;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.email:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

/* Hero */
.hero {
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 64px 0 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5.8fr) minmax(0, 6.2fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
}
.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 530px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .1em;
}
.hero h1 {
  max-width: 9.5em;
  font-family: var(--font-display);
  font-size: clamp(56px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: .01em;
}
.hero h1 span { display: block; }
.hero__lead {
  max-width: 44ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.hero__visual { min-width: 0; }

/* Index-card catalogue */
.catalog {
  position: relative;
  padding: 18px 18px 16px;
  background: var(--teal-soft);
  border: 1px solid #bcd4cc;
  box-shadow: 0 26px 60px rgb(15 107 93 / 10%);
}
.catalog__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  color: var(--teal-deep);
  border-bottom: 1px solid #bcd4cc;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
}
.catalog__tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  padding: 12px 7px 0;
}
.catalog__tab {
  display: grid;
  place-items: center;
  height: 30px;
  color: var(--teal-deep);
  background: rgb(253 249 240 / 48%);
  border: 1px solid #9fc2b6;
  border-bottom: 0;
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  transition: height .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.catalog__tab:hover { height: 36px; color: var(--cinnabar); background: var(--sheet); }
.catalog__tab.is-active {
  height: 44px;
  color: var(--paper);
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 500;
}
.catalog__stack { position: relative; margin-top: -1px; }
.catalog__shadow {
  position: absolute;
  inset: 12px -7px -7px 12px;
  background: var(--sheet);
  border: 1px solid #9fc2b6;
}
.catalog__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 415px;
  padding: 28px;
  background: var(--sheet);
  border: 1px solid var(--teal);
}
.catalog__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .08em;
}
.stamp {
  display: inline-block;
  padding: 3px 6px;
  color: var(--cinnabar-ink);
  border: 1px solid var(--cinnabar-ink);
  box-shadow: inset 0 0 0 2px var(--sheet);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
  white-space: nowrap;
}
.catalog__label {
  margin-top: 36px;
  color: var(--teal);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
}
.catalog__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .01em;
}
.catalog__line {
  max-width: 30ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.catalog__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 26px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catalog__facts div { padding: 12px 10px 12px 0; }
.catalog__facts div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.catalog__facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; letter-spacing: .04em; }
.catalog__facts dd { margin-top: 2px; color: var(--teal-deep); font-size: 13px; line-height: 1.4; }
.catalog__card .text-link { margin-top: auto; align-self: flex-start; }
.catalog__note {
  margin-top: 16px;
  color: var(--teal-deep);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .03em;
  text-align: right;
}

/* Workbench index */
.workbenches { padding-top: 104px; }
.record-list { border-top: 2px solid var(--teal); }
.record-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.55fr) 180px 24px;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 16px 8px 16px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.record-row:hover, .record-row:focus-visible {
  background: var(--sheet);
  box-shadow: inset 2px 0 0 var(--cinnabar);
}
.record-row__no {
  color: var(--cinnabar);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.record-row__main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.record-row__main strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .01em;
}
.record-row__main span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.record-row__facts { color: var(--teal); font-size: 9px; line-height: 1.5; letter-spacing: .03em; text-align: right; }
.record-row__arrow { color: var(--teal); }
.record-row__arrow .arrow { transition: transform .18s var(--ease); }
.record-row:hover .record-row__arrow .arrow { transform: translateX(3px); }

/* Notes */
.notes { background: var(--paper-soft); }
.notes__grid {
  display: grid;
  grid-template-columns: minmax(0, 4.7fr) minmax(0, 7.3fr);
  gap: clamp(48px, 7vw, 104px);
}
.notes__head h2 { max-width: 7.5em; }
.notes__quote {
  max-width: 100%;
  margin-top: 42px;
  padding-left: 20px;
  color: var(--ink);
  border-left: 2px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.65;
  text-wrap: balance;
}
.scope {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 360px;
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.scope div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.scope strong {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.scope span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; }
.notes__body > p {
  max-width: 62ch;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.95;
}
.notes__body > p:first-child { margin-top: 8px; }
.notes__list { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.notes__list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.notes__list li > span { color: var(--cinnabar); font-family: var(--font-mono); font-size: 10px; line-height: 1.8; letter-spacing: .06em; }
.notes__list h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
.notes__list p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* About */
.about { padding-bottom: 120px; }
.about__panel {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(48px, 7vw, 104px);
  padding: 56px;
  background: var(--teal-soft);
  border: 1px solid #bcd4cc;
}
.about__head { position: relative; }
.about__head .kicker { color: var(--cinnabar-ink); }
.about__head h2 { color: var(--teal-deep); }
.about__head .seal--large { margin-top: 44px; }
.about__body p { max-width: 58ch; margin-bottom: 18px; color: var(--ink); font-size: 16px; line-height: 1.95; }
.about__body .email { color: var(--teal-deep); border-color: var(--teal); }
.about__body .email:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.about__fine { margin-top: 26px; color: var(--muted) !important; font-size: 12px !important; line-height: 1.8 !important; }

/* Footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.site-footer__brand .brand { align-items: center; }
.site-footer__brand .brand__name { font-size: 18px; letter-spacing: .1em; }
.site-footer__note { max-width: 30ch; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.site-footer__label { color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 12px; }
.site-footer__links a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.site-footer__links a span { color: var(--cinnabar); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; letter-spacing: .03em; }
.site-footer__links a:hover { color: var(--teal); border-color: var(--line); }
.site-footer__contact { min-width: 0; }
.site-footer__email {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}
.site-footer__email:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.site-footer__fine { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .03em;
  text-align: center;
}
.site-footer__dot { color: var(--line-strong); }
.site-footer__bottom a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer__bottom a:hover { color: var(--teal); border-color: var(--teal); }

/* Detail hero */
.record-hero {
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
}
.record-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6.3fr) minmax(0, 5.7fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.breadcrumb a { color: var(--muted); transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--teal); }
.record-hero__index {
  margin-top: 34px;
  color: var(--cinnabar-ink);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .12em;
}
.record-hero h1 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(62px, 7.5vw, 104px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: .015em;
  text-wrap: balance;
}
.record-hero h1 span { display: block; }
.record-hero__subtitle {
  max-width: 100%;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.55;
  text-wrap: balance;
}
.record-hero__intro {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}
.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.record-meta span {
  padding: 5px 8px;
  color: var(--teal-deep);
  background: var(--teal-faint);
  border: 1px solid #c8ddd6;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .03em;
}
.record-meta span:last-child { color: var(--cinnabar-ink); background: var(--cinnabar-soft); border-color: #e4c6b8; }

/* Workbench visual */
.workbench {
  padding: 14px;
  color: var(--paper);
  background: var(--teal);
  border: 1px solid var(--teal-deep);
  box-shadow: 14px 14px 0 var(--teal-soft);
}
.workbench__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 12px;
  color: #cfe5de;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .08em;
}
.workbench__body {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  background: var(--sheet);
  border: 1px solid rgb(253 249 240 / 34%);
}
.workbench__side {
  min-width: 0;
  padding: 12px 0;
  color: var(--paper);
  background: var(--teal-deep);
}
.workbench__side-label {
  margin: 0 14px 8px;
  color: #b7d6cb;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .04em;
}
.workbench__modules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  padding: 6px 14px;
  color: #d8e9e2;
  border-left: 2px solid transparent;
  font-size: 11px;
  line-height: 1.4;
}
.workbench__modules li span { color: #8dbdaf; font-size: 9px; line-height: 1.6; }
.workbench__modules li.is-active {
  color: var(--paper);
  background: var(--cinnabar);
  border-left-color: var(--paper);
}
.workbench__modules li.is-active span { color: var(--paper); }
.workbench__main {
  min-width: 0;
  padding: 18px 20px 16px;
  color: var(--ink);
  background: var(--sheet);
}
.workbench__eyebrow {
  color: var(--cinnabar-ink);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .06em;
}
.workbench__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}
.workbench__context {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.workbench__steps { margin-top: 12px; border-top: 1px solid var(--line); }
.workbench__steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
}
.workbench__steps li span { color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.8; }
.workbench__out {
  margin-top: 12px;
  padding: 9px 10px;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-left: 2px solid var(--teal);
  font-size: 11px;
  line-height: 1.5;
}
.workbench__out span { margin-right: 8px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; }

/* Problems */
.problems { padding-top: 104px; }
.problem-list { border-top: 2px solid var(--teal); }
.problem {
  display: grid;
  grid-template-columns: minmax(220px, 3.4fr) minmax(0, 8.6fr);
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.problem__no { color: var(--cinnabar-ink); font-size: 9px; line-height: 1.5; letter-spacing: .06em; }
.problem__head h3 { max-width: 24ch; margin-top: 10px; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.35; }
.problem__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.problem__body dt { margin-bottom: 7px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.problem__body dd { color: var(--muted); font-size: 13px; line-height: 1.75; }

/* Capabilities */
.capabilities { padding-top: 96px; padding-bottom: 96px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; border-top: 2px solid var(--teal); }
.capability { min-height: 240px; padding-top: 18px; }
.capability__no { color: var(--cinnabar-ink); font-size: 9px; line-height: 1.5; letter-spacing: .06em; }
.capability h3 { max-width: 12ch; margin-top: 24px; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.35; }
.capability p { max-width: 30ch; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.capability__count { display: block; margin-top: 20px; color: var(--teal); font-size: 9px; line-height: 1.5; letter-spacing: .03em; }

/* Modules */
.modules { background: var(--teal-faint); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--teal); }
.module-card { min-height: 172px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.module-card__top { display: flex; justify-content: space-between; gap: 16px; color: var(--teal); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.module-card__top span:first-child { color: var(--cinnabar-ink); }
.module-card h3 { margin-top: 16px; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.35; }
.module-card p { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.module-card p span { color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.9; }

/* Tasks */
.task-list { border-top: 2px solid var(--teal); }
.task {
  display: grid;
  grid-template-columns: minmax(230px, 3.8fr) minmax(0, 8.2fr);
  gap: 44px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.task__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--cinnabar-ink); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.task__meta span:last-child { color: var(--muted); }
.task__head h3 { max-width: 24ch; margin-top: 14px; font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.35; }
.task__context { max-width: 32ch; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.task__output { max-width: 34ch; margin-top: 18px; padding-left: 12px; color: var(--teal-deep); border-left: 2px solid var(--cinnabar); font-size: 13px; line-height: 1.7; }
.task__output span { margin-right: 8px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; }
.task__steps { display: grid; grid-template-columns: 1fr; align-content: start; }
.task__steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 8px 0 14px; border-top: 1px solid var(--line); }
.task__steps li span { color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; line-height: 1.8; }
.task__steps p { max-width: 68ch; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Boundaries */
.boundaries { background: var(--teal-soft); border-top: 0; }
.boundaries .kicker { color: var(--cinnabar-ink); }
.boundaries h2 { color: var(--teal-deep); }
.boundary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; border-top: 2px solid var(--teal); }
.boundary { padding: 18px 0 22px; border-bottom: 1px solid #bcd4cc; }
.boundary dt { color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.boundary dd { max-width: 44ch; margin-top: 7px; color: var(--ink); font-size: 13px; line-height: 1.8; }

/* Improvements */
.improvements { background: var(--plum-soft); border-top: 0; }
.improvements .kicker { color: var(--plum); }
.improvements h2 { color: var(--plum); }
.version-line { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 32px; border-top: 1px solid #cdbdd7; border-left: 1px solid #cdbdd7; width: fit-content; }
.version-line span { padding: 9px 12px; color: var(--plum); border-right: 1px solid #cdbdd7; border-bottom: 1px solid #cdbdd7; font-size: 9px; line-height: 1.5; letter-spacing: .03em; }
.improvement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 2px solid var(--plum); }
.improvement { padding-top: 18px; }
.improvement__status { display: inline-block; padding: 3px 6px; color: var(--plum); border: 1px solid #b99ec8; font-size: 9px; line-height: 1.4; letter-spacing: .04em; }
.improvement h3 { max-width: 14ch; margin-top: 20px; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.4; }
.improvement p { max-width: 32ch; margin-top: 10px; color: #5b5263; font-size: 13px; line-height: 1.8; }
.disclaimer { margin-top: 44px; padding-top: 14px; color: var(--muted); border-top: 1px solid #cdbdd7; font-size: 9px; line-height: 1.7; letter-spacing: .02em; }

/* Pager and contact */
.record-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.record-pager a { color: var(--ink); }
.record-pager__side { display: flex; flex-direction: column; gap: 3px; max-width: 260px; }
.record-pager__side--next { align-items: flex-end; text-align: right; }
.record-pager span { color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .03em; }
.record-pager strong { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.4; transition: color .18s var(--ease); }
.record-pager a:hover strong { color: var(--teal); }
.record-pager__index { color: var(--muted); font-size: 10px; line-height: 1.5; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.record-pager__index:hover { color: var(--teal); border-color: var(--teal); }
.record-contact { padding: 64px 0; background: var(--cinnabar-soft); border-top: 1px solid #e4c6b8; }
.record-contact .kicker { color: var(--cinnabar-ink); }
.record-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
.record-contact h2 { max-width: 13em; color: var(--cinnabar-ink); font-size: clamp(30px, 3.2vw, 40px); }
.record-contact p { max-width: 42ch; margin-bottom: 22px; color: #6f4b43; font-size: 14px; line-height: 1.85; }
.record-contact .email { color: var(--cinnabar-ink); border-color: var(--cinnabar-ink); }
.record-contact .email:hover { color: var(--teal); border-color: var(--teal); }

/* 404 */
.not-found {
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.not-found__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: center; }
.not-found h1 { font-family: var(--font-display); font-size: clamp(52px, 5.4vw, 76px); font-weight: 500; line-height: 1.15; }
.not-found h1 span { display: block; }
.not-found__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 32px;
  background: var(--sheet);
  border: 1px solid var(--teal);
  box-shadow: 12px 12px 0 var(--teal-soft);
  text-align: center;
}
.not-found__card p { margin-top: 28px; font-family: var(--font-display); font-size: 28px; line-height: 1.55; }
.not-found__card span { margin-top: 20px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; }

/* Entry motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-enter] .hero__copy > * { animation: rise .62s var(--ease) both; }
[data-enter] .hero__copy > *:nth-child(2) { animation-delay: .05s; }
[data-enter] .hero__copy > *:nth-child(3) { animation-delay: .1s; }
[data-enter] .hero__copy > *:nth-child(4) { animation-delay: .15s; }
[data-enter] .hero__copy > *:nth-child(5) { animation-delay: .2s; }
[data-enter] .hero__visual { animation: rise .72s var(--ease) .12s both; }
.record-hero__copy > * { animation: rise .62s var(--ease) both; }
.record-hero__copy > *:nth-child(2) { animation-delay: .04s; }
.record-hero__copy > *:nth-child(3) { animation-delay: .08s; }
.record-hero__copy > *:nth-child(4) { animation-delay: .12s; }
.record-hero__copy > *:nth-child(5) { animation-delay: .16s; }
.record-hero__visual { animation: rise .72s var(--ease) .1s both; }


/* Needs */
.needs { padding-top: 96px; }
.need-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 2px solid var(--teal);
  border-left: 1px solid var(--line);
}
.need {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.need--first { background: var(--teal-faint); }
.need__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.need__order {
  display: inline-block;
  padding: 3px 8px;
  color: var(--paper);
  background: var(--teal);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.need--first .need__order { background: var(--cinnabar); }
.need__id { color: var(--cinnabar-ink); font-size: 9px; line-height: 1.4; letter-spacing: .06em; }
.need h3 {
  max-width: 14ch;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: balance;
}
.need__cost { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.need__cost span {
  display: block;
  margin-bottom: 4px;
  color: var(--cinnabar-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .04em;
}
.need__count { margin-top: auto; padding-top: 18px; color: var(--teal); font-size: 9px; line-height: 1.5; letter-spacing: .03em; }

/* A day */
.day { padding: 80px 0 72px; }
.day + .problems { padding-top: 72px; }
.day-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--teal);
  border-left: 1px solid var(--line);
}
.day-list li {
  min-height: 150px;
  padding: 18px 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day-list li span { color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.day-list p {
  max-width: 17ch;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  text-wrap: balance;
}

/* Module map */
.module-map { border-top: 2px solid var(--teal); }
.module-group { padding: 24px 0 8px; border-bottom: 1px solid var(--line-strong); }
.module-group:last-child { border-bottom: 0; }
.module-group__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 16px;
}
.module-group__head > span:first-child { color: var(--cinnabar-ink); font-size: 10px; line-height: 1.5; letter-spacing: .06em; }
.module-group__head h3 {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.module-group__head > span:last-child { color: var(--teal); font-size: 9px; line-height: 1.5; letter-spacing: .03em; white-space: nowrap; }
.module-group .module-grid { border-top: 0; }
.module-card { min-height: 0; padding: 16px 0 20px; }
.module-card h3 { margin-top: 12px; font-size: 21px; text-wrap: balance; }
.module-card p { grid-template-columns: 58px minmax(0, 1fr); margin-top: 7px; line-height: 1.65; }
.module-card p span { line-height: 1.8; }
.module-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Enterprise conditions */
.constraints { background: var(--cinnabar-soft); border-top: 0; }
.constraints .kicker { color: var(--cinnabar-ink); }
.constraints .section-intro { color: #6f4b43; }
.constraint-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--cinnabar);
  border-left: 1px solid #e4c6b8;
}
.constraint { padding: 18px 20px 22px; border-right: 1px solid #e4c6b8; border-bottom: 1px solid #e4c6b8; }
.constraint > span { color: var(--cinnabar-ink); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.constraint h3 { margin-top: 18px; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.constraint p { margin-top: 10px; color: #6f4b43; font-size: 13px; line-height: 1.75; }

/* Departments */
.variants { background: var(--teal-faint); }
.variant-table { border-top: 2px solid var(--teal); border-left: 1px solid var(--line); }
.variant-row { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.7fr) minmax(130px, 1fr); border-bottom: 1px solid var(--line); }
.variant-row > * { padding: 14px 16px; border-right: 1px solid var(--line); }
.variant-row > *:last-child { border-right: 0; }
.variant-row--head { color: var(--sheet); background: var(--teal-deep); font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.variant-row.variant-row--head span { color: var(--sheet); font-size: 10px; line-height: 1.5; }
.variant-row strong { color: var(--teal-deep); font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.4; }
.variant-row span { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Catalog need and record row need */
.catalog__need { margin-top: 10px; color: var(--teal-deep); font-size: 12px; line-height: 1.65; }
.catalog__need span { margin-right: 6px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: .03em; }
.catalog__output { margin-top: 6px; color: var(--teal-deep); font-size: 11px; line-height: 1.55; }
.catalog__output span { margin-right: 6px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 8px; letter-spacing: .03em; }
.record-row__line { color: var(--muted); font-size: 13px; line-height: 1.6; }
.record-row__need { color: var(--teal-deep) !important; font-size: 12px !important; line-height: 1.5 !important; }
.record-row__need em { margin-right: 6px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; font-style: normal; letter-spacing: .03em; }

/* Hero tension */
.record-hero__tension {
  max-width: 44ch;
  margin-top: 18px;
  padding-left: 14px;
  color: var(--teal-deep);
  border-left: 2px solid var(--cinnabar);
  font-size: 14px;
  line-height: 1.85;
}
.record-hero__output { max-width: 46ch; margin-top: 14px; color: var(--teal-deep); font-size: 13px; line-height: 1.7; }
.record-hero__output span { display: inline-block; margin-right: 8px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: .03em; }
.record-hero__tension span {
  display: block;
  margin-bottom: 4px;
  color: var(--cinnabar-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .04em;
}

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

/* 1100 */
@media (max-width: 1100px) {
  .hero__grid { gap: 48px; }
  .hero h1 { font-size: clamp(54px, 5.3vw, 66px); }
  .catalog__card { min-height: 395px; padding: 24px; }
  .catalog__title { font-size: 40px; }
  .record-hero__grid { gap: 48px; }
  .workbench__body { grid-template-columns: 160px minmax(0, 1fr); }
  .workbench__title { font-size: 22px; }
  .capability-grid { gap: 22px; }
  .capability h3 { font-size: 21px; }
  .module-grid { column-gap: 32px; }
  .task { gap: 32px; }
}

/* 900 */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 52px; }
  .hero__copy { max-width: 720px; }
  .hero__visual { max-width: 680px; }
  .hero h1 { font-size: clamp(50px, 7.2vw, 64px); }
  .catalog__card { min-height: 365px; }
  .section { padding: 88px 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .section-intro { max-width: 56ch; }
  .record-row { grid-template-columns: 42px minmax(0, 1fr) 24px; }
  .record-row__facts { display: none; }
  .notes__grid { grid-template-columns: 1fr; gap: 48px; }
  .notes__quote { margin-top: 30px; }
  .about__panel { grid-template-columns: 1fr; gap: 36px; padding: 46px; }
  .about__head .seal--large { position: absolute; top: 0; right: 0; margin-top: 0; }
  .record-hero { min-height: auto; padding: 44px 0 72px; }
  .record-hero__grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .record-hero__copy { max-width: 720px; }
  .record-hero__visual { max-width: 700px; }
  .record-hero h1 { font-size: clamp(58px, 10vw, 88px); }
  .problem { grid-template-columns: 1fr; gap: 20px; }
  .problem__head h3 { max-width: 24ch; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability { min-height: 0; padding-bottom: 28px; }
  .task { grid-template-columns: 1fr; gap: 20px; }
  .task__head h3 { max-width: 24ch; }
  .task__context { max-width: 56ch; }
  .boundary-list { grid-template-columns: 1fr; }
  .improvement-grid { grid-template-columns: 1fr; gap: 0; }
  .improvement { padding: 18px 0 22px; border-bottom: 1px solid #cdbdd7; }
  .improvement h3 { max-width: 24ch; }
  .record-contact__grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .not-found__grid { grid-template-columns: 1fr; gap: 48px; }
  .not-found__card { max-width: 420px; min-height: 300px; }
}

/* 760 */
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .site-header__bar { min-height: 68px; gap: 16px; }
  .brand { gap: 10px; }
  .brand__name { font-size: 17px; }
  .seal { flex-basis: 27px; width: 27px; height: 27px; font-size: 9px; }
  .site-nav { gap: 18px; font-size: 12px; }
  .site-nav a { min-height: 44px; }
  .text-link { min-height: 44px; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(44px, 10.5vw, 56px); }
  .hero__lead { font-size: 15px; }
  .section { padding: 72px 0; }
  h2 { font-size: clamp(34px, 7vw, 44px); }
  .section-head { margin-bottom: 38px; }
  .catalog { padding: 12px 12px 12px; }
  .catalog__tabs { padding: 10px 5px 0; gap: 3px; }
  .catalog__tab { height: 44px; font-size: 9px; }
  .catalog__tab.is-active { height: 52px; }
  .catalog__card { min-height: 345px; padding: 20px; }
  .catalog__label { margin-top: 26px; }
  .catalog__title { font-size: 36px; }
  .catalog__line { font-size: 13px; }
  .catalog__shadow { inset: 9px -5px -5px 9px; }
  .catalog__facts { margin: 22px 0 20px; }
  .record-row { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 16px; min-height: 80px; }
  .record-row__main strong { font-size: 22px; }
  .record-row__main span { font-size: 12px; }
  .notes__list li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .scope { margin-top: 30px; }
  .about { padding-bottom: 80px; }
  .about__panel { padding: 30px 22px; }
  .about__head .seal--large { position: static; margin-top: 26px; }
  .about__body p { font-size: 15px; }
  .site-footer { padding: 28px 0 36px; }
  .site-footer__grid { flex-direction: column; gap: 18px; }
  .site-footer__meta { justify-content: flex-start; gap: 0 18px; font-size: 10px; }
  .site-footer__meta a { min-height: 44px; }
  .record-hero { padding-top: 34px; }
  .record-hero h1 { font-size: clamp(54px, 14vw, 80px); }
  .record-hero__subtitle { font-size: 21px; }
  .workbench { padding: 10px; box-shadow: 8px 8px 0 var(--teal-soft); }
  .workbench__body { grid-template-columns: 1fr; }
  .workbench__side { padding: 10px 0; border-right: 0; border-bottom: 1px solid rgb(253 249 240 / 26%); }
  .workbench__modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench__modules li { padding: 6px 10px; font-size: 11px; }
  .workbench__main { padding: 15px 14px 14px; }
  .workbench__title { font-size: 22px; }
  .workbench__context { font-size: 11px; }
  .workbench__steps li { font-size: 11px; }
  .problem__body { grid-template-columns: 1fr; gap: 12px; }
  .problem__body dd { max-width: 56ch; }
  .capability-grid { grid-template-columns: 1fr; gap: 0; }
  .capability { padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
  .capability h3 { margin-top: 12px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 0; padding: 16px 0 20px; }
  .task__steps { grid-template-columns: 1fr; }
  .task__steps li { padding: 8px 0 12px; }
  .version-line { width: 100%; }
  .version-line span { flex: 1 1 100%; border-right: 1px solid #cdbdd7; }
  .record-pager { grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0; }
  .record-pager__index { display: none; }
  .record-pager__side { max-width: none; }
  .record-pager__side--next { align-items: flex-end; }
  .record-contact { padding: 48px 0; }
}

/* 520 */
@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .site-header__bar { min-height: 64px; }
  .site-nav { gap: 13px; font-size: 12px; }
  .site-nav__mail { border-bottom: 0; }
  .brand__name { font-size: 16px; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 46px); }
  .eyebrow { font-size: 9px; gap: 12px; }
  .hero__actions { gap: 20px; align-items: flex-start; }
  .hero__note { font-size: 10px; }
  .catalog__top { font-size: 8px; }
  .catalog__meta { font-size: 8px; }
  .catalog__title { font-size: 31px; }
  .catalog__facts div { padding: 10px 6px 10px 0; }
  .catalog__facts div + div { padding-left: 8px; }
  .catalog__facts dt { font-size: 8px; }
  .catalog__facts dd { font-size: 11px; }
  .catalog__note { text-align: left; }
  .record-row { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 12px; }
  .record-row__main strong { font-size: 20px; }
  .section-intro { font-size: 14px; }
  .notes__quote { font-size: 22px; }
  .notes__body > p { font-size: 15px; }
  .scope strong { font-size: 25px; }
  .about__panel { padding: 26px 18px; }
  .about__body .email { font-size: 15px; }
  .record-hero h1 { font-size: clamp(50px, 16vw, 74px); }
  .record-hero__intro { font-size: 14px; }
  .workbench__modules li { padding: 6px 10px; }
  .workbench__title { font-size: 20px; }
  .record-meta span { font-size: 8px; }
  .problem__head h3 { font-size: 24px; }
  .task__head h3 { font-size: 24px; }
  .improvement h3 { font-size: 21px; }
  .record-pager strong { font-size: 15px; }
  .record-contact .email { font-size: 15px; }
}


/* Needs / day / conditions / departments responsive */
@media (max-width: 1100px) {
  .need-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .constraint-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-group__head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
}

@media (max-width: 900px) {
  .day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-card p { grid-template-columns: 56px minmax(0, 1fr); }
  .variant-row { grid-template-columns: minmax(100px, .7fr) minmax(0, 1.5fr) minmax(110px, 1fr); }
}

@media (max-width: 760px) {
  .needs { padding-top: 72px; }
  .need-list { grid-template-columns: 1fr; }
  .need { min-height: 0; padding: 16px 18px 20px; }
  .need h3 { max-width: 18ch; margin-top: 16px; font-size: 23px; }
  .need__count { padding-top: 12px; }
  .day { padding: 64px 0 56px; }
  .day + .problems { padding-top: 56px; }
  .day-list li { min-height: 0; padding: 16px 16px 20px; }
  .day-list p { margin-top: 14px; font-size: 19px; }
  .module-group { padding-top: 20px; }
  .module-group__head { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .module-group__head h3 { font-size: 22px; }
  .module-group__head > span:last-child { grid-column: 2; margin-top: 2px; }
  .module-card p { grid-template-columns: 54px minmax(0, 1fr); }
  .module-card:last-child:nth-child(odd) { grid-column: auto; }
  .constraint-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .constraint { padding: 16px 18px 20px; }
  .constraint h3 { font-size: 20px; }
  .variant-row--head { display: none; }
  .variant-row { grid-template-columns: 1fr; }
  .variant-row > * { border-right: 0; padding: 12px 14px; }
  .variant-row > *::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--teal); font-family: var(--font-mono); font-size: 8px; line-height: 1.4; letter-spacing: .04em; }
  .variant-row strong { font-size: 18px; }
  .variant-row span { font-size: 12px; }
  .catalog__need { font-size: 11px; }
  .record-row__need { font-size: 11px !important; }
  .record-row__line { font-size: 12px; }
}

@media (max-width: 520px) {
  .day-list { grid-template-columns: 1fr; }
  .constraint-list { grid-template-columns: 1fr; }
  .module-card p { grid-template-columns: 50px minmax(0, 1fr); }
  .module-group__head h3 { font-size: 20px; }
  .need h3 { font-size: 21px; }
  .record-hero__tension { font-size: 13px; }
  .variant-row > * { padding: 11px 12px; }
}

/* Compact module map rows */
.module-group .module-grid { grid-template-columns: 1fr; column-gap: 0; }
.module-card {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 2.2fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  min-height: 0;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
}
.module-card:last-child { border-bottom: 0; }
.module-card__head { display: flex; flex-direction: column; gap: 12px; }
.module-card__top { display: flex; justify-content: flex-start; gap: 10px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .04em; }
.module-card__top span:first-child { color: var(--cinnabar-ink); }
.module-card h3 { margin-top: 0; font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.module-card__body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module-card__body dt { margin-bottom: 5px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .03em; }
.module-card__body dd { color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 1100px) {
  .module-card { grid-template-columns: minmax(170px, .75fr) minmax(0, 2.25fr); gap: 28px; }
  .module-card__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
}

@media (max-width: 900px) {
  .module-card { grid-template-columns: 1fr; gap: 10px; padding: 16px 0 20px; }
  .module-card__head { flex-direction: column; align-items: flex-start; gap: 7px; }
  .module-card__top { flex: 0 0 auto; gap: 10px; }
  .module-card__top span:last-child { display: none; }
  .module-card h3 { font-size: 21px; }
  .module-card__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
}

@media (max-width: 760px) {
  .module-card__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
  .module-card__head { flex-direction: column; gap: 6px; }
  .module-card__top span:last-child { display: inline; }
}


/* Tighten the condition / department bands before tasks */
.constraints, .variants { padding-bottom: 80px; }
.constraints + .tasks, .variants + .tasks { padding-top: 72px; }

@media (max-width: 760px) {
  .constraints, .variants { padding-bottom: 64px; }
  .constraints + .tasks, .variants + .tasks { padding-top: 56px; }
}


@media (max-width: 760px) {
  .catalog__output { font-size: 10px; }
  .record-hero__output { font-size: 12px; }
}

/* Function intro and effect */
.module-card__content { min-width: 0; }
.module-card .module-card__intro,
.module-card .module-card__effect { display: block; margin-top: 0; }
.module-card__intro { max-width: 72ch; color: var(--ink); font-size: 14px; line-height: 1.85; }
.module-card__intro span { display: block; margin-bottom: 4px; color: var(--teal); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; letter-spacing: .04em; }
.module-card__effect { max-width: 72ch; margin-top: 10px; padding-left: 12px; color: var(--teal-deep); border-left: 2px solid var(--cinnabar); font-size: 13px; line-height: 1.75; }
.module-card__effect span { margin-right: 8px; color: var(--cinnabar-ink); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; letter-spacing: .03em; }
.module-card__body { margin-top: 14px; }

@media (max-width: 900px) {
  .module-card__intro { font-size: 13.5px; line-height: 1.8; }
  .module-card__effect { font-size: 13px; }
}

@media (max-width: 760px) {
  .module-card__intro { font-size: 13px; line-height: 1.78; }
  .module-card__effect { margin-top: 9px; font-size: 12.5px; line-height: 1.7; }
  .module-card__body { margin-top: 12px; }
}

/* Footer responsive */
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .site-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-footer { padding: 48px 0 24px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__contact { grid-column: auto; }
  .site-footer__links { gap: 0 18px; }
  .site-footer__bottom { flex-direction: row; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 32px; }
}

@media (max-width: 520px) {
  .site-footer__email { font-size: 16px; }
  .site-footer__links a { font-size: 11px; }
}
